Forum Discussion
DAX code to create a NextGoLive field
Our project plans can have either a one-off “big-bang” or multiple staged go-lives and we need to create a field that can determine which is the next go-live date within a project. I have fields, in the MSProject Tasks table, that can assist, as follows, Project Name – multiple entries Task Name – multiple entries per project TaskFinishDate – date field per task MilestoneType – set to “Go Live” but can be one or many per project MilestoneStatus – Column, set to 1 to indicate a future dated milestone The selected Milestone (TaskName) needs to obey the following rules TaskIsMilestone=True TaskIsExternal=False Thanks and regards Fred
4 Replies
- v-lili6-msftCommunity Support
hi Anonymous
Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490Regards,
Lin
- AnonymousNot applicable
Hi v-lili6-msft , I have placed an Excel extract of sample data here . This represents a variety of different MilestoneType and MilestoneStatus values. All fields come from the Tasks MSProject table. As you will see, there are multiple entries for each project. There is also a Projects table, which contains a single entry for each project.
The result would be, either
- a field on each Task entry, which shows the NextGoLiveDate for that project, i.e. all Tasks would have the same value
or
- a field on each Project entry in the Projects table, indicating what the NextGoLiveDate is.
Thanks in advance for any help you can provide.
Regards
Fred
- v-lili6-msftCommunity Support
hi Anonymous
Could you please give the expected output by these sample data(Use a example in this example) that will be a great help.
Regards,
Lin