cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FaisalImam
Frequent Visitor

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
Noorani
Helper II
Helper II

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

 



New Power BI Features
Datamarts: https://youtu.be/8tskWsJTEpg
Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin !! Proud to be a Super User!
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
!! Subscribe to my youtube Channel !!

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 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors