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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JS27
Regular Visitor

Cumulative Report / Project Hours

Hello Guys, I'm new in this forum and working with PowerBI, i would like to have some advices in how to handle the following scenario using Cumulatives Totals for my Projects hours and reduce every month the hours executed by my team, according to the budgets time for each project:

 

I have these tables in Smartsheet:

 

Budget: This table brings the estimated hours for my projects, Budget Hours is what's we supposed to executed totally and Budget Hours Not Prof is Contigency Budget if anything happens. Everytime i have a new project i go to this sheet and put the information related. This table does not change.

 

  Budget 
    
Project NameProject ConsultantBudget HoursBudget Hours Not Prof
Project1Mike James10020
Project2George Michael20018

 

Activity Report: This table brings me the project daily reports, hours executed, details, etc.  

 

  Activity Report  
     
Project NameActivityDateHours ExecHours Not Prof Exec
Project1Project Planning15-05-202051
Project1Project Planning17-05-2020100
Project1Project Execution 14-06-2020200
Project1Project Execution 15-06-202009
Project2Project Planning15-05-2020102
Project2Project Execution 15-06-2020154

 

I would like to have a Matrix or Table that can reduce from my budget each month the reports introduced it per Project. For example:

 

Desire Table:

 

   Backlog Time        
            
Project NameProject ConsultantBudget HoursBudget Hours Not ProfitableHours Exec  May - 2020Hours Not Prof Exec May - 2020Backlog Hours Exec May 2020Backlog Hours Not Prof Exec May 2020Hours Exec  Jun - 2020Hours Not Prof Exec Jun - 2020Backlog Hours Exec Jun 2020Backlog Hours Not Prof Exec Jun 2020
Project1Mike James1002015185192096510
Project2George Michael200181021901615417512

 

I create a relationship between the Project Name for the 2 tables, and create a cummulative formula that summarized me the hours being executed month by month but it doesnt work the way i want it.

 

Cumulative sum = CALCULATE(SUM('Activity Report'[Hours Exec]),FILTER(ALL('Activity Report'),[Date]<=MAX([Date])),VALUES('Activity Report'[Project Name]))

 

Any suggestions about the measures or the way that i should follow to get this done?

 

Thanks in Advance.

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @JS27 ,

To get exactly the same output as you expected, it could be complicated and create multi simliar measures:

Hours Exec May 2020 =
CALCULATE (
    SUM ( 'Activity Report'[Hours Exec] ),
    FILTER ( 'Activity Report', 'Activity Report'[Date].[MonthNo] = 5 )
)

Hours Not Prof Exec May-2020 =
CALCULATE (
    SUM ( 'Activity Report'[Hours Not Prof Exec] ),
    FILTER ( 'Activity Report', 'Activity Report'[Date].[MonthNo] = 5 )
)

Backlog Hours Exec May 2020 = SELECTEDVALUE('Budget'[Budget Hours]) - [Hours Exec May 2020]

Backlog Hours Not Prof Exec May 2020 = SELECTEDVALUE(Budget[Budget Hours Not Profitable]) - [Hours Not Prof Exec May-2020]

 

result.png

 

Sample file is attached:  Cumulative Report / Project Hours.pbix

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @JS27 ,

To get exactly the same output as you expected, it could be complicated and create multi simliar measures:

Hours Exec May 2020 =
CALCULATE (
    SUM ( 'Activity Report'[Hours Exec] ),
    FILTER ( 'Activity Report', 'Activity Report'[Date].[MonthNo] = 5 )
)

Hours Not Prof Exec May-2020 =
CALCULATE (
    SUM ( 'Activity Report'[Hours Not Prof Exec] ),
    FILTER ( 'Activity Report', 'Activity Report'[Date].[MonthNo] = 5 )
)

Backlog Hours Exec May 2020 = SELECTEDVALUE('Budget'[Budget Hours]) - [Hours Exec May 2020]

Backlog Hours Not Prof Exec May 2020 = SELECTEDVALUE(Budget[Budget Hours Not Profitable]) - [Hours Not Prof Exec May-2020]

 

result.png

 

Sample file is attached:  Cumulative Report / Project Hours.pbix

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

That's works perfectly @v-yingjl , thank you very much! 

 

One thing, Is it possible to have a backlog total for each month not taking into consideration the Project in Detail? I mean, trying to minimize the amount of measures that i need to create to get this done, using the same dataset. 

 

Something like:

        

MonthBacklog HoursBacklog Not Profitable
May 202027535
June 202024022

 

Regards.

amitchandak
Super User
Super User

@JS27 , create a project dimension, join both with the project and use project from project

Measure =
CALCULATE(Budget(Budget[Hour]),filter(Budget,Budget[Project] <=max(Project[Project]))) - CALCULATE(SUM(Activity[Hour]),filter(date,date[date] <=max(Activity[Date])))

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors