Conditional Formatting in Power BI

Robzx

New Member
Joined
Jun 5, 2015
Messages
25
Hi

I am starting to play with Power BI and am trying to do some conditional formatting on a matrix.

The measure that I have written works but has hard-coded values. The conditional formatting itself is being done on the measure using the rules of if value is 0 then colour white, if 1 then colour red.

Conditional Formatting = MAXX(Resource, IF(Resource[Grade]="Consultant"&& [Efficiency Measure] <=.95, 1, IF(Resource[Grade]="Managing Consultant"&& [Efficiency Measure] <=.75,1, IF(Resource[Grade]="Senior Consultant"&& [Efficiency Measure] <=.85, 1, IF(Resource[Grade]="Principal Consultant"&& [Efficiency Measure] <=.75, 1, IF(Resource[Grade]="Director"&& [Efficiency Measure] <=.60, 1 ))))))

Is it possible to have a lookup against the Resource table rather than hard-coded values?

Resource Code
Resource Name
Department
Grade
Utilisation
Consultant
0.95
Managing Consultant
0.75
Senior Consultant
0.85
Principal Consultant
0.75
Director
0.60

<tbody>
</tbody>

I have tried using,

IF ([Efficiency Measure] < Resource[Utilisation], 1, 0)

However, I get an error saying Utilisation is not a single value.

Any guidance will be gratefully received.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top