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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
muelleto
Regular Visitor

Accumulate Monthly Values

Hi,

 

after hours of research and workarounds I'm still struggeling with a huge problem.

I have a list of demands with the column "close date", the column "service" and the column "efforts". Now I'd like to have a stacked column chart with a y-axis displaying the effort and x-axis dsplaying the months from January to the actual month and the stacks should represent the service.

In addition the values from the previous month should be added to the next month.Capture.PNG

 

In the end it should look like this with increasing values but I'm not able to addup the effort from the previous month. 

 

 

 

 

Any ideas how to solve this?

Thanks you!

Br, Tom

1 ACCEPTED SOLUTION
muelleto
Regular Visitor

Ok fixed the problem.

I forgot to add .[Date]

 

So the solution looks like this:

 

 

EffortYTD = TOTALYTD(SUM(Table[Effort)]); Table[Closed Date].[Date])

 

Br, Tom

View solution in original post

5 REPLIES 5
muelleto
Regular Visitor

Ok fixed the problem.

I forgot to add .[Date]

 

So the solution looks like this:

 

 

EffortYTD = TOTALYTD(SUM(Table[Effort)]); Table[Closed Date].[Date])

 

Br, Tom

igor
Frequent Visitor

Ive try this solution and it works, but I dont know how to use in two distinct years.

Can you help me?

powerbi.JPG



Vvelarde
Community Champion
Community Champion

@igor

 

hi, in this case you need a cumulative Total

 

Check this: http://www.daxpatterns.com/cumulative-total/

 

 




Lima - Peru
muelleto
Regular Visitor

@Vvelarde Thank you for your input.

 

Now I get the error: Calculation error in measure 'Report'[EffortYTD]: A date column containing duplicate dates was specified in call to function 'DATESYTD'. This is not supported.

 

I know what that means but no idea how to fix this...

 

Anyhow I think, this is not going to solve my problem because I use the 'closed date' in the Axis field to split the Sum('effort) values into the different month. So it will always just show me the values for each month and it will not add them up. Correct?

 

Br, Tom

Vvelarde
Community Champion
Community Champion

@muelleto

 

Try with this:

 

EffortYTD = TOTALYTD(SUM(Table3[Effort]),CalendarTable[Date])




Lima - Peru

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors