cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
irnm8dn Member
Member

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
Super User
Super User

Re: Slicer - need help with DAX

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


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Super User
Super User

Re: Slicer - need help with DAX

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/
irnm8dn Member
Member

Re: Slicer - need help with DAX

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

Highlighted
Moderator v-yuezhe-msft
Moderator

Re: Slicer - need help with DAX

@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.
irnm8dn Member
Member

Re: Slicer - need help with DAX

@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. 

Moderator v-yuezhe-msft
Moderator

Re: Slicer - need help with DAX

@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.

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)