Forum Discussion
Measure or calculated using data from multiple tables
I have the model below and I want to calculate the capacity of each assignee based on the remaining days in a Sprint.
This would be basically Users[USER_DAILY_CAPACITY] * SPRINTS[DAYS_REMAINING_IN_SPRINT] but I can't seem to achieve this in DAX.
I tried merging USER with SPRINTS using some intermediary tables and I can calculate the Remaining capacity per user, but with no direct relationship between SPRINTS and ISSUES doesn't bring the correct data if I filter with the Sprints_Reports.SPRINT_ID .
Ultimately I want to display the Original Effort vs Remaining effort vs Remaining capacity per assignee and filter with Sprints_Reports.SPRINT_ID .
Any ideas?
2 Replies
- ValtteriNCommunity Champion
Hi,
Since you have the information on how much capacity per spint there is I guess your issue is the inactive relationship which is required for aquiring "days remaining". You can activate this relationship by using USERELATIONSHIP in a DAX formula or alternatively by using variables e.g. something like this
[days remaining] =
var _sprintID = MAX(sprint_reports[sprintId]) return
CALCULATE(SUM(sprints[days_remaining]), sprints[sprintID] = _sprintID)
All in all, I recommend first creating measures to calculate [days remaining] and [user capacity] and then using these to create your final measure.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/- bastikFrequent Visitor
Hi,
I already had the days remaining and capacity as measures, but still didn't manage to create a final measure.
I'll return with a dummy PBIX in a couple of days to properly detail the issue. Thank you for your input!