I am going to set analysis for the straight table to get the total of revenue that got cancelled.
What I am used is sum(if ( order_status='Cancelled' and isnull(InvoiceItemID) Revenue_USD))
The expression itself does not have any syntax error, but the result is way off.
I am wondering if there is any way to get the null values for InvoiceItemID field so that the revenue associated with those null InvoiceItems will be summed up.