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
Anonymous
Not applicable

Conditional formatting a field based on 5 variables

Hi, I have been challanged with this one and hunted google etc to no avail and looking for some advice:

 

I would like to colour code a name field based on 5 different cells: Thisis an abridged table to make life easy, but I have about 60 names or so...

 

e.g. 

Name               Date       Indicator 1         Indicator 2       Indicator 3     Indicator 4

Smith, John     23/3/19          3                          1                                            2

Low, Tony                                                                      

Price, Toby        6/4/19           4                         2                         1                   1

Walk, Janine                            1                         1

 

Where values are present, they represent compliance to a requirement. I would like 3 outcomes if possible

There is 1 date field and the remainders are numerical fields based on measures.

1. Highlight name Red when 5 variables no values

2. Highlight name Yellow when 1 variable or more is present

3. Highlight name Green  when all 5 variables are present         

cheers                    

1 REPLY 1
Anonymous
Not applicable

@Anonymous Here is my approach
1. Go to edit query
2. Select all five fields and click on add column tab

3. Click on statistics and select count values
4. Close and apply

5. Right click on the name field in table visual 

6. Do the conditional formatting --> format by rules and  based on the new count column created using statistics

7. create rules for green red and yellow

Let me know if you have any question. If this post help mark it as solution.

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.

Top Solution Authors