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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.