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.
Hi Everyone, I keep thinking I've got the answer and then find a bizarre set of results which proves I haven't.
How do you combine 2 tables as follows:
Such that the following calculation is done:
Proj A = 0.3(1+2) + 1(3) + 0.2(2+3+4)
Proj B = 0.7(1+2) + 0.8(2+3+4)
To get:
I've set it up as a many-to-many relationship but I can't get the table visual to show this result correctly.
The tables are greatly simplified, they're actually 10s of 1000s of rows big.
Solved! Go to Solution.
Here is your ideal data model with three dimensions and two facts.
Unfortunately this won't get you from the course hours to the project hours.
You have a couple of options here, for example you could make the cross filter direction bidirectional
But that won't help with the calculation
So the next best option is a measure.
Hours =
var a = ADDCOLUMNS('Project User Allocation',"uh",var u=[User ID] return CALCULATE(sum('User Course Hours'[Hours]),'User Course Hours'[User ID]=u))
return sumx(a,[Headcount]*[uh])
There are other options but they won't be as good 🙂
See attached.
Here is your ideal data model with three dimensions and two facts.
Unfortunately this won't get you from the course hours to the project hours.
You have a couple of options here, for example you could make the cross filter direction bidirectional
But that won't help with the calculation
So the next best option is a measure.
Hours =
var a = ADDCOLUMNS('Project User Allocation',"uh",var u=[User ID] return CALCULATE(sum('User Course Hours'[Hours]),'User Course Hours'[User ID]=u))
return sumx(a,[Headcount]*[uh])
There are other options but they won't be as good 🙂
See attached.
Many thanks Ibendlin - that's super
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 |
---|---|
105 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |