Hi There,
I wanted to reach out for some assistance regarding a challenge I'm facing with a Power App I've developed, which was inspired by the My Expense app template.
In this app, I've encountered an issue with one of the formulas, where it randomly calculates values as zero. This is puzzling because the SharePoint list, from which the data is sourced, contains the correct values.
I've thoroughly reviewed the app and the SharePoint list, and everything seems to be in order. Here are some key details:
- The "Cost" column, a numeric field, is used in the calculation, and it has valid data.
- The "ID" and "ReportID" values match as expected.
Note: ReportID is lookup column (with ID column)
Despite these checks, I'm still unable to pinpoint the reason behind the formula randomly producing zero values. It's a bit perplexing, and I'm hoping to get some guidance on what other aspects I should consider or steps I can take to resolve this issue.
"Expense Total– ₹ " & With({LI:LineItems},If(Sum(Filter(LI,ReportID.Id = ThisItem.ID),Cost)>0, Text(Sum(Filter(LI,ReportID.Id = ThisItem.ID),Cost),"[$-en-US]#,###.00"),"0.00"))
Regards,
Sanket

Report
All responses (
Answers (