Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

How to calculate values in model driven app

(0) ShareShare
ReportReport
Posted on by

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?

Categories:
  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: How to calculate values in model driven app

    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/

  • mxlgbr Profile Picture
    13 on at
    Re: How to calculate values in model driven app

    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

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: How to calculate values in model driven app

    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

  • Community Power Platform Member Profile Picture
    on at
    Re: How to calculate values in model driven app

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

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: How to calculate values in model driven app

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics