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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
micpete
Helper III
Helper III

Help with filtering distinct count of column by a measure

Hello,

 

Can anyone help me here? I have a column with a bunch of names, some of the names are duplicated but I just want the distinct count of those names, I want to filter these names by a measure I created that I know works, can I create another measure to find the distinct count of these names filtered by that measure? I can't seem to find anything that works,

1 ACCEPTED SOLUTION
micpete
Helper III
Helper III

Hello, I think I've managed to achieve it by using Calculate(DistinctCount('ColumnName'), Filter(AllSelected('ColumnName'), 'Measure'))

That seems to work!

View solution in original post

2 REPLIES 2
micpete
Helper III
Helper III

Hello, I think I've managed to achieve it by using Calculate(DistinctCount('ColumnName'), Filter(AllSelected('ColumnName'), 'Measure'))

That seems to work!

mark_endicott
Super User
Super User

@micpete - If you have a measure like:

 

DISTINCTCOUNT( Name ) 

Then you can add it to a visual as a visual filter, and select "Is Not Blank"

 

mark_endicott_0-1717587598760.png

But you will only be able to take this approach should there be a column from your data in the visual. 

 

If this helps you, please mark it as the solution.

 

If it does not, please provide more detail about what you are trying to achieve, some sample data and the measures you are using. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.