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
Answered

calculate a value

(0) ShareShare
ReportReport
Posted on by 202

Hi

I have a powerapp which I'm creating a leavers form

 

Using SharePoint I have 3 columns; HolEnt, HolTaken and HolBal. From the HolEnt and HolTaken I need it to populate the difference in the HolBal column.

I have made HolBal a calculated column and used =[HolEnt]-[HolTaken] in the formula area but it's not returning the value.

HolEnt and HolTaken are Choice columns

How do I go about getting the HolBal to return the difference of HolEnt minus HolTaken in powerapps?

Categories:
I have the same question (0)
  • SBax Profile Picture
    1,348 on at

    Hi @russelln1 

     

    I believe you need to convert the choice values to int() before calculation

     

    just testing this now

  • SBax Profile Picture
    1,348 on at

    @russelln1- if you use this formula this should calculate it

     

    If you convert to text then to int, you should be able to achieve this

     

    I have used a gallery for the purpose of getting the people, holEnt and HolTaken

     

    the formula I used to calculate holBal was:

     

    Int(Text(ThisItem.HolEnt))-Int(Text(ThisItem.HolTaken))

     

     

     

    screenshot.png

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @russelln1 ,

     

    Please try this formula in your SP list:


     =VALUE([HolEnt])-VALUE([HolTaken])

     

    vbofengmsft_0-1662013921352.jpeg

    vbofengmsft_1-1662013932579.png

     

    Best Regards,

    Bof

     

     

     

  • russelln1 Profile Picture
    202 on at

    @v-bofeng-msft @SBax 

    Thank you both for your comments - I will try both out tomorrow.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard