Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate Workload based on time taken

Hi,

 

I am trying to calculate the workload of each employee. In one file I have the Tasks that have to be completed. These have been coded by numbers and occur multiple time.

In the other file I have the average time it takes for an employee to complete each said task. This needs to be in a seperate table as we get increasing numbers of surveys, allowing us to get more accurate readings.

 

What i need to do is to calculate the number of occurences for each task and multiply it by the average time it takes to complete the tasks thereby getting the total workload. As the first file is updated daily, I would prefer to not combine the tables, should that even be an option. In Excel I could do it with a CountIF and a VLOOKUP but I am not certain if there is a DAX equivalent to this issue.

 

Thank you for your help.

 

Kind Regards,

KarthikM

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Below measure should do the trick.

Measure 1 = SUMX( Names, RELATED( AMs[AVG Time] ) )

image.png

 

I've attached the file for reference as well 
 
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

I'm sure there is, but can you create a data sample for both tables?

 

Best Regards,
Mariusz

Please feel free to connect with me.
Mariusz Repczynski

 

Anonymous
Not applicable

@Mariusz 

Here are two sample tables.

 

NameAM
Jane Doe3
Jane Doe2
John Doe4
John Doe5
John Doe5
John Doe5
Jane Doe5
Jane Doe3

 

AM  Time 1 Time 2 Time 3 Time 4 Time 5 Avg Time

12.8010.5515.9114.2013.8611.46
210.976.861.656.2215.248.19
39.162.2214.210.100.845.31
40.024.561.0312.852.784.25
53.460.5115.006.325.816.22

 

I need to count how many "AM's" per person are available (How many 1's for Jane Doe; How many 2's for Jane Doe etc)

Then multiply this with the avg. time (Count 1's Jane Doe * 11.46; Count 1's John Doe * 11.46 etc)

Then create a Bar diagram to show the workload that each person has in theoretical time.

Essentially like a Yamazumi diagram.

 

Im sorry for the formatting. It has been a while since I used HTML Smiley Tongue

I hope this clarifies the issue.

 

Kind Regards,

KarthikM

Hi @Anonymous 

 

Below measure should do the trick.

Measure 1 = SUMX( Names, RELATED( AMs[AVG Time] ) )

image.png

 

I've attached the file for reference as well 
 
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.