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 Platform Community / Forums / Power Apps / How to calculate value...
Power Apps
Answered

How to calculate values in model driven app

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using CDS as my source to store data. I have a few numeric fields which get their value from user input.  What I would like to do is take the values the user puts in, then take that value and do some calculations and then insert that value in a result field.  Can you do this in model driven apps?  Or can you only do something like this in Canvas apps?

I have the same question (0)
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @Anonymous ,

     

    I recommend you to use a Power Automate workflow to do it.

    Basically, you will use the trigger "When a record is updated" (CDS connector) and calculate inside the Power Automate and after using the "Update a record" (CDS connector) action to update the total field.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is it possible to do something like this without Power Automate?

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @Anonymous,

    Depending on how complicated the calculation is, you can also use out-of-the-box calculated fields. Might be worth taking a look at it. Here's more info: https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/define-calculated-fields

    Hope this helps

  • mxlgbr Profile Picture
    13 on at

    Hello @EricRegnier ,

     

    I have a calculated column with a formula that contains a POWER function. Both POWER and ^ do not seem to work. Is there a workaround you would suggest besides PowerAutomate? 

     

    Thank you

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @mxlgbr,

    Unfortunately Power is not a valid function as you stated, the list of available functions are here: https://docs.microsoft.com/power-apps/maker/data-platform/define-calculated-fields#capabilities. The only workaround with calculated are multiplying by the number of times you need if it’s always a constant number. For example: cr755_column * cr755_column * cr755_column

     

    The other options besides Power Automate are:

    1) create a plug-in but requires C# code

    2) lookout for Power FX calculated columns coming soon. More info: https://powerapps.microsoft.com/blog/power-fx-formula-columns-in-dataverse/

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 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard