Forum Discussion
Countrows not working properly with filters
Hi everyone,
I'm facing an issue with my DAX formula :
Anonymous Easiest fix is to create a separate date table. Then you can grab the min and max of that table without it being impacted by the color filter.
6 Replies
- Greg_Deckler
Community Champion
Anonymous Try:
Measure = COUNTROWS(FILTER(ALLEXCEPT(ClothesSales,'ClothesSales'[Color]),[Date]>=MIN('ClothesSales'[Date]) && [Date]<=MAX('ClothesSales'[Date])))- AnonymousNot applicable
Hi Greg_Deckler , thank you for your reply.
I tried this formula but same result 😪. In the meantime, I've been trying to create a calendar table and use a relationship between my sales dates and the calendar, then use a date slicer based on the calendar table : it works !
However I still don't know how I could create multiple date slicers with this solution (I have multiple date columns in my original table), since you can only create one relationship.- Greg_Deckler
Community Champion
- Greg_Deckler
Community Champion
Anonymous Easiest fix is to create a separate date table. Then you can grab the min and max of that table without it being impacted by the color filter.
- AnonymousNot applicable
Greg_Deckler I think this is the only way. A lot of work for just one measure, but as long as it works, I'm fine with it. Thank you for your help!