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

apply conditional formatting to a slicer power bi

Hello all! 

I have created a conditonal format column too add to my table depending on my total of (Float days) as seen below 

Snag_16603db.png

 using this measure  

Status Color =

IF ([FloatPerActivity]< 0 , "CircleLow",
IF( [FloatPerActivity] >= 0 && [FloatPerActivity]<=10 , "CircleMedium",
if( [FloatPerActivity]> 10 , "CircleHigh",
IF([FloatPerActivity] = 0 , "CircleMedium"))))
 
however in my tablei was easily able to change the hard code to Icons but the issue im running into is managment wants to be able to slice using this conditional column but the options in the slicer show up as the hard code ... like this 

Snag_167aa76.png

 is  there a way for me to keep the conditional formatting in the table but rename the options in the slicer for managment to undertand or perhaps use the same icons the slicer works i just dont expect upper managment to correalte the icon with the hard code 

yazenbarakat123_0-1659469409884.png



Any help would be appreciated thank you!! 

 

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

Hi @yazenbarakat123 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_4-1661417063806.png

 

Please try:

vjianbolimsft_1-1661416903174.png

Output:

vjianbolimsft_2-1661416929959.png

If you want to change the value of slicer, please try:

First create a new table for slicer

vjianbolimsft_3-1661417031788.png

Then add a new column:

Column = SWITCH([Custom],
"CircleLow","A",
"CircleMedium","B",
"C")

Manage relationships:

vjianbolimsft_5-1661417182344.png

Final output:

vjianbolimsft_6-1661417214377.png

Best Regards,

Jianbo Li

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-jianboli-msft
Community Support
Community Support

Hi @yazenbarakat123 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_4-1661417063806.png

 

Please try:

vjianbolimsft_1-1661416903174.png

Output:

vjianbolimsft_2-1661416929959.png

If you want to change the value of slicer, please try:

First create a new table for slicer

vjianbolimsft_3-1661417031788.png

Then add a new column:

Column = SWITCH([Custom],
"CircleLow","A",
"CircleMedium","B",
"C")

Manage relationships:

vjianbolimsft_5-1661417182344.png

Final output:

vjianbolimsft_6-1661417214377.png

Best Regards,

Jianbo Li

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

@yazenbarakat123 , if this dynamic segmentation using measure, then in the table you can have display value, join or filter value

 

Like in this case I have table with generate series , where I join with values, but I can additional column for filter

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

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

Hello thanks for the response but I'm not sure how this relates to my question above 

 

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.