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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Help Using One Slicer for 3 columns

I am trying to filter my data with 1 slicer across 3 columns.  The data I have looks like this:

 

ProjectColor 1Color 2Color 3
1RedBlueGreen
2GreenYellow 
3BlueGreen 
4YellowBlue 
5GreenRedYellow
6Yellow  

 

I would like the slicer to be:  Red, Green, Blue, Yellow, so if Red was selected, Project 1&5 would show up, if Blue was selected, Project 1,3 & 4, etc. 

 

Is there a way to do this? 

 

Thanks

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Please download the demo from the attachment and try it.

1. Create a new table. DO NOT establish any relationship.

Colors =
FILTER (
    DISTINCT (
        UNION (
            VALUES ( Table1[Color 1] ),
            VALUES ( Table1[Color 2] ),
            VALUES ( Table1[Color 3] )
        )
    ),
    [Color 1] <> BLANK ()
)

2. Create a measure.

Measure =
VAR _colors =
    VALUES ( Colors[Color] )
RETURN
    IF (
        MIN ( Table1[Color 1] ) IN _colors
            || MIN ( Table1[Color 2] ) IN _colors
            || MIN ( Table1[Color 3] ) IN _colors,
        1,
        BLANK ()
    )

3. Add the measure into the Visual Level Filter and filter out the blanks.

Help-Using-One-Slicer-for-3-columns

 

Best Regards,

Community Support Team _ Dale
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

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Please download the demo from the attachment and try it.

1. Create a new table. DO NOT establish any relationship.

Colors =
FILTER (
    DISTINCT (
        UNION (
            VALUES ( Table1[Color 1] ),
            VALUES ( Table1[Color 2] ),
            VALUES ( Table1[Color 3] )
        )
    ),
    [Color 1] <> BLANK ()
)

2. Create a measure.

Measure =
VAR _colors =
    VALUES ( Colors[Color] )
RETURN
    IF (
        MIN ( Table1[Color 1] ) IN _colors
            || MIN ( Table1[Color 2] ) IN _colors
            || MIN ( Table1[Color 3] ) IN _colors,
        1,
        BLANK ()
    )

3. Add the measure into the Visual Level Filter and filter out the blanks.

Help-Using-One-Slicer-for-3-columns

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vvelarde
Community Champion
Community Champion

@Anonymous 

 

Hi, Try unpivoting the data in Query Editor.

 

Regards

 

Victor




Lima - Peru
Anonymous
Not applicable

Thanks - this is actually part of a larger data set that is currently 3,100 rows and counting and about 30-40 columns total.  Could I create a new table with just these columns and unpivot that?  Maybe a separate query that just pulls in these 4 columns and then unpivots?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.