Forum Discussion
Slicer - need help with DAX
In my dashboard, I have a calculation that is shows inventory sold and available as a percentage. I want to take it one step further and include a slicer that enables someone to isolate the data that shows when this calculation is:
- between 90-99.99%
- 100% or grater
In other words I would like to offer the user the ability to select one or both of these ranges in a slicer.
Looking for some DAX help - I think.
Thanks
6 Replies
- Greg_Deckler
Community Champion
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- Ashish_Mathur
Super User
Hi,
I dont think that a measure can be used in a slicer. Once you have computed the percentage, why dont you just drag that measure to the visual filter section and specify a criteria
- AnonymousNot applicable
Theanks for the suggestion, but I don't want every conceivable calculation to be a selectable option.
- AnonymousNot applicable
Anonymous,
Consider to create a disconnect table that contains your measure names, then use slicer to filter visual to show different measures. For more details, please review the following blog. If the method doesn't help, please share dummy data of your table.
https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/
Regards,
Lydia- AnonymousNot applicable
Anonymous
I am not sure that the disconnected table solves my need.
Essentially, I want a slicer that allows the data visualization to show if I have 90-99.9% sold, and another slicer that tells me if I am >100% sold. My calculated column covers a wide range of calculations.
Can you help me connect the dots with the article you sent, or an alternative solution?
Thanks.
- AnonymousNot applicable
Anonymous,
Please help to share dummy data of your table and post expected result here.
Regards,
Lydia