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
jritchey
Frequent Visitor

Rolling hours up by week and employee

I have a dataset that brings in invidual days by employees and the hours they have submitted. It also has the "Week Of" that it belongs to. So for example:

 

Date      Employee    Hours  Week Of

6/1/20  John Smith       5      6/6/20

6/2/20  John Smith       4      6/6/20

6/3/20  John Smith       8      6/6/20

6/4/20  John Smith       2      6/6/20

6/1/20  Jane Smith       3      6/6/20

6/2/20  Jane Smith       8      6/6/20

6/3/20  Jane Smith       2      6/6/20

6/4/20  Jane Smith       8      6/6/20

 

I'm looking for a measure or a calculated column to roll the hours by day into the week they belong to and by employee?

1 REPLY 1
lbendlin
Super User
Super User

This should get you going

 

https://docs.microsoft.com/en-us/dax/summarizecolumns-function-dax

 

group_by is Employee and Week of

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.