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.
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?
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |