Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Count distinct value with condition in column

Hi everyone, I have a datatable and I want to display the top 5 Name with Value >15 and use 1 Slicer to filter the time: I am a new user of Power BI and I don't know how to make this request,...
  • v-zhenbw-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    We can use the following steps to meet your requirement.

     

    1. Create a measure to calculate the distinct count value and the value is greater than 15.

     

    Measure = CALCULATE(DISTINCTCOUNT(A[Value]),A[Value]>15)

     

    2. Then we can put the measure to filter on this visual and filter TOP 5 name.

     

     

    The result like this,

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

    BTW, pbix as attached.

     

    Best regards,

     

    Community Support Team _ zhenbw

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