Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I've created a measure to calculate count of the date events and don't want to count them while two of the filters applies but need other filters to work .
filters are the date slicer , market name , user name and three other category filter .
I want to disable two of the filters but keep the measuere value with regards by any other filter selection I came up with below DAX formulas :
1 - CALCULATE (COUNT('Table'[Date]),
2- CALCULATE(
CALCULATE(
Solved! Go to Solution.
Hi,
If filters aren't functioning properly and it seems likely that the problem is in data the first thing I usually do is to look at whether or not the relationships are working and if they are they the wrong type. E.g. if the relationship is many to many or if there are duplicate rows in data. E.g. if you have category 1 and 2 for all the dates the filters wouldn't do anything.
Also in this case one of the easier solutions would be to use a separate dimension table.
Example (table 7 = fact table 10 = dimension):
10:
7:
Here we can see that the filter created from fact table has no effect on the Filter behaviour:
Now when we apply a filter from dimension table the calculation chnages:
This way we can remove the filter context in the measure using ALL/REMOVEFILTERS but still have slicers that affect the calculation.
Proud to be a Super User!
Awesome !!! I learned something new and it works .
Hi,
Based on the DAX you are using the first measure should work. I believe the issue might be the data. Also you could use ALL instead of REMOVEFILTERS (this is just a personal preference).
CALCULATE (COUNT('Table'[Date]),
Proud to be a Super User!
Thank you so much for your reply,I think also the issue may be from the data any idea that how data may impact on the function of the filters ? when I apply the category filter it acts diffrent than it supposed to be and doesn't filter correctly it looks filters from a diffrent table of own.
Hi,
If filters aren't functioning properly and it seems likely that the problem is in data the first thing I usually do is to look at whether or not the relationships are working and if they are they the wrong type. E.g. if the relationship is many to many or if there are duplicate rows in data. E.g. if you have category 1 and 2 for all the dates the filters wouldn't do anything.
Also in this case one of the easier solutions would be to use a separate dimension table.
Example (table 7 = fact table 10 = dimension):
10:
7:
Here we can see that the filter created from fact table has no effect on the Filter behaviour:
Now when we apply a filter from dimension table the calculation chnages:
This way we can remove the filter context in the measure using ALL/REMOVEFILTERS but still have slicers that affect the calculation.
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |