Forum Discussion
Custom Measure in Report Displays G-14
Hello -
I have a custom measures that are displaying G-14 rather than 0. Ideally if nothing was delivered the measuers should be zero.
I've changed formatting and messed around with some other settings but still no luck. It's a division by zero but I can't get it to display zero in these situations. Any help would be appreciated.
What happens if you rewrite your measure like this:
Est. Net Cases =
CALCULATE( IF (SUM('Actual Sales'[NetCaseQuantity]) = BLANK(), 0, SUM('Actual Sales'[NetCaseQuantity])) , NOT 'Product'[Product Number] IN {"996002","996001"})
3 Replies
- d_m_LNK
Super User
What happens if you rewrite your measure like this:
Est. Net Cases =
CALCULATE( IF (SUM('Actual Sales'[NetCaseQuantity]) = BLANK(), 0, SUM('Actual Sales'[NetCaseQuantity])) , NOT 'Product'[Product Number] IN {"996002","996001"})
- tedbunyFrequent Visitor
This seems to work but I'll need to verify overall numbers:
Est. Net Cases = ROUND(CALCULATE( IF (SUM('Actual Sales'[NetCaseQuantity]) = BLANK(), 0, SUM('Actual Sales'[NetCaseQuantity])) , NOT 'Product'[Product Number] IN {"996002","996001"}), 5) - tedbunyFrequent Visitor
Thanks for the reply but it did not change anything. GE-14 still visible.