I have a flow that is kicked off from a power app and it loops through a ledger list and needs to sum the totals of 2 columns into one value. My issue is that no matter how I try to do this, the total at the end comes up short of the actual total or the flow fails due to finding a blank value when expecting a float, int, etc.
Here is the code for my increment variable inside the apply to each:
add(item()?['TripMileageCost'],item()?['TripExtraCosts']) -> (fails due to null value found instead of float, int. etc)
I previously had 2 increment var actions inside the apply to each one for each of the above item() calls and that is the one that shows the incorrect total. The total should come to 190 but only shows 160.
Not sure why its missing values from the list as they all show up in the formatted HTML table I send at the end of the flow. When i total those values, it comes out to 190 as expected.
TIA! Mike