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.

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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 266 members 2,476 guests
Please welcome our newest community members: