Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am looking for a way to model a parent child relationship in which the parent is date dependant. For example, if we have an employee that switches teams I need to be able to represent which manager the employee reported to based on the date context.
employeeHierachy:
EmployeeId ParentId StartDate EndDate
A 1/1/2016
D 1/1/2019
B A 1/2/2017 2/1/2019
C D 1/1/2016
B D 2/2/2019
factSales:
Deal Employee Amount CloseDate
1 B 500 2/1/2018
2 B 150 6/20/2018
3 B 400 5/1/2019
4 B 200 7/30/2019
The goal is to be able to write a measure to attribute amounts at the top level of the heirarchy as follows
Lifetime Total Sales Amount:
EmployeeId [TotalSales]
A 650
D 600
But when I try to create the calculated column "Path" in the employeeHeirarchy table as follows I receive the error below
Does anyone know of a workaround for this?
Solved! Go to Solution.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
22 | |
20 | |
15 | |
13 |
User | Count |
---|---|
49 | |
41 | |
39 | |
19 | |
19 |