Forum Discussion
DAX count with count filter
Thanks Zubair,
I was able to replicate your solution.
Would you be able to help with 2 phase of my question? I need to be able to provide users with an item to click that would act as a filter to only display those records >1 independent of the dynamic filter for Status. Idealy a table with one value "Click to Filter Mult IDs".
In the past I used a 2nd table to map values, but since we are generating the count on the fly so the count is not a column in the ingested table, I cant create a relationship on the count.
- Zubair_Muhammad8 years agoCommunity Champion
Hi,
You can add an ID_Count calculated column as well. Then you can use it a slicer for Users to select records>1
ID_Count = CALCULATE ( DISTINCTCOUNT ( TableName[ID] ), FILTER ( TableName, TableName[Sold to] = EARLIER ( TableName[Sold to] ) ) )- bvanevr8 years agoAdvocate II
thanks v-yulgu-msft for the reply.
I was able to reproduce result, but would really like a spreadsheet way of doing this. How my scorecard currently works is
The 6 is coming from a Card and the "Filter" is a spreadsheet filtered to include only "Filter. This allows the user to see the count of Sold to failing a rule and then click "Filter" to see the associated records. Based on prior answers i was able to get the "Filter" to display, but it does not complress to a single line
I hope this makes sense to you.