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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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