Forum Discussion
Can one slicer filter be selectively applied while other not?
I have a fact table which is something like this:
| Project | Metric | Revenue | Year |
| A | Services | 20 | 2022 |
| B | Product | 30 | 2022 |
| B | Services | 40 | 2023 |
| A | Product | 50 | 2023 |
| A | Services | 60 | 2022 |
| B | Product | 70 | 2022 |
I have two measures as follows:
The value of Total changes with the filter as 2023 and metric as Product. However, the Total Services gives
change anything to the Services Total.
I am trying to understand why this happens. My initial thought was because the initial filter context was being
reset by CALCULATE but this doesn't seem to be the case as it is still being applied to Total and Services
Thank you in advance.
- Anonymous2 years ago
Hi afaro ,
To ensure that the slicer correctly affects and measure, you can adjust the measure to follow the slicer selection. The following are ways to modify the measure:
Services Total = CALCULATE ( [Total], FILTER ( ALLSELECTED ( Table[Metric] ), Table[Metric] = "Services" ) )
This measure is used to keep the slicer selection in context while still filtering for "Services". This way, if "Products" is selected in the slicer, 0 should be displayed correctly.How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- AnonymousNot applicable
Hi afaro ,
To ensure that the slicer correctly affects and measure, you can adjust the measure to follow the slicer selection. The following are ways to modify the measure:
Services Total = CALCULATE ( [Total], FILTER ( ALLSELECTED ( Table[Metric] ), Table[Metric] = "Services" ) )
This measure is used to keep the slicer selection in context while still filtering for "Services". This way, if "Products" is selected in the slicer, 0 should be displayed correctly.How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- afaro
Helper III
This gives me blank data for this measure since it removes all the initial filter context. But this works as using ALLEXCEPT worked for my specific use.
- lbendlin
Super User
If you want independent slicers you need to feed your slicers from disconnected tables.