Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I have a table with a column of UserIDs that only appear once each of which has a ManagerID as well as a value of Total # of Assets. I want to for each UserID add their Total # of Assets with the Total # of Assets if they match with a ManagerID.
For example, UserID UDONEUM has 2 total assets right now but he is JOSWART's manager which he has 1154 assets. Therefore, UDONEUM should have a total of 1156 assets displayed in that last column # of Assets(same column).
I have tried multiple functions using SUMX, FILTER, CALCULATE, and SUM but cant seem to get the value I want. I tried
=SUMX(FILTER('2','2'[UserID] = '2'[Manager ID]),'2'[Total # of Assets])
=CALCULATE(SUM('2'[Total # of Assets]),FILTER('2','2'[UserID] = '2'[Manager ID]))
Thanks!
CC
Solved! Go to Solution.
@v-danhe-msft I found a DAX function to solve my issue
I used = CALCULATE(SUM('3'[# of Assets(total)]),FILTER('3', [Manager ID] = EARLIER('3'[UserID])))
Thanks for the help anyways,
CC
Hi @chisholmconnor,
Could you please tell me if the [Manage ID] has relationships with the [User ID]?
Regards,
Daniel He
@v-danhe-msft I found a DAX function to solve my issue
I used = CALCULATE(SUM('3'[# of Assets(total)]),FILTER('3', [Manager ID] = EARLIER('3'[UserID])))
Thanks for the help anyways,
CC
If I may ask, what does the 3 represent in your formula?
User | Count |
---|---|
98 | |
89 | |
82 | |
70 | |
67 |
User | Count |
---|---|
114 | |
104 | |
101 | |
72 | |
65 |