Forum Discussion
hawkeye159
2 years agoFrequent Visitor
Conditional formatting using two date columns
Hi all, I'm new here and quite new to Power BI, trying to learn as I go and using forums like this to pick up tips. But I'm struggling to find a solution that matches my problem. I have a tab...
- 2 years ago
Create a new calculated column or measure
Status = IF( ISBLANK('Table'[EOT Date]), IF('Table'[Target Date] < TODAY(), "Expired", "Not Expired"), IF('Table'[EOT Date] < TODAY(), "Expired", "Not Expired") )Set the rules for the conditional formatting:
- If Status is "Expired", set the color to red.
- If Status is "Not Expired", set the color to green.
aduguid
2 years agoMemorable Member
Create a new calculated column or measure
Status =
IF(
ISBLANK('Table'[EOT Date]),
IF('Table'[Target Date] < TODAY(), "Expired", "Not Expired"),
IF('Table'[EOT Date] < TODAY(), "Expired", "Not Expired")
)
Set the rules for the conditional formatting:
- If Status is "Expired", set the color to red.
- If Status is "Not Expired", set the color to green.
hawkeye159
2 years agoFrequent Visitor
Thank you so much, that works for me!