Forum Discussion
mumair
Helper I
9 years agoHelp with not double counting
My data looks like the following: Shipment | Voyage | Product | Failed Tanks | Count of Failed Tanks 1000 | NA100 | A | 3D, 3E | 2 1001 | NA100 | A | 3D, 3E | 2 1002 | NA100 | A | 3D, 3E | 2 ...
Eric_Zhang
Microsoft Employee
9 years agoYou'll need to re-model the dataset.
Then create a measure like
Count of Failed Tanks by Voyage =
VAR cnt =
CALCULATE (
DISTINCTCOUNT ( yourTable[Failed Tanks] ),
FILTER ( yourTable, yourTable[Failed Tanks] <> "N/A" )
)
RETURN
IF ( ISBLANK ( cnt ), 0, cnt )