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

Notifications

Announcements

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)
  • Sri Profile Picture
    559 on at

    @v-jefferni 

    Thanks a lot. You saved my day.

  • v-jefferni Profile Picture
    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 

    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

  • Verified answer
    v-jefferni Profile Picture
    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

    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.

  • v-jefferni Profile Picture
    on at

    Hi @Uthhra ,

     

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

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard