Forum Discussion
Use measure as filter
- 4 years ago
Hi Anonymous ,
Measure cannot be used as a slicer, but a similar effect can be achieved in other ways:
Switch = SWITCH ( SELECTEDVALUE ( Table_2[Date] ), DATE ( 2022, 01, 01 ), [Measure1], DATE ( 2022, 01, 02 ), [Measure2], DATE ( 2022, 01, 03 ), [Measure3] )If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
You cannot use a measure directly in a slicer. However, there are some workarounds available. Have a look in here:
Solved: Cannot use measure in slicer - Microsoft Power BI Community
Power BI - Filter by a Measure in a Slicer - YouTube
Let me know if this works, or in case you get stuck somewhere.
Please, accept this answer as solution, if it solves your issue 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Thanks for the suggestion. I couldn't make it work so far, but I managed to solve it for now by using a new input with the info that I wanted to store in the measure.