Forum Discussion
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.
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:
Due Date = 'Table'[Date Received]+3Then 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:
And you can get what you want, like this:
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.
8 Replies
- VahidDMSuper 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/ - rbrigaImpactful 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]
- richpowRegular Visitor
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
- rbrigaImpactful Individual
It works for me. Perhaps try tweaking it a bit?
- v-robertq-msftCommunity 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:
Due Date = 'Table'[Date Received]+3Then 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:
And you can get what you want, like this:
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.
- richpowRegular Visitor
Thank You 🙂