Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
irnm8dn
Post Prodigy
Post Prodigy

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 6
v-yuezhe-msft
Employee
Employee

@irnm8dn,

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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

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. 

@irnm8dn,

Please help to share dummy data of your table and post expected result here.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
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


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Theanks for the suggestion, but I don't want every conceivable calculation to be a selectable option.

Greg_Deckler
Super User
Super User

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


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.