Forum

Filter a DistinctCo...
 
Notifications
Clear all

Filter a DistinctCount column

6 Posts
2 Users
0 Reactions
63 Views
(@culsh)
Posts: 43
Trusted Member
Topic starter
 

I am using this expression to create a count of distinct students in a duplicated list.  DISTINCTCOUNT('EMC College Grades'[Student_Number]) in my powerpivot model.  How can I filter the resulting column in my pivot table or use it in a slicer?

 
Posted : 19/11/2019 2:40 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Cheryl,

The DISTINCTCOUNT function doesn't return a column, it returns a scalar (single value). I'm not sure how you'd want to use a distinct count in a Slicer. Can you provide an example?

Mynda

 
Posted : 19/11/2019 6:43 pm
(@culsh)
Posts: 43
Trusted Member
Topic starter
 

My list of duplicated student ids returns the number of distinct students with this funciton.   I would like to report in my pivot table values where there are 10 or more distinct students.  I have attached my file with a  tab called distinct-count.  The pivot table shows a column created with the function, and I want to filter for only values greater than 10 in that column.

 
Posted : 19/11/2019 8:48 pm
(@mynda)
Posts: 4761
Member Admin
 

Thanks for the sample file. Click the filter drop down in column A > Value filters > Greater than > 10.

Mynda

 
Posted : 20/11/2019 6:59 am
(@culsh)
Posts: 43
Trusted Member
Topic starter
 

Thank you so much - I was looking to filter column B, and not looking for the value filter in that column.  I appreciate your courses, they have been easy to understand, and such a great resource!

 
Posted : 20/11/2019 8:55 am
(@mynda)
Posts: 4761
Member Admin
 

You're welcome, Cheryl. Glad you're enjoying the courses 🙂

 
Posted : 20/11/2019 6:43 pm
Share: