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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
atpbi10
Helper I
Helper I

Using advanced slicer filtering

Here is my data:

Column AColumn B
Car 1Light Green
Car 2Dark Green
Car 3Greenish 
Car 4Azure
Car 5Other
Car 6Blue

 

I would like to create a slicer that can filter out different Green cars or different Blue cars for example.

Is there a way in powrebi to create custom filters on a slicer? I tried creating a measure but it doesnt seem to work on a slicer...

 

Something in this way

IF Column B = "Azure" or Column B ="Blue" THEN "Blue" (so on the slicer I have Blue option that will filter based on the conditions)

IF Column B="Light Green" or Columnb ="Greenish" .... THEN "Green" (so on the slicer I have green option that will filter based on provided conditions.)

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You could create a calculated column as

Colour = SWITCH( TRUE(),
'Table'[Column B] IN { "Azure", "Blue" }, "Blue",
'Table'[Column B] IN { "Green", "Greenish" }, "Green"
)

and then use the new column for slicing and dicing.

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

You could create a calculated column as

Colour = SWITCH( TRUE(),
'Table'[Column B] IN { "Azure", "Blue" }, "Blue",
'Table'[Column B] IN { "Green", "Greenish" }, "Green"
)

and then use the new column for slicing and dicing.

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.