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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

DAX to substitute text in a slicer when filtered by another Slicer

Hi,

I have 2 slicers in my dashboard coming from the same table. What I am trying to do is when I select the value on one slicer I want it to substitute text from the values in the other slicer in addition to filtering it. For example,

 
 
 
 
 
 
 
 
 
 

Slicer 1                                 Slicer 2

slicer.PNGslicer2.PNG

 

 

 

When I click on Franchise in Slicer 1 I want to replace the Franchise text in  Slicer2 with Blank

I tried to create a DAX query  but it's not working. Can any one please help?

 
Account List =
VAR _slicervalue = SELECTEDVALUE(SlicerValue[TierType])   
RETURN
IF(_slicervalue = "Franchise", SUBSTITUTE(VALUES(FIFA_LM_Products[ProductLevel-Product]),"-Franchise","")
)

 

 

 

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

I can't think of a single way to do that. Other than maybe having a table of just your options in slicer 1 and then that related to a table that has your goal slicer 2 values. But tough to tell if that would meet your needs.


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Anonymous you cannot replace the text in slicer 2 but you can filter the slicer 2 based on slicer 1. In this video whatever value is selected in slicer 1, it remove values from slicer 2 that contains selected slicer 1 value, and if nothing is selected in slicer 1 it shows all the values in slicer 2.

 

See if this logic can get you what you are looking for, left side is slice 1 and right hand side is slicer 2. 

 

Would appreciate Kudos 🙂 if my solution helped.

 

slicer filter.gif

 



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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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