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

Community site session details

Session Id : k6jq9OrRmMpVBWPiYMNLPD
Power Apps - Building Power Apps
Answered

calculate a value

Like (0) ShareShare
ReportReport
Posted on 31 Aug 2022 10:10:57 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?

  • russelln1 Profile Picture
    202 on 01 Sep 2022 at 13:44:47
    Re: calculate a value

    @v-bofeng-msft @SBax 

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

  • Verified answer
    v-bofeng-msft Profile Picture
    on 01 Sep 2022 at 06:32:25
    Re: calculate a value

    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

     

     

     

  • SBax Profile Picture
    1,348 on 31 Aug 2022 at 17:32:36
    Re: calculate a value

    @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

  • SBax Profile Picture
    1,348 on 31 Aug 2022 at 17:20:07
    Re: calculate a value

    Hi @russelln1 

     

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

     

    just testing this now

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete