I can sum the two summary columns in the reports
However I need to omit from the total the data from the column when the other column is empty
In Table โBasic Summaryโ
Fuel Amount: SUM(SELECT([Expenses][AMOUNT], [EXPENSE] = "Fuel"))
Fuel Discount: SUM(SELECT(Expenses[Fuel Discount], AND([DATE] >= [_THISROW].[start date], [DATE] <= [_THISROW].[end date])))
[Fuel Amount]-[Fuel Discount]
I need to sum this but exclude the data from โFuel amountโ where the โFuel Discount is missing
So you need [Fuel Amount]-[Fuel Discount] to evaluate to zero(0) if no data is returned in the select statement for fuel discount?
Yes I need to Omit the [Fuel Amount] when the [Fuel Discount]=0 for that expense ID
You can try this:
IF([Fuel Discount] = 0, 0, [Fuel Amount] - [Fuel Discount])
User | Count |
---|---|
43 | |
32 | |
25 | |
23 | |
14 |