Need to sum the difference of two summary columns

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

Basic Summary TableBasic Summary TableExpenses TableExpenses Table

0 3 95
3 REPLIES 3

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])
Top Labels in this Space