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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
syazwan95
Frequent Visitor

Slicer input based on the outcome of a measure

Hi,

 

I was wondering if it is possible to make a dynamic, automated slicer where the input is from the outcome of a measure.

 

example.PNG

Here, I have a KPI visual for "Viscosity" and depending on the "Category" choice the KPI goals will be different. Additionally, I have a Measure in the Card visual where there's some background calculations (a bit long to describe). The outcome of the Measure will tell me which "Category" I should use, and this outcome I will use as input in the "Category Choice" slicer. 

 

However, this still requires manual, user input where they have to specify the input in the slicer. I was wondering if I could make an automated, dynamic one where it will automatically take the measure outcome as slicer input everytime data is refreshed.

2 REPLIES 2
Greg_Deckler
Super User
Super User

Hmmm, that's weird. Generally to use a measure in a manner that you cannot generally do so you need to use the disconnected table trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...

 

But your case sounds even weirder than that. I'm thinking sample data is the place to start. 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...
parry2k
Super User
Super User

@syazwan95 you cannot use measures in a slicer, measures can only be used for visual level filter. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.