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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AlexGurovich
Helper II
Helper II

In the Slicer, expose some values to the user, but execute the filtering by another value

Hi:

 

I have a unique and only Slicer in my Power BI Desktop. I want the Slicer to expose some values to the user, but "behind the scenes", I want that Slicer to execute the filtering of the page by the values of another column.

 

For Example, let's imagine I have the following Table, with Columns A and B:

Column AColumn B
China150
France20
Argentina310

 

I would like the Slicer to expose in the user interface the values of Column A ("China, France, Argentina")

 

But if the user chooses, for example, "France", then the execution of the filter "behind the scenes" should be done by the value "20" (Column B)

 

Or if the user chooses "Argentina", then the execution of the filter is by the value "310" (Column B)

 

Appreciate,

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@AlexGurovich here is the updated pbix file using relationship, it is bit tricky but works.

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



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.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@AlexGurovich here is the updated pbix file using relationship, it is bit tricky but works.

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



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.

@parry2k you are a genius, although it didnt worked for me in my real model I dont know for what reason!

 

I'm anyway mark it as "Accept as Solution" cause it meets the problematic as stated in this post.

parry2k
Super User
Super User

@AlexGurovich solution is attached, tweak it as you see fit.

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 

 



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.

@parry2k  we are almost there, you are a genius!!!! I'm going to reccomend you everywhere...

 

There's one last thing...That I should have said and didn't, and that is, that the 2 tables MUST be realted (for reasons different than the ones stated in this post). Related like in the following screenshot:

AlexGurovich_1-1629298460788.png

When that relation ship exists, then the Slicer doesn't work according to my original problem statement, as you can see in the following screenshot. Help help help! Can something be done without the need of removing the relationship between the two tables????????????????

 

AlexGurovich_2-1629298529103.png

 

Sincerely,

 

parry2k
Super User
Super User

@AlexGurovich two questions come in the mind:

 

- what happens if no value is selected in the slicer?

- When do you say filter by another column? What you are tyring to filter? What is your expectations?



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.

Hi @parry2k 

 

I’ll try to clarify with a different example. Thanks for coping with me.

 

Imagine I have the following Table ProductNames:

   id      PopularNameOfTheProduct      OfficialNameOfTheProduct   
1AW
2BW
3CW
4DX
5EY
6FZ
7GZ

 

And then imagine I have the following Table PricePerProductPerDate :

   id      PopularNameOfTheProduct      OfficialNameOfTheProduct      Date      Price   
1AW01/Jan$100
2AW02/Jan$120
3BW02/Jan$110
4BW03/Jan$150
5BW10/Jan$140
6DX15/Mar$130
7FZ25/Feb$100

 

What I would like to achieve is a Slicer that exposes the options A, B, C, D, E, F, G. In other words, a Slicer that exposes the options in Column “PopularNameOfTheProduct” of Table ProdcutNames . That's the 1st thing.

 

And then the 2nd thing, is that below the Slicer there must be simple visualization that exposes the Table PricePerProductPerDay . But here comes the tricky part: if the user filters the Slicer by “A”, then the visualization should expose rows 1, 2 3, 4 and 5 of Table PricePerProductPerDay, that are the rows that have "W" as OfficialNameOfTheProduct ("W" being the OfficialNameOfTheProduct corresponding to option "A" selected in the Slicer). In other words, expose in the visualization those 5 rows, as opposed to exposing only rows 1 and 2, that are the ones that correspond to "A". 

 

Regarding your question "what happens if no value is selected in the slicer?", my answer: whatever is simpler  and easier in order to achieve the 2 goals stated above. But ideally, if no value is selected, expose in the visualization the full table PricePerProductPerDay without any filter.

 

Hope I made myself clear.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors