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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JJbc23
New Member

date: expiry, plan date conditional formatting

Hi,

 

Would like to seek help on condidtional formatting. 
I have a table with two fields, expiry date and planned date(the date to perform the renewal). 
Would like to have a conditional formatting of, 
if planned date is greater than today and expiry date is greater than today, mark the cell red

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JJbc23 

 

Based on your needs, I have created the following table.

vjialongymsft_0-1707875559216.png

 

You can use the following dax to decide if you want to display it in red.

Highlight = IF(AND('Table'[plan date] > TODAY(), 'Table'[end date] > TODAY()), "True", "False")

 

Then apply the appropriate rule to this column in the formatting

 

vjialongymsft_1-1707875707512.png

 

 

 

 

Best Regards,

Jayleny

 

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
Anonymous
Not applicable

Hi @JJbc23 

 

Based on your needs, I have created the following table.

vjialongymsft_0-1707875559216.png

 

You can use the following dax to decide if you want to display it in red.

Highlight = IF(AND('Table'[plan date] > TODAY(), 'Table'[end date] > TODAY()), "True", "False")

 

Then apply the appropriate rule to this column in the formatting

 

vjialongymsft_1-1707875707512.png

 

 

 

 

Best Regards,

Jayleny

 

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.