Forum Discussion
Help with LOOKUP?
- 5 years ago
Believe the best option is to create two dimension tables a project code and a calendar. Then make relationship between these two tables and the other two:
Now create the following measures:
HourBooked = SUM('Hours Booked'[HoursBooked]) HoursPlanned = SUM(HourPlanned[PlannedHours]) RemainingHours = [HoursPlanned] - [HourBooked]Now if you use the calendar and the projects table in your visualizations alongside with your dimension tables you can create the calculations in any way needed:
Check PBIX file attach.
Believe the best option is to create two dimension tables a project code and a calendar. Then make relationship between these two tables and the other two:
Now create the following measures:
HourBooked = SUM('Hours Booked'[HoursBooked])
HoursPlanned = SUM(HourPlanned[PlannedHours])
RemainingHours = [HoursPlanned] - [HourBooked]
Now if you use the calendar and the projects table in your visualizations alongside with your dimension tables you can create the calculations in any way needed:
Check PBIX file attach.
Excellent, many thanks for your help!