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

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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