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 am looking for a measure that can solve my Problem. I have a table
WorklogID | TicketKey | Category | Time_Logged | User |
01 | 101 | ACID-01 | 1 | A |
02 | 101 | ACID-01 | 1.5 | B |
03 | 102 | ACID-01 | 2 | A |
04 | 103 | ACID-02 | 2.5 | C |
I want the total sum of logged hours for each ticket assigned to each user, who logged time on a ticket. So user A and B would need to get the value 2.5 (TicketKey 101 has two users who logged time and i need the total for both). If i exclude the users with ALLEXCEPT i get the right value for the ticket but the total sum for the user is wrong (it uses all Tickets).
Thanks in advance
Solved! Go to Solution.
I was able to make it work (to some extend):
New Column 1
Logged_per_Ticket = CALCULATE( SUM(Worklogs[Time Entry Logged Time]),ALLEXCEPT(Worklogs,Worklogs[TicketKey]))
This adds the total time spend per TicketKey to each worklog entry.
New Column 2
@acnt_schartner
What do you expect for each user?
The following will give you by ticket when you add it as new column
Column =
CALCULATE(
SUM(Table6[Time_Logged]),
ALLEXCEPT(Table6,Table6[TicketKey]))
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Here is what i need for each user.
The goal is to use the total time logged for a ticket (i.e. P500194-84) 0,66+0,73=1,39 for each user who logged time on that ticket (here A and B).
The result should also be correct if i sort a matrix visual by users. User A shold have the total 1,39+1,75=3,14
@acnt_schartner
Did you try my formula? let me know if you face any issue.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Did not work. Only thing that is ok is the sum at user A 1,39. The rest if completely off.
At the user (A B) and category(ACID) level it should sum up the logged times for each user. I want the tickets, where multiple people worked together, to be the sum of the total time spend on this ticket for each user.
EDIT: Each Ticket can have multiple entry from the same user. If i use your column i get the correct value for each worklog entry but not for the ticket per user
@acnt_schartner - Reading this thread it seems that you want to change how things are aggregated at different levels of the hiearchy then you need MM3TR&R -
ISINSCOPE and HASONEVALUE are your friends in your situation.
I was able to make it work (to some extend):
New Column 1
Logged_per_Ticket = CALCULATE( SUM(Worklogs[Time Entry Logged Time]),ALLEXCEPT(Worklogs,Worklogs[TicketKey]))
This adds the total time spend per TicketKey to each worklog entry.
New Column 2
@acnt_schartner , Not very clear
Try like
new column = sumx(filter(table, [TicketKey] =earlier([TicketKey])),[Time_Logged])
new measure = calculate(sum([Time_Logged]),filter(allselected(table), [TicketKey] =max([TicketKey])))
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 |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |