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
FaisalImam
Helper I
Helper I

Color Formatting Row wise but few column are to be uncolored.

Any measure to format background color  as shown below

 

metricsexpectedmonth1month 2month3
resolution90%45%70%30%
response80%90%45%25%

 

We need to format backgrounds only for month's cell - month1,month2 and month3 but row wise. Because conditions are different for every row.

Also first two column will remain colourless.

 

I tried with the inbuilt color formatting but it works for whole column and when doing measure,it works for whole row.

1 ACCEPTED SOLUTION

Hi, @FaisalImam 

Conditional formatting is applied to the column.

For each row on this column ,try to use  'Switch' statement to make additional conditional judgments.

Last Rate of each day =
SWITCH (
    SELECTEDVALUE ( 'Table1'[Key service value] ),
    'Incident resolution P1', IF ( [Feb SlA] > 0.08, "red" ),
    'Incident resolution P2', IF ( [Feb SlA] > 0.85, "green" ),
    'Incident resolution P3', IF ( [Feb SlA] > 0.90, "yellow" )
)

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, 

you need to write DAX expression for differnt values and use your expression for conditional formatting.

Here's an example: Conditional formatting by field value in Power BI - Power BI Docs

amitchandak
Super User
Super User

@FaisalImam , You can create color measures and check condition and color

 

Switch( True(),

max(Table[Month]) = "Jan", "White",

[Measure] <.8 , "red" ,

//add other condition 

)

 

Use this is conditional formatting using the field value option

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

 

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

Screenshot 2022-04-25 110756.pngSee this is the table. I want Feb SlA and MArch SLA backgroungd too change but based on key metrics. That is conditions are different for each row like  -Incident Resolution Backlog is 8% . So how to do it Row wise and only for some of the cells.

Hi, @FaisalImam 

Conditional formatting is applied to the column.

For each row on this column ,try to use  'Switch' statement to make additional conditional judgments.

Last Rate of each day =
SWITCH (
    SELECTEDVALUE ( 'Table1'[Key service value] ),
    'Incident resolution P1', IF ( [Feb SlA] > 0.08, "red" ),
    'Incident resolution P2', IF ( [Feb SlA] > 0.85, "green" ),
    'Incident resolution P3', IF ( [Feb SlA] > 0.90, "yellow" )
)

 

Best Regards,
Community Support Team _ Eason

 

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.