Forum Discussion
Create a "Project Completion Date" Column Based on Most Recent Activity Completion Date in Project
- Anonymous5 years ago
mhanne The reverse date is due to condition with "Earlier". Fixed the DAX as following:
ProjectCompletionDate = CALCULATE(MAX(Sheet5[Activity Completion Date]),FILTER(Sheet5, Sheet5[Project Status]="Complete"&& Sheet5[Project ID]=EARLIER(Sheet5[Project ID])))Did I solve your problem?If yes, please give kudos and mark my reply Accepted!
I'm not sure why the post is overlapping the title but here is the content of the post:
Good Morning!
I am trying to create a "Project Completion Date" column to calculate the completion date for a completed project based off of the latest Activity Completion Date. Our system does not track the day a project was marked complete so this is the next best thing. So looking at the data below, when a project's status is "Complete" I want the new Project Completion Date column to display the most recent activity completion date from that project (so for project 1, it would show a Project Completion Date of 10/5.)
My data looks like this
| Project ID | Activity ID | Activity Status | Person Assigned | Activity Completion Date | Project Status |
| 1 | a | Complete | Mike | 10/1 | Complete |
| 1 | b | Complete | Mike | 10/3 | Complete |
| 1 | a | Complete | Brent | 10/1 | Complete |
| 1 | b | Complete | Brent | 10/5 | Complete |
| 2 | a | Complete | Mike | 10/3 | Active |
| 2 | b | Complete | Mike | 10/4 | Active |
| 2 | a | Complete | Brent | 10/3 | Active |
| 2 | b | Active | Brent | Active |
Any help would be appreciated!