I have a form that allows users to enter expenses in Euro, the form also contains the current ExchangeRate, when a users enters the Amount in Euro, the Amount in USD is calculated based using the below formula that is placed in the Default Property of the Item
named AmountUSD.
Coalesce(Parent.Default,Text(With({AE:Value(DataCardValueAmountEuro.Text),ER:Value(DataCardValueExchRate.Text)},AE/ER),"###.00"))
This works just fine, however, when my form is in Edit mode and a user wants to update the Amount in Euro or Update the Exchange Rate, the AmountUSD does not get calculated?
So it seems that when the form is in Edit Mode the above formulate does not get triggered.
Anyone has any idea why this happens? Thanks!
Solved! Go to Solution.
Coalesce() will supply the first Nonblank value. In your case, when the form is in edit mode, Parent.Default exists so processing stops as there is already a value. If you change the order as below, then your formula should reflect the change when you change the euro value.
Coalesce(Text(With({AE:Value(DataCardValueAmountEuro.Text),ER:Value(DataCardValueExchRate.Text)},AE/ER),"###.00"),Parent.Default)
Coalesce() will supply the first Nonblank value. In your case, when the form is in edit mode, Parent.Default exists so processing stops as there is already a value. If you change the order as below, then your formula should reflect the change.
Coalesce(Text(With({AE:Value(DataCardValueAmountEuro.Text),ER:Value(DataCardValueExchRate.Text)},AE/ER),"###.00"),Parent.Default)
Coalesce() will supply the first Nonblank value. In your case, when the form is in edit mode, Parent.Default exists so processing stops as there is already a value. If you change the order as below, then your formula should reflect the change when you change the euro value.
Coalesce(Text(With({AE:Value(DataCardValueAmountEuro.Text),ER:Value(DataCardValueExchRate.Text)},AE/ER),"###.00"),Parent.Default)
Great, thank you so much, learned something new - have a nice day.
Hi @Lorem1960 ,
Have a nice day.
Has the issue been resolved?
If the issue has been resolved, you could mark the correct reply as a solution.
Best Regards,
Wearsky
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
258 | |
89 | |
78 | |
67 | |
67 |