- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Dynamically filter measure based on slicer value
I am trying to create a measure that will be affected by a slicer that is selected.
I have two measures that need to be affected by different slicer filters on one page, hence why I am not just synching all of these filters to this page.
I need to dynamically filter this measure in a dax expression.
My fact table is called 'public failure' and the dim table that the slicer is based on is 'public consumableVersion' which has a relationship to a table called 'public consumable' that has the relationship to 'public failure' through the consumable id.
I currently have this:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

For the measure which needs to ignore 2 of the slicers you can use REMOVEFILTERS to ignore filters on the particular table or column used in the slicers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Slicers only affect the page that they are on. If you need a slicer to affect multiple pages you will need to duplicate the slicer on each page, make sure that it is set to sync. You can set it to hidden so that it doesn't affect the pages visually.
Once you have that set up, I don't think you would need the FILTER function in your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is what I was doing before. However, I have two measures that need to be used in a visual. One of which needs to be affected by 6 of the 8 slicers I have. The other measure needs to be affected by all 8 slicers. Does that make more sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

For the measure which needs to ignore 2 of the slicers you can use REMOVEFILTERS to ignore filters on the particular table or column used in the slicers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you this works for me!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
07-12-2024 06:18 AM | |||
Anonymous
| 02-12-2024 02:37 AM | ||
12-17-2023 11:35 AM | |||
Anonymous
| 03-09-2022 09:18 AM | ||
08-16-2023 12:18 PM |
User | Count |
---|---|
123 | |
103 | |
84 | |
49 | |
46 |