Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Conditional Formatting Highest Value

Hi,

 

Is there a way I can do a rule or something in the conditional formatting to add a background color for the highest number without typing the number? 

 

For example, Right now Im doing "greather than > 20" because right now the highest is over 20 but if any of the other go over 20 then they will get a background color and I dont want that. and If I do the range then it shows like the middle one and I want only the top one to get highlighted. Maybe an IF statement ike (IF[ProjectITStaff]=MAXVALUE,1,2) I could use the 1 and 2 in the conditional formatting as stable numbers. I can't figure out the IF statementConditionl.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous 

You may use the IF measure in conditional formatting as below for each column.

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

4 REPLIES 4
monika_todor
Advocate II
Advocate II

This is not solved.

v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

You may create measures as below:

Sum_Pro = CALCULATE(SUM(Data[ProjectITStaff]),ALLEXCEPT(Data,Data[Active]))
IF = IF(SUM(Data[ProjectITStaff])=MAXX(ALL(Data),[Sum_Pro]),1,2)

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

@v-cherch-msft I want for it to highlight the "Global" row. So the highest number in the global row, not the column header

Hi @Anonymous 

You may use the IF measure in conditional formatting as below for each column.

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.