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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Distinct Value with filter greater than >5

Hello all experts

 

I need create a measure in DAX which allow me to see the Disctinct Count for a table (Id Campione) and show me the Count of other column (Parameter) if this one has values greater than 5 (>5)

I put this example here: As you can see IdCampione has 3 count distinct for all the table.

And the Parameter has a count of 10 values. The logical needs to shows when the CountDistinct of IdCampione is >5 show me data in the table, and when this is not true, do not show anything.

So far I got this put wont work:

Contaminated Samples > 5 =
CALCULATE(
        DISTINCTCOUNT('Level2-AnalysisList2'[IdCampione (sampleList)]),
        FILTER ('Level2-AnalysisList2', 'Level2-AnalysisList2'[IdCampione (sampleList)] >5)
      )



Thanks for the help


2134.PNG

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You need COUNT('Level2-AnalysisList2'[IdCampione (sampleList)]) > 5?

 

Create a measure

 

calculate(COUNT('Level2-AnalysisList2'[IdCampione (sampleList)]), filter(allselected('Level2-AnalysisList2') , 'Level2-AnalysisList2'[IdCampione (sampleList)]) = max('Level2-AnalysisList2'[IdCampione (sampleList)]) ) )

 

and use visual level filter measure > 5

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors