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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Slicer Using Colour

 

Hi,

 

Is it possible to create slicer using colour see screenshot?

 

Regards,

 

Noel

 

tksnota_0-1718266370727.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for the reply from @lbendlin .

 

@Anonymous , are you trying to use the color directly as a slicer? I'm afraid that's not directly possible.

 

From your screenshot, there are three ranges, namely greater than 0, between -5 and 0, and less than -5. Here is a simple test I created for your reference:

 

My sample:

vxuxinyimsft_0-1719994855485.png

 

Then I created a calculated column as follows.

 

Column = SWITCH(TRUE(),
[Value] > 0, "> 0",
[Value] <= 0 && [Value] >= -5, "-5 - 0",
[Value] <-5, "< -5")

 

 

use this column as a slicer:

vxuxinyimsft_1-1719994900067.png

 

Output:

vxuxinyimsft_2-1719994926672.png

 

Best Regards,
Yulia Xu

 

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
Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for the reply from @lbendlin .

 

@Anonymous , are you trying to use the color directly as a slicer? I'm afraid that's not directly possible.

 

From your screenshot, there are three ranges, namely greater than 0, between -5 and 0, and less than -5. Here is a simple test I created for your reference:

 

My sample:

vxuxinyimsft_0-1719994855485.png

 

Then I created a calculated column as follows.

 

Column = SWITCH(TRUE(),
[Value] > 0, "> 0",
[Value] <= 0 && [Value] >= -5, "-5 - 0",
[Value] <-5, "< -5")

 

 

use this column as a slicer:

vxuxinyimsft_1-1719994900067.png

 

Output:

vxuxinyimsft_2-1719994926672.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

That's a table visual, not a slicer?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.