Forum Discussion
Filter Based on another table
- Anonymous3 years ago
Thanks for this. I was messing around with the relationships and was able to get it workign with a relationship directly to the project table from tasks instead of through the milestone table. I'll try this out though and see if it would work without changing the relationships.
tamerj1 You have been able to help me out with questions before, would you be willing to take a look at this? Thank you very much!
- tamerj13 years agoCommunity Champion
Anonymous
What are the columns involved in th erelationships? Please provide details.- Anonymous3 years agoNot applicable
Thanks for responding.
ProjectMilestoneEndDate is a unique column generated from combining the project id, milestone name, and milestone end date as the milestones don't have a unique ID.
Here is some sample data:
DimMilestone:
#Support - Tasks:
#Success - Project List:
- tamerj13 years agoCommunity Champion
Hi Anonymous
please try
- Next Milestone Budget =
VAR MilestoneDate =
CALCULATE (
MIN ( DimMilestone[EndDate] ),
DimMilestone[MilestoneStatus] = "Pending"
)
RETURN
CALCULATE (
SUM ( '#Support - Tasks'[TaskBudget] ),
'#Support - Tasks'[TaskType] = "Software Minor Update",
'#Support - Tasks'[MilestoneEndDate] = MilestoneDate,
ALL ( DimMilestone )
)