Forum Discussion
How to use Task Outline Numbers from MS Project to group together task in Power BI
- 5 years ago
Like this?
Measure2 = VAR _sel = SELECTEDVALUE('Table'[Task Outline Number]) VAR _NR = LEFT(_sel,3) RETURN CALCULATE(MIN('Table'[Finish Date].[Date]), FILTER(ALLSELECTED('Table'), [Task Name ] = "Release" && LEFT([Task Outline Number],3) = _NR))File is attached.
Kind regards, Steve.
- 5 years ago
Then this should be it?
Measure2 = VAR _sel = SELECTEDVALUE('Table'[Task Outline Number]) VAR _NR = LEFT(_sel,3) RETURN CALCULATE(MIN('Table'[Finish Date].[Date]), FILTER(ALLSELECTED('Table'), CONTAINSSTRING([Task Name ],"Release") && LEFT([Task Outline Number],3) = _NR))File is attached.
Kind regards, Steve.
Update on the table information given above.
The task ID is unique to each summary and there are Task Outline levels associated with each task (ie Task Outline Level - Parent summary task = Level 3 and child summary task (Initiate) = Level 4 . The report = Level 5)
Example for Chicago I want to link the Release Report (Level 5) Date to the Initiate Date on Level 4 :
Chicago. - The Parent Summary Task (Level 3) Task Outline Number = 1.1.1
Chicago - Initiate. Child Summary Task (Level 4) = 1.1.1.2
Chicago - Report. (Level 5) Task Outline Number 1.1.1.2.4
Would I first form a Group of all the task under 1.1.1.X (write a DAX that says group first four digits). Extract the Finish Date associated with Initiate and then add +30edays to that date to calculate the Finish date the Report should be completed? Thoughts
- Pedagogic3685 years agoFrequent Visitor
So I wrote this out -
I took the Chicago - Report and I wrote a simple Dax expression that pulls out the ParentTaskName (in the example above the ParentTask Name is Chicago-Initiate. I called this Measure1. (FYI - The ParentTaskName is a column that exist on the table). Simple!
Measure1 = ('Tasks'[ParentTaskName])Now I need to extract the ParentTaskName for Measure1.I would have to FIND in the table the TaskName = Measure1 ( in this example Chicago-Initiate) and then return the ParentTaskName for Chicago-Initiate (in this example it would be Chicago).Can anyone help me get to this next step? How would I first find the column with Chicago-Initiate AND THEN return the ParentTaskName of that task?Any ideas please? - Pedagogic3685 years agoFrequent Visitor
So far no help. So let me ask one more time for some advice. 😔
Here is where I am at.
Each "grouping" has a similar TaskOutline number. So as I mentioned previously -
Group A
Chicago is 1.1.1
Chicago- Initiation is 1.1.1.2
Chicago-Report is 1.1.1.4.2
I truncated all to a value of 1.1.1
Group B
Indiana is 2.1.1
Indiana - Initiation is 2.1.1.2
Indiana -Report is 2.1.1.4.2
I truncated all to a value of 2.1.1
So, as you can see I have several differnt "groups" what I need to do is write a DAX expression that search within each group the Finish Date for the XXXXX-Initiate in each group and then the Start Date for the XXXXX-Report in the same group. HOW DO I DO THIS? THANKS in advance for your help. Please! 😶