Forum Discussion
Dynamic Slicer value
- 6 years ago
Hi Anonymous ,
Column cannot display a dynamic result, you need to use measure. According to my test file, you need to use measure as a rule in the filter pane of the second slicer.
Presumably you have already tried, measure can't be used as a slicer or at page level filter.
Hi Anonymous m
You could create a measure and put it into filter pane to show the result.
Measure =
SWITCH (
TRUE (),
SELECTEDVALUE ( 'Region'[Region] ) = "Italy"
&& SELECTEDVALUE ( 'Status'[Status] ) = "Open", 1,
SELECTEDVALUE ( 'Region'[Region] ) = "Germany"
&& SELECTEDVALUE ( 'Status'[Status] ) = "Closed", 1,
SELECTEDVALUE ( 'Region'[Region] ) = "France"
&& SELECTEDVALUE ( 'Status'[Status] ) IN { "Waiting", "Closed" }, 1,
SELECTEDVALUE ( 'Region'[Region] ) = "Spain"
&& SELECTEDVALUE ( 'Status'[Status] ) = "Others", 1,
0
)
Here is my test result and test file for your reference.
Hi,
Thank you to providing the solution. However, It is not working for me due to some reason. This measures shows only 0 value.
Please check my DAX code if i am doing any mistake here:
- v-eachen-msft6 years agoCommunity Support
Hi Anonymous ,
The formula seems to be right. Are the "Region" and "Open Needs Status" are all single values? You could upload your files without any Confidential Information to OneDrive for Business and share the link here.
- Anonymous6 years agoNot applicable
Hi,
I have been tried even with the sample table which did you to use to calculate the measure but it shows only 0.
I am uploading the screenshot for your reference. Also, can we use a measue as a slicer or at page level filter?
Thanks
- v-eachen-msft6 years agoCommunity Support
Hi Anonymous ,
Column cannot display a dynamic result, you need to use measure. According to my test file, you need to use measure as a rule in the filter pane of the second slicer.
Presumably you have already tried, measure can't be used as a slicer or at page level filter.