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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bookhouseboy
Helper I
Helper I

Interactive filters across multiple variables

Hi,

I apologize if this turns out be super banal; I'm still fairly new to Power BI. I tried to google this, but it's hard to put the problem into a pithy phrase.

I want to create an interactive report on the ratings of individual scenes of a TV show based on which character is in a scene. So my source data looks like this:
Clipboard01.jpg

It's easy enough to slice the data for, say, the character of Clara alone. But I want to give people the option of clicking on "Clara" and "Bob" and then only be shown scenes Clara shared with Bob (i.e. scenes 1 and 4).

There are 28 characters, by the way, so solutions including 28 individual slicer visuals (if they exist) would not be practical.

How do I do this? Is there a way? 

Thanks!

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @bookhouseboy ;

You could unpivot columns expect [SceneNo] column. 

1.unpivot it 

vyalanwumsft_0-1634534847505.png

2.create a slicer table.

slicer = SUMMARIZE('Table',[Attribute])

3.create a flag measure.

flag = 
var _sli=SUMMARIZE('slicer',[Attribute])
var _tab=SUMMARIZE(FILTER(ALL('Table'),[Attribute] in _sli&& [Value] ="NO"),[SceneNo])
return IF(ISFILTERED(slicer[Attribute]),IF(MAX([SceneNo]) in _tab,0,1),1)

4.then creata a matrix then apply flag is "1" into visual.

vyalanwumsft_1-1634534970099.png

The final output is shown below:

vyalanwumsft_2-1634535000391.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @bookhouseboy ;

You could unpivot columns expect [SceneNo] column. 

1.unpivot it 

vyalanwumsft_0-1634534847505.png

2.create a slicer table.

slicer = SUMMARIZE('Table',[Attribute])

3.create a flag measure.

flag = 
var _sli=SUMMARIZE('slicer',[Attribute])
var _tab=SUMMARIZE(FILTER(ALL('Table'),[Attribute] in _sli&& [Value] ="NO"),[SceneNo])
return IF(ISFILTERED(slicer[Attribute]),IF(MAX([SceneNo]) in _tab,0,1),1)

4.then creata a matrix then apply flag is "1" into visual.

vyalanwumsft_1-1634534970099.png

The final output is shown below:

vyalanwumsft_2-1634535000391.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@bookhouseboy , I think it better to unpivot all these columns as row values and then create a slicer (multiple value slicer )

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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