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
Kiki11
New Member

How to conditionally format a Matrix column that compares a measure to selected value

Hello,

I currently have a matrix visual that has three columns and two values, I am trying to get the values in the matrix to be conditionally formatted where the background color changes to red green and yellow. When the percent(a measure i have calculated) is greater than a selected value from a slicer(generated by a parameter which is also a percentage) then it is red. If the percent is less than another selected value from a slicer( generated by parameter it is also a percentage)2 it is green, if the percent is in between both selected values then it yellow. 

1 REPLY 1
amitchandak
Super User
Super User

@Kiki11 , You can create a measure that returns color and use that in conditional formatting using field value option

 

if([Measure] > [Percent Measure], "red", "green")

 

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.