Forum Discussion
How can I pull data based on a predecessor?
- 3 years ago
Hi lmperplies ,
According to your description, I create a sample.
Activity table:
Predecessors table:
The two tables are related with Activity ID column.
Here's my solution, create three measures.
StartDate = MAXX ( FILTER ( ALL ( 'Activity' ), 'Activity'[Activity ID] = MAX ( 'Predecessors'[Predecessors] ) ), 'Activity'[Start Date] )FinishDate = MAXX ( FILTER ( ALL ( 'Activity' ), 'Activity'[Activity ID] = MAX ( 'Predecessors'[Predecessors] ) ), 'Activity'[Finish Date] )ActivityStatus = MAXX ( FILTER ( ALL ( 'Activity' ), 'Activity'[Activity ID] = MAX ( 'Predecessors'[Predecessors] ) ), 'Activity'[Activity Status] )Then put Activity ID column from Activity table into a slicer, put Activity ID and Predecessors columns from Predecessors table and the three measures into a visual, get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Not sure, if it is useful for you:
Create a table just including the ActivityId :
As you see if each activityId is selected the other is shown an if nothing is selected the all value is shown :
Appreciate you Kudos
I was able to build the new table no problem. However, my data did not enter any values in the table that I used the "ExcluseActivty" measure as a filter. I am wondering if you could share with me how you set up the Sheet165 (main table) connecting Activity C to Activity B & A as predecessors.
For activity 35m4w.10, the predecessors should be 35m4w.06 and 35m4w.07, but nothing pulls.
Here is what I am returning: