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
harshadsp
Post Patron
Post Patron

Based on other value format color of another value in matrix table

Hello,

 

Need your help. Is there any way I could format red color of one column based on some value in another column?

 

For exmaple:- If the value in Diff column is <0 then colour the corresponding value in Y column as red.

Capture.PNG

 

I tried making one column as below and then rename this to Y but the problem is that the value in Y column comes as negative with this and then I use conditional formatting in BI desktop to colur as red but I really do not want to show actual value as negative.

if(Query1[Diff] < 0,Query1[Y]*-1,Query1[Y])

 

I need to color value of column Y based on value of column Diff.

 

Please advise.

 

Thanks!

Harshad

 

 

 

 

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @harshadsp,

 

Unfortunately, this is not supported by Power BI now. The current conditional format only supports color scale based on current column values.

 

Here are some ideas, you can click to vote it up.

Conditional color of one column depending on another column

Conditional Formatting with fixed colors not color scale.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-yulgu-msft for confirmation on this.

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.