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 / Calculation Field in M...
Power Apps
Answered

Calculation Field in Model Driven App not working

(0) ShareShare
ReportReport
Posted on by 19

I have two fields that are set to perform calculation but nether field is doing the calculation.  See below.  I don't see option that I need to select to make the calculation automatic.

 

 

 

InnerCityMatt_0-1618532475328.png

 

I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @InnerCityMatt,

     

    Calculated fields are computed when retrieving a record (e.g form load or shown on a view), and will not automatically update in the user interface when immediately changing a field value. You'd have to save the record and cause a refresh in order to see calculated field update as the record will be retrieved again.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • InnerCityMatt Profile Picture
    19 on at

    I have been doing that.  I imported a large data set to the table with values in the fields that are used in the calculation.  I have click refresh and opened up records in the form but still, no calculations are being performed.  I am still working in the solution.  

  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @InnerCityMatt,

     

    Have you published customizations? Also, are those fields used in the calculations just simple decimal types/whole numbers, or are you referencing any other calculated fields?

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @InnerCityMatt,

     

    A few things to check:

    1.  Set the calculation to a simple value to verify the calculation is firing.  Example, set to a single value or something like that, this will help to verify that the calculation is actually taking place on the field.

    2.  If this works add additional calculations step by step until it fails to see what is causing the issue.

    3.  Verify your output format is acceptable based on the calculation (i.e. if calculation causes a decimal value that it is decimal)

    4.  Verify the calculation is not pushing the value past a maximum or below a minimum defined for the field

     

    Hopefully these steps help.  Please mark accepted if answers and Like if it justs helps.

     

    Thanks!

    Drew

  • InnerCityMatt Profile Picture
    19 on at

    The calculation is Set CICIncome(Currency) to (Premium(Currency) * CICCommisionrate(Decimal))  + CICFee(Currency)

     

     

    Here is what the form looks like.  Does every field in the calculation have to have a value of at least 0 before the calculation can be performed?

     

    InnerCityMatt_0-1618536366460.png

     

    I have clicked published on the form

  • Verified answer
    ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @InnerCityMatt,

     

    Yes, all the fields used in the calculation must have a value for the calculation to work. You may want to add some additional conditions to account for the cases where some of the fields don't have data.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard