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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Conditional Format a matrix table: Measure and Column

Hi Team,

 

I have a matrix table as displayed below. 

 

The Performance Column is a measure and the Target column is a column from the raw data.

 

When the Performance > Target I want the background to be red.

When the Performance < Target I want the background to be green. 

 

Could anyone please help me out?

 

Thank you

 

 MeasureColumn
Year PerformanceTarget
20151110
201689
201768
201847
201936
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@TomMartens solved the issue in another post.

 

Conditional_Value = If(HASONEVALUE('Table A'[NAME]),
IF(
    [Current_Value]>SUM('Table B'[HI HI (red)])
    , "#FF0000"
    , "#008000"
)
)

 

 

Thanks Tom!  

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@TomMartens solved the issue in another post.

 

Conditional_Value = If(HASONEVALUE('Table A'[NAME]),
IF(
    [Current_Value]>SUM('Table B'[HI HI (red)])
    , "#FF0000"
    , "#008000"
)
)

 

 

Thanks Tom!  

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.