Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
TASK_WORK_MINS (DURATION)
COMPETE_TASK_COUNT (0'S AND 1'S)
HIERARCHY LEVEL (3 , 4, 5)
Our company has task that are complete and ones that are sent back. Both types have a duration for them but when I divide the duration by the task complete. I do not get the added time for the ones sent back.
In excel all of the minutes spend on any task is attached the the employee, however, power bi is only using the completed task instead of adding both ticket types and dividing the compeled ones.
Example: Tech A has 5 tickets in a week for 1 hour a piece. Tech only completes 3 of them. I want to divide 5 hours by 3 task compelte. In the image below 0's are sent back and 1's are completed.
Solved! Go to Solution.
Hi @e0145046 ,
The Measure 1 above will achieve the effect of sum of TASK_WORK_MINS for all COMPLETE_TASK_COUNT=1, i.e. total minutes taken for employee for closed tasks.
In Measure 2, the formula in the variable TotalTaskDuration sums TASK_WORK_MINS regardless of whether task is closed or not (i.e. sum for all rows). As you're looking to divide sum of TASK_WORK_MINS by sum of completed tasks (Measure 1), I have adjusted the formula below:
Hi @e0145046 ,
Were you trying to calculate total hours of completed tasks as a percentage of total hours of all tasks for each employee?
Try creating the following measures:
I left the duration in minutes, if you need them in hours just divide by 60.
Hope this helps.
@Anonymous
I am wanting to take the SUM of TASK_WORK_MINS for all rows and divide them by the SUM of COMPETE_TASK_COUNT =1
We want to capture the total minutes for each employee regardless if they have closed a task or not. Some of these will have 50 minutes with 0 task and I cannot do a simple divide in PowerBI like I do in Excel.
Hi @e0145046 ,
The Measure 1 above will achieve the effect of sum of TASK_WORK_MINS for all COMPLETE_TASK_COUNT=1, i.e. total minutes taken for employee for closed tasks.
In Measure 2, the formula in the variable TotalTaskDuration sums TASK_WORK_MINS regardless of whether task is closed or not (i.e. sum for all rows). As you're looking to divide sum of TASK_WORK_MINS by sum of completed tasks (Measure 1), I have adjusted the formula below:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
15 | |
11 | |
10 | |
10 |