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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
kiryl
Frequent Visitor

May 2019 update - no conditional colloring in graphs

Hi,

 

I am using May 2019 version and I'm missing of conditional coloring for data in graphs.

I thought this functionality was added in November 2018 update?

Capture.JPG

2 ACCEPTED SOLUTIONS

hi @amitchandak

I wanted to use Line and clustered columns chart. I put:

- item type into Shared axis

- date into Column series, and

- stock amount into Column values

 

After removing date, I managed to get conditional formating accessable, so thanks 🙂

 

But the issue is, I have to show somehow treshold values for every item on each date. I guess I need to use separate visual for each item.

 

Is there a way to set data color based on it's value in comparison to other fields values?

View solution in original post

@kiryl , as long as conditional formatting is allowed. You can always create a color measure and use that after choosing field option

 

Same or different measures

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

 

refer: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

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@kiryl , Are you using legend in the visual? I can see the "Fx" icon near to data color. Which visual you are trying. Also check your version in file-> About

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

hi @amitchandak

I wanted to use Line and clustered columns chart. I put:

- item type into Shared axis

- date into Column series, and

- stock amount into Column values

 

After removing date, I managed to get conditional formating accessable, so thanks 🙂

 

But the issue is, I have to show somehow treshold values for every item on each date. I guess I need to use separate visual for each item.

 

Is there a way to set data color based on it's value in comparison to other fields values?

@kiryl , as long as conditional formatting is allowed. You can always create a color measure and use that after choosing field option

 

Same or different measures

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

 

refer: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

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

@amitchandak , it turned out that I came up with the similar sollution

STOCK COLOR = 
  if(
    'Loans_stock_arms'[STOCK Thr] <= related('Stock Thresholds'[RED]),
    "#FF0000",
    if(
      'Loans_stock_arms'[STOCK Thr] <= related('Stock Thresholds'[ORANGE]),
      "#FFBF00",
      "#00FF00"
    )
  )

 

but your sollution shows how to do it properly 🙂 thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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