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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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