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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
richpow
Regular Visitor

Overdue

Hi  I have three fields in a table all dates. 

 

Date Received

Due Date

Date completed

 

When Date received is entered it will calculate the date 3 days later and put that in the Due Date column.  What I need to do is highlight in the Date Completed Column, if it is Blank or the date entered is after the Due Date, mark it in Red to show that it needs attention. 

 

I'm stuck on how to conditional format the Date completed colum to show Red if Blank, or show Red if the date displayed there is after the Due Date.  

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, 

According to your description, I can roughly understand your requirement, I think you can try this measure to apply as the conditional format for the column [Completed data] to achieve your requirement:

This is the test data I used:

vrobertqmsft_0-1640314765896.png

 

Due Date = 'Table'[Date Received]+3

Then create a measure like this:

Color =

IF(

    MAX('Table'[Date completed])<>BLANK(),

    IF(MAX('Table'[Date completed])>MAX('Table'[Due Date]),"Red","White"),

    "Red")

 

Then you can set the conditional format for the field [Completed data] like this:

vrobertqmsft_1-1640314765903.png

And you can get what you want, like this:

vrobertqmsft_2-1640314765907.png

 

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

8 REPLIES 8
v-robertq-msft
Community Support
Community Support

Hi, 

According to your description, I can roughly understand your requirement, I think you can try this measure to apply as the conditional format for the column [Completed data] to achieve your requirement:

This is the test data I used:

vrobertqmsft_0-1640314765896.png

 

Due Date = 'Table'[Date Received]+3

Then create a measure like this:

Color =

IF(

    MAX('Table'[Date completed])<>BLANK(),

    IF(MAX('Table'[Date completed])>MAX('Table'[Due Date]),"Red","White"),

    "Red")

 

Then you can set the conditional format for the field [Completed data] like this:

vrobertqmsft_1-1640314765903.png

And you can get what you want, like this:

vrobertqmsft_2-1640314765907.png

 

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

Thank You 🙂

VahidDM
Super User
Super User

Hi @richpow 

 

Try this measure:

Date Color =
Var _CD = MAX ( 'Table'[Date Completed] )
Var _DD = MAX ( 'Table'[Due Date] )
return
if(_CD>_DD||_CD=blank(),1,0)

 

then set a conditional formatting to change the color of Date completed when the measure value is 1.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

rbriga
Impactful Individual
Impactful Individual

You can create a measure that yields a color hex code:

Date Color =

IF (

 

Date Color =
IF (
    OR (
        SELECTEDVALUE ( 'Table'[Date Completed] ) > SELECTEDVALUE ( 'Table'[Due Date] ),
        ISBLANK ( SELECTEDVALUE ( 'Table'[Date Completed] ) )
    ),
    "#FD0000",
    BLANK () --or any color you wish
)

Now, you can activate a conditional formatting on that field (background color; format style: field value on [Data Color]

 

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Thank You, I just tried that and updated conditional formatting but it seems to have coloured every entry in Red.  So Far all entries have been completed before the due date, so this should ideally not return any colouring in conditional formatting

rbriga
Impactful Individual
Impactful Individual

It works for me. Perhaps try tweaking it a bit?Conditional Formatting2.png

Conditional Formatting.png

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

I can already see whats happening, some of the dates are americanised, and some missing entries, I can sort that. 

 

Thanks for your help

pbi.PNGI have changed the names slightly but the letter of acknowledgment was sent before the ack due date therefore it should not be highlighted in red. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.