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 / Calculating value not ...
Power Apps
Answered

Calculating value not displaying in edit form

(0) ShareShare
ReportReport
Posted on by 559

Hi all,

 

I have a list called Consumption Tracker where there are 3 fields(number type). Gross effort is the field which should auto-populate the calculated value. Total effort saved(datacardvalue12) and estimated effort(datacardvalue14) will be the value entered fields. I have separate forms for edit and new. In new form On change and On select of the two value fields i have given this formula:

Set(
var,
Round(
IfError(
If(
!IsBlank(DataCardValue14.Text),
(DataCardValue14.Text) / (DataCardValue12.Text)
),
0
) * 100,
2
)
);

and the variable "var" I have set it to the default of the Gross effort field. The default value is 

If( IsBlank(ThisItem.GrossEffort), var, Parent.Default)

 

In edit form the same code is there in the On change and On select and for the default value I have given.

If( !IsBlank(ThisItem.GrossEffort), Parent.Default, varedit)

It displays only the Parent.Default value and it doesn't shows the when we try to calculate here.

 

Any help/suggestion on this.

Thanks in advance.

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Uthhra ,

     

    I cannot find where was the variable varedit created. Did you use the wrong variable?

     

    Best regards,

  • Sri Profile Picture
    559 on at

    s@v-jefferni 

    for the new form the variable is "var" and edit form it is "varedit". I have used set to create the variable. In edit form the code in On change and On select will be same as above only the variable name will be changed.  So instead of Set var it will Set varedit.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Uthhra ,

     

    For the formula If( !IsBlank(ThisItem.GrossEffort), Parent.Default, varedit), it means display varedit when GrossEffort is not blank in data source. varedit value will only display when there isn't value in GrossEffort column. So, if you want to display the variable, you need to change the formula to:

    If(IsBlank(varedit) || varedit = Parent.Default, Parent.Default, varedit)

     

    Best regards,

  • Sri Profile Picture
    559 on at

    @v-jefferni 

    If I try entering some value and If I don't click on save, it must change to the Parent.Default value but here it still retains the calculated value. Even though I give Refresh datasource on Onvisible

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Uthhra ,

     

    If you don't want the calculated value be saved, you can use Set(varedit, Blank()) when leaving the edit form screen or reset the field to be default again.

     

    Best regards,

     

  • Sri Profile Picture
    559 on at

    @v-jefferni 

    Thanks a lot. You saved my day.

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