Forum Discussion
Colinu
8 years agoHelper I
Counting distinct (unique) values
I have been trying to count the values in a column. I have tried the belwo Count Kit Bags = DISTINCTCOUNT(PPECheckinOut[ScanKitBagTag]) the result should be 16 but it reuturns 17 (counting th...
- 8 years ago
And this
Measure 2 = SUMX ( ALL ( PPECheckInOut[ScanKitBag ], PPECheckInOut[ Crabs] ), CALCULATE ( VALUES ( PPECheckInOut[ Crabs] ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
Try this
Measure =
SUMX (
SUMMARIZE ( PPECheckInOut, PPECheckInOut[ScanKitBag ], PPECheckInOut[ Crabs] ),
CALCULATE ( VALUES ( PPECheckInOut[ Crabs] ) )
)Zubair_Muhammad
8 years agoCommunity Champion
And this
Measure 2 =
SUMX (
ALL ( PPECheckInOut[ScanKitBag ], PPECheckInOut[ Crabs] ),
CALCULATE ( VALUES ( PPECheckInOut[ Crabs] ) )
)- Colinu8 years agoHelper I
Thanks for this. One little thing is how do i make this a whole number without decimal points?
- Zubair_Muhammad8 years agoCommunity Champion