Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Basically, I have a count function that is trying count rows based on two slicers. One slicer is a date slicer and the other is a product category slicer. I want to ignore the product category slicer but keep the date slicer for the count. Therefore, for example, I am counting all products between two dates (lets say 1/1/2019 and 6/30/2019) even when a user selects a specific product from the other product category slicer.
I have two tables. One that I am counting transactions, FactSales, and one with dates that is connected to FactSales, DimDate.
Current forumla:
Solved! Go to Solution.
You're naming the wrong table in your ALLEXCEPT.
You don't want all the data from the dimDate table except keeping what's filtered by the date slicer, you want all the data from the FactSales table, except keeping what's filtered from the date slicer.
Count Test = CALCULATE(COUNT(FactSales[RevenueRecognitionDate]),ALLEXCEPT(FactSales,DimDate[DateKey]))
You're naming the wrong table in your ALLEXCEPT.
You don't want all the data from the dimDate table except keeping what's filtered by the date slicer, you want all the data from the FactSales table, except keeping what's filtered from the date slicer.
Count Test = CALCULATE(COUNT(FactSales[RevenueRecognitionDate]),ALLEXCEPT(FactSales,DimDate[DateKey]))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 46 | |
| 42 | |
| 26 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |