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
swwong1
Helper III
Helper III

Single Slicer for Two Columns

Hi All

 

Just wondering if its possible to have a single slicer to control two related columns (where one project can be worked on by multiple regions)? In my example below, if I select USA, I would like to see project ABC; if i select Asia, I should also see project ABC. I was thinking I will need a helper column??

 

** I shared my excel file as I couldn't show my ideal result in PBI.

 

https://www.dropbox.com/s/4wkiruf83mmahz3/Multiple%20Slicer.xlsx?dl=0 

 

Capture.PNG

Many thanks!

1 ACCEPTED SOLUTION
swwong1
Helper III
Helper III

Thanks @amitchandak @Greg_Deckler 

 

Thinking this carefully, I have overcomplicated my situation. My example have slightly changed now and all the columns are text based instead of numbers.

 

Since a PivotTable/Matrix summarises table, any rows with duplicate will only show up once (if I have multiple regions, it will show up in 2 lines in the data but only once in the matrix as I am not showing the region column in the matrix).

 

View solution in original post

3 REPLIES 3
swwong1
Helper III
Helper III

Thanks @amitchandak @Greg_Deckler 

 

Thinking this carefully, I have overcomplicated my situation. My example have slightly changed now and all the columns are text based instead of numbers.

 

Since a PivotTable/Matrix summarises table, any rows with duplicate will only show up once (if I have multiple regions, it will show up in 2 lines in the data but only once in the matrix as I am not showing the region column in the matrix).

 

amitchandak
Super User
Super User

@swwong1 , with an independent  table in slicer you can do that

 

A measure like this, here client table is not joined with table

 

calculate(sum(Table[client]), filter(Table, Table[region] in values(clinet[client]) || Table[region1] in values(clinet[client]) ))

 

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Greg_Deckler
Super User
Super User

@swwong1 Depends on other things, but often the solution to problems like this is unpivoting your Region columns so that you end up with a single column.


@ 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...

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.