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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
DamianWilliams
New Member

Formating a matrix table based on dates.

On the below table, for each row, I have to conditionally format, where if the Satements sent is greater than the Statements due, the Font colour should be Red, and if it is lesser should be Green. How can I do that.

 

Statements DueStatements Sent
31/10/202116/11/2021
30/09/202215/09/2022
1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @DamianWilliams 

According to your description, you want to realize that if the Satements sent is greater than the Statements due, the Font colour should be Red, and if it is lesser should be Green.

Here are the steps you can refer to :
(1)We can create  a measure like this:

Measure = IF(MAX('Table'[Statements Sent])>MAX('Table'[Statements Due]) , "#FF0000", "#00FF00")

(2)Then we can put this measure on the "fx" in the "Cell Elements" of this Table visual:

vyueyunzhmsft_0-1682650020640.png

For the 'Series' you can choose which column you want to selt the "Background color".

vyueyunzhmsft_1-1682650067588.png

Then we can meet your need , the result is as follows:

vyueyunzhmsft_2-1682650090129.png

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @DamianWilliams 

According to your description, you want to realize that if the Satements sent is greater than the Statements due, the Font colour should be Red, and if it is lesser should be Green.

Here are the steps you can refer to :
(1)We can create  a measure like this:

Measure = IF(MAX('Table'[Statements Sent])>MAX('Table'[Statements Due]) , "#FF0000", "#00FF00")

(2)Then we can put this measure on the "fx" in the "Cell Elements" of this Table visual:

vyueyunzhmsft_0-1682650020640.png

For the 'Series' you can choose which column you want to selt the "Background color".

vyueyunzhmsft_1-1682650067588.png

Then we can meet your need , the result is as follows:

vyueyunzhmsft_2-1682650090129.png

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.