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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Allocate Man hour equally

I have a table like following, I need to allocate the man hour equally to each day, and then calculate the man hour of each staff per month

 

Capture.PNG

Pls help, thank you very much in advance

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Seems like a combination of:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Revenue-Reverse-YTD/m-p/373185#M111

 

And

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

HI @Anonymous,

I'm not so sure what you mean, can you please share some expected results to help us clarify your requirement?
In addition, if you mean expand these date range and summary daily man hour and calculate the average man-hour based on daily total and staff count.
You can create a calculated table to expand date range and link with staffs, then you can create a visual with date as axis and aggregate staff cont as value.

 

Expand = 
SELECTCOLUMNS (
    FILTER (
        CROSSJOIN (
            'Table',
            CALENDAR ( MIN ( 'Table'[Date From] ), MAX ( 'Table'[Date To] ) )
        ),
        [Date] >= [Date From]
            && [Date] <= [Date To]
    ),
    "Staff", [Staff],
    "Date", [Date]
)

 

Spread revenue across period based on start and end date, slice and dase this using different dates 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi

 

I need to calculate how many hours one staff has worked in a month. For example, Staff A started working on Sep 30, finishing on Nov 30, totaly working 471 hours in 60 days. Then 471/60= 7.85 hour/day. In september, Staff A has worked 7.85 hours. I just dont' know how to write the formula.

my original data table is like thisCapture.PNG

 

Result should be like this, if I create a Matrix in Power BICapture22.PNG

 

 

Thank you very much for your help.

 

Greg_Deckler
Community Champion
Community Champion

Seems like a combination of:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Revenue-Reverse-YTD/m-p/373185#M111

 

And

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Anonymous 

Refer : https://www.dropbox.com/s/yuv64v0cneseghx/value%20Split%20between%20months%20start%20end%20date.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.