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

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.

Reply
Anonymous
Not applicable

calculating sum of max of hours

share this.PNG

 

Hello All, 

 

What I have to do in this problem is - 

I have just used sample of my data but i have more than 1000 employees and I have more than 1 period in my data I just took example of single period and period is YYYYWW (WW-weeknumber of year)

As you can see for a given employee and in a given period, all values of contractual hours are same and value of total hours is different.

 

So what I need is I want to sum the max of contractual hours for each period for each employee.

 

For Example if i talk about an employee x then total hours for that employee is Sum(Total hours) and contractual hours is Max(contractual hours) for a given period but what i want is if I am not considering period then contractual hours will be sum of max of contractual hours for each period

Thanks in advance

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

could you provide a sample dataset(not a screenshot), as well as an example using that dataset on what is the desired output?

 

Cheers,
Sturla

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors