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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rituritu
New Member

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 @Rituritu ,

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 @Rituritu ,

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

@Rituritu , 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-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://www.youtube.com/watch?v=RqBb5eBf_I4

Thanks Amit,

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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