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
hongyuliu
Helper III
Helper III

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @hongyuliu,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.