Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Colinu
Helper I
Helper 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 the duplicate value). 

 

can anyone help as to why or how to get it to count only values that are unique and not balnk. 

 

Thanks

1 ACCEPTED SOLUTION

@Colinu

 

And this

 

Measure 2 =
SUMX (
    ALL ( PPECheckInOut[ScanKitBag ], PPECheckInOut[ Crabs] ),
    CALCULATE ( VALUES ( PPECheckInOut[ Crabs] ) )
)

Regards
Zubair

Please try my custom visuals

View solution in original post

11 REPLIES 11

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.