web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Calculation Help

(0) ShareShare
ReportReport
Posted on by 156

Hi there, I currently have a PowerApps created to calculation the leave that the employees have. I'm currently stuck at a part where I can successfully pull the data i need in order for the data to be correct but I need to add a calculation line whereby if the user selects a type like medical it'll deduct their medical leave and update it inside the form as well as the Sharepoint table. I have a slight idea but not so sure on how to execute on it. 

Here's the idea and aim that I'm trying to achieve.
- If the user selects anything besides medical and or maternity, it'll deduct from their annual leave
- If the user selects medical, it'll deduct from their medical leave

- I don't mind using power automate as well I just need some guidance as I'm new to it all

Screenshot 2020-12-28 at 1.53.12 PM.png
Screenshot 2020-12-28 at 1.53.25 PM.png
Screenshot 2020-12-28 at 1.56.24 PM.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @gimar01 

    If(StartsWith('Leave Type',"m"),formula1,formula2) 

  • gimar01 Profile Picture
    156 on at

    i don't understand and it pops up error when i put in the right items

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @gimar01 

    The syntax for saving and displaying the data depends on the structure of the SharePoint list.  Could you please indicate the columns and data types in the list?

     

     

     

  • gimar01 Profile Picture
    156 on at

    Duration is a number type data, but another thing i should mention is that it takes a data from one Sharepoint List and updates it on another different list. Does that affect the outcome of it? All of the data from both list are number typed data. Is there a possibility of me using Flow Automate to automate the process instead?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard