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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
TFTF_BI
Helper I
Helper I

Measure to give a total count of how many names occur in a register more than 5 times

Hi, I am trying to work out if we can create a single measure that will tell me the ammount of people in a list that have appeared more than 5 times. 

So if Bob appears 7 times in [TableA'column 1'] and James and John appear 4 times in [TableA'column 1'] then I want the measure to show '1'. (As Bob is the only name appearing more than 5 times)

Ideally I need this to be flexible to what ever im filtering to on the visual, this is why I want this creating entirly in a measure.

 

Im probably really over thinking this. 

 

Any help would be appriated!

 

1 ACCEPTED SOLUTION

Hi, @TFTF_BI 

 

It's easy, you try using the function DISTINCTCOUNT.

Measure:

Measure = IF(COUNT('Table'[Name])>5,DISTINCTCOUNT('Table'[Name]),BLANK())

vzhangti_0-1644287121861.pngvzhangti_1-1644287164457.png

This is the relevant document, hope to help you:

https://docs.microsoft.com/dax/distinctcount-function-dax 

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@TFTF_BI , try like

 

Assume you have measure
cnt = count([TableA'column 1'])


then create a new measure
GT 5 = Sumx(filter(valeus([TableA'column 1']), [cnt] >5),[cnt])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Just tried this method, This is very close, I believe its almost there. 

 

This is now showing me the total count of 7 using the above as its counting bob has (<6) 7 times. How can we ammend this to give the unique count so its counts 1 rather than 7? 

Let me know if this doesnt make sense. Thanks

Hi, @TFTF_BI 

 

It's easy, you try using the function DISTINCTCOUNT.

Measure:

Measure = IF(COUNT('Table'[Name])>5,DISTINCTCOUNT('Table'[Name]),BLANK())

vzhangti_0-1644287121861.pngvzhangti_1-1644287164457.png

This is the relevant document, hope to help you:

https://docs.microsoft.com/dax/distinctcount-function-dax 

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors