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
ctedesco3307
Resolver II
Resolver II

Values measure to roll up with Date Heierarchy

Hello -  I have a table that has a start date and end date and total hours per role per project.

 

 I have a measure that calculates the number of working days between the start and end date

MSSWorkingDays =

CALCULATE (

    SUM ( TDate[Tworkday] ),

    FILTER (

        TDate,

        TDate[Date] >= MIN('MSS Flat Fee Hours'[Start Date])

            && TDate[Date] <= MAX ( 'MSS Flat Fee Hours'[End Date])

    )

)

 

I have another measure that gives me the average hours per day based on number of days / total hours.

MSSPlanHoursPerDay =

DIVIDE(SUM('MSS Flat Fee Hours'[Total Hours]),[MSSWorkingDays])

 

Works  in a table, but what I want to do is show the average number of hours as my values using my calendar table year> Month>week> day … as the columns summing up per date level  - I  can’t get the values to roll up right with my calendar table. It looks like both the MSSPlanHoursPerDay and Plan hours are behaving the same, but descreasing as I roll up, and increasing as I roll down.  Also I can’t seem to get the values with the calendar column to align with the start and end dates of the project.   Please let me know what add’l info needed. Thank you much in advance!

 

These values are correct

ctedesco3307_0-1654879971363.png

But using my calendar dates in a matrix doesn’t add up right start and end months don’t line up with start and end dates and values are not summing correctly and decreasing instead of increasing

 

Month

ctedesco3307_1-1654879991909.png

Week

 

ctedesco3307_2-1654880008550.png

Date

ctedesco3307_3-1654880023864.png

 

How do I sync them up? Thanks in advance 

 

1 REPLY 1
vapid128
Solution Specialist
Solution Specialist

That is a hard problem. 

Can you upload your file?

I can try.

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.