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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
goyalsa
Helper III
Helper III

conditional formatting on a column

Hi all,

I need your help on this.

 

I made a matrix (screenshot attached). In this matric, I have Route, parties involved and months.

goyalsa_0-1691721990767.png

 

I want to apply condition to find out in each month which party "cost per order" is cheaper. Like, for May month, party "O" cost per order is cheaper.

goyalsa_1-1691722093605.png

 

Any help would be really appreicated!!

 

Regards,

Sahil

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@goyalsa , Create a measure like below and use in conditional formatting using field value option

 

Color=

var _min = calculate(Minx(values(Table[Party]),[cost per order]), removefilters(Table[Party))

return

if(_min = [cost per order], "Green", "white")

 

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...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@goyalsa , Create a measure like below and use in conditional formatting using field value option

 

Color=

var _min = calculate(Minx(values(Table[Party]),[cost per order]), removefilters(Table[Party))

return

if(_min = [cost per order], "Green", "white")

 

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...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.