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
Robapottamus
Regular Visitor

Cumulative Line Chart to compare performance of multiple products over time

Hi - I am trying to compare the performance of multiple products over time (years), using a line chart.
At the moment I am using a Measure called Cumulative Value to sum the cost and revenue for each year individually, so getting each product each year is fine.
What I want to do now is extend this to accumulate year on year, over time. In a line-chart format. But I can't seem to do this in a line-chart format. This is pretty easy to do in Excel, see photo below (couldn't see how to upload the full file).
Any suggestions?
FYI here is my current formula, Cumulative Value = CALCULATE(SUM('Data Table'[Value] ),FILTER(ALL('Data Table'[Date]),('Data Table'[Date]<=MAX('Data Table'[Date]))))

Sample chart (easy in Excel)Sample chart (easy in Excel)

 

1 ACCEPTED SOLUTION
KamK
Frequent Visitor

Hi @Robapottamus

 

For time intelligence functions Ive fount it best to have a separate date table (with unique dates) and create a relationship with your exsisting data table.

 

Assuming your new date table is called  DateKey and the column called Date , try the following

 

Cumulative Value = CALCULATE(SUM('Data Table'[Value] ),FILTER(ALL(DateKey),DateKey[Date]<=MAX('Data table'[Date])))

 

Hope this helps

 

 

 

 

View solution in original post

2 REPLIES 2
KamK
Frequent Visitor

Hi @Robapottamus

 

For time intelligence functions Ive fount it best to have a separate date table (with unique dates) and create a relationship with your exsisting data table.

 

Assuming your new date table is called  DateKey and the column called Date , try the following

 

Cumulative Value = CALCULATE(SUM('Data Table'[Value] ),FILTER(ALL(DateKey),DateKey[Date]<=MAX('Data table'[Date])))

 

Hope this helps

 

 

 

 

Thanks KamK, that seems to do the trick. I haven't considered the idea of using a separate Dates table previously so will need to get my head around how I can use these going forward. Cheers!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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
Top Kudoed Authors