Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm seeing some weird behavior that I suspect is a bug. The most basic reproduction I can come up with is this:
Setup:
One table:
FilterColumn | MeasureColumn |
1 | 0 |
1 | 0 |
2 | 0 |
2 | 1 |
One measure that is intended to calculate all rows in the above table, respecting any filters applied to FilterColumn, but ignoring filters applied to MeasureColumn if present:
@MrGorkajuice - I'm not sure that this would be classified as a bug per se. Maybe. Have run into similar things and the "problem" is actually the Filter pane. I suspect that it is the Filter pane that is causing the issue as I have seen similar things with Report level and Page level filters. I'm thinking perhaps it is going like slicer filters -> visual level filter -> DAX
So when you apply the visual level filter to the set coming back from the slicer you get nothing going to DAX so an ALL filter of nothing is still blank.
I have attached a sample PBIX for others to experiment with.
You might want to submit this as an issue and see what comes back.
Thanks for the response. There definitely seems to be something to your explanation, as I can get around the issue by moving the MeasureColumn filter from the visual to a slicer. On the other hand, it also seems a bit more complicated, as the MeasureColumn 0 rows makes it to the DAX expression as long as the slicer filter doesn't completely reduce the dataset to 0 records...
Thanks for confirming that it is indeed weird. I will submit it as an issue 🙂
Yeah @MrGorkajuice I think it is some kind of optimization going on with the Filter pane. It's similar if you have a Page level filter, those things will never be included in DAX calculations because they essentially get pre-filtered out before getting to DAX. The Filter pane can definitely cause weird behavior. But, I agree that it's odd because it only happens in this case when the set gets filtered to zero.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |