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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

color bar chart

Need help in color code bar chart according to values each bar shows. I am not able to see any roller paint option, neither fx option to change bar color according to measure. 

 

Kindly assist.

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

Hi @Anonymous ,

Pls refer the below:

base data:

vluwangmsft_0-1648798105599.png

 

create visual:

Bar color = 
SWITCH(
    TRUE(),
    MAX('Table'[value]) = 10, "#FF0000",
    MAX('Table'[value]) = 20, "##00FF00",
    "#000000"
)

Configuration:

vluwangmsft_1-1648798150318.pngvluwangmsft_2-1648798177001.pngvluwangmsft_3-1648798187010.png

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Pls refer the below:

base data:

vluwangmsft_0-1648798105599.png

 

create visual:

Bar color = 
SWITCH(
    TRUE(),
    MAX('Table'[value]) = 10, "#FF0000",
    MAX('Table'[value]) = 20, "##00FF00",
    "#000000"
)

Configuration:

vluwangmsft_1-1648798150318.pngvluwangmsft_2-1648798177001.pngvluwangmsft_3-1648798187010.png

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

amitchandak
Super User
Super User

@Anonymous , if you have used Legend, you will not see fx option, otherwise you should able to see that

 

In bar visual how use two-axis, in place of legend

Concatenate Label off : https://youtu.be/QgI0vIGIOOk

 

Color Measure - Conditional formatting
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://www.youtube.com/watch?v=RqBb5eBf_I4

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks Amit,

 

I have removed legend, still no option for roller paint or fx.test.PNG

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.