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
Anonymous
Not applicable

Summing up cumulative hours

Hello,

 

I am exporting project information from dynamics in which I have users log in their time per project task. What I would like is to see the total estimated project hours vs. the actual aggregated sum of the logged hours.

 

Untitled1.png

 
 

 

 

 

 

 

 

 

 

What I would like to do is to pick the month of October (for example) and see the sum of hours for the project. If I click on December, it should change accordingly. What I managed so far is to simply see the sum of hours per month, and not for the total project. My table is as following:

 

ProjectProject taskDateDuration (task hours)Estimated hours project)
axOct 3, 2019175
byOct 3, 2019875
czNov 1, 2019875

 

Thanks in advance,

Ori

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does that meet your requirement?

total =
VAR dur =
    SUM ( 'Table'[Duration (task hours)] )
RETURN
    IF (
        dur = BLANK (),
        BLANK (),
        CALCULATE ( SUM ( 'Table'[Estimated hours project)] ), ALLSELECTED ( 'Table' ) )
    )

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi Frank.

Been away from this and only picking it back up now. I managed to attach a sample of my table here and I hope it will be more clear now. I have multiple lines for each task and different dates. What you suggested did not work (unfortunately). Again, what I am trying to achieve is to see the cumulative total for each date point (so December will show me the entire year up to December and January will include December as well).

 

Thanks in advance,

OriUntitled.png

amitchandak
Super User
Super User
Anonymous
Not applicable

Amit,

Thanks for the quick reply. The link you are referring to is talking about averages. I am not looking for the average sum but for the total amount of hours logged in the project. Or did I misunderstood the solution that is provided there?

 

Ori

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.