Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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!
Solved! Go to Solution.
@mhanne The reverse date is due to condition with "Earlier". Fixed the DAX as following:
@mhanne Please create a calculated column with following DAX:
@Anonymous
When I do this, it fills the entire row with a random date that is not the completion date for any activities. I need the Project completion date to be unique to the projects based on the last completed activity in each project. So if there are 2 projects, I would want the Project Completed Date Column to say 10/5 for project 1 and 10/8 for project two. Like this:
Project ID | Activity ID | Activity Status | Person Assigned | Activity Completion Date | Project Status | Project Completed Date |
1 | a | Complete | Mike | 10/1 | Complete | 10/5 |
1 | b | Complete | Mike | 10/3 | Complete | 10/5 |
1 | a | Complete | Brent | 10/1 | Complete | 10/5 |
1 | b | Complete | Brent | 10/5 | Complete | 10/5 |
2 | a | Complete | Mike | 10/3 | Complete | 10/8 |
2 | b | Complete | Mike | 10/4 | Complete | 10/8 |
2 | a | Complete | Brent | 10/3 | Complete | 10/8 |
2 | b | Complete | Brent | 10/8 | Complete | 10/8 |
Thank you so much for your help!
Hi, @mhanne
Could you please tell me whether your problem has been solved?
If yes, you could accept the helpful answer as solution. You also could share your own solution here. For now, there is no content of description in the thread. If you still need help, please share more details to us.
Best Regards,
Community Support Team _ Eason
@mhanne try disabling the Auto date/time intellignece from Options to avoid max date of the year. Please note the DAX does not have ".[Date]". You can try the following DAX :
@Anonymous
Here is the formula when I use my own fields:
@mhanne The reverse date is due to condition with "Earlier". Fixed the DAX as following:
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |