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
AishwariyaV
Helper IV
Helper IV

Conditional formatting in unpivoted columns

Hi

I have three columns

  1. Variance (Budget vs actual),
  2. Budget
  3. Actual.

I have unpivotted these columns using edit query. So these columns will be clubbed into a single column and will be named as "attribute" column and their corresponding values will be named as "value" column.

 

In matrix visual, i have added attribute column to Columns data field and value column to Value data field.

 

The problem is, i have to apply conditional formatting only for variance column and NOT FOR budget column and actual column.

 

Since these three columns are clubbed, conditional formatting is reflecting in all the three columns.

 

 

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @AishwariyaV 

You may create a measure like rule measure as below and use it in conditional formatting.

Rule = IF(MAX(Table2[Attribute])="Variance",1)

a1.png

Regards,

Community Support Team _ Cherie Chen
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

2 REPLIES 2
v-cherch-msft
Employee
Employee

Hi @AishwariyaV 

You may create a measure like rule measure as below and use it in conditional formatting.

Rule = IF(MAX(Table2[Attribute])="Variance",1)

a1.png

Regards,

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

hi @v-cherch-msft ,

Thank you so much. It worked well.

Is it possible to do this in Data Bars instead of Background color ??

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.