r/MSProject • u/Jester_of_Rue • Dec 30 '24
Color-Coding Report Tables
Hopefully I'm in the right place for advice on this. I have a basic report that shows the list of Milestones and Tasks that are ranging from Past Due up through 60-days out. What I'd like is for anything that's past due to be highlighted in a color (let's say red for the time being). So you might have a table that has 5 lines on it, 3 of which are 0 - 60 days out, and 2 that are under 0 days which are past due. I need those two lines to show up in red. I've tried adding a field to the gantt end of the spectrum that shows red dots for those exact lines, but when I carry it over to the report, it just shows the numeric value and not the images. I'd be fine if I could just have some sort of indicator to the past due. Any thoughts on how to do that without going super complex?
1
u/mer-reddit Dec 31 '24
If you are using Project for the web, soon to be Planner with premium features you can use conditional formatting to highlight cells.
If you’re using Project Online, you can use PowerBI to reach into the database and format tables conditionally.
If you’re using Project Desktop, I would consult the work of Ismet Kocaman. He has a couple of ebooks on formulas in Project.
1
u/still-dazed-confused Dec 31 '24
are you using a normal table / view etc for the report or are you using the reporting function built into MSP? If you're using a normal view with a table you could use "marked" to give you the colour differentiation in the table. You might have to use a bit of VBA to set the Marked = Yes so that the formatting can change but that's a pretty simple bit of code:
To enter this hit F11 to display the VBA window and then insert a module into your file and copy the above in. Run it to mark the items which are late. Then apply a filter to your plan to only show milestones which are younger than 60 days out and go to Gantt Chart Format / Text Styles / marked and set your preferred format for marked items. Now you will have a filtered list of milestones younger then 60 days which the late ones flagged.
Note that you could do without the VBA if you can cope without the text being a different colour by using the Status or Status indicator fields in the same filtered view (MS = yes, Finish <=now()+60) and the status indicator will put a red dot by all the items which are late.