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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Conditional Formatting in Matrix

Hello everyone

You could help me create a conditional format to shade the cell that contains the maximum and minimum value per row of the following array, as shown in the image below.

In red are the maximum values per fi

LuchoCortes_0-1701099478540.png

1 REPLY 1
amitchandak
Super User
Super User

@Syndicate_Admin , Create measure like

 

Measure =

var _min = calculate(minx(values(Table[Column Field]), [Measure]), removefilters(Table[Column Field]))

var _max = calculate(maxx(values(Table[Column Field]), [Measure]), removefilters(Table[Column Field]))

return

Switch( True(),

[Measure] = _max, "Green",

[Measure] = _min, "Red",

"white"

)

 

Use this measure in conditional formatting using field value option

 

Learn Power BI Advance - PowerBI Abstract Thesis:
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...


Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors