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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
sdukes_88
Frequent Visitor

Cumulative Line Chart Help

Hi,

 

I need a cumulative line chart but am stuck.

 

I have month along the bottom of the chart and then it needs to do a sum of funding but it has to sum whatever is in RateBand and be able to filter on Group2 and FundLine.

 

Chart.jpg

 

The top chart is fine as it shows the funding by month but then the bottom chart needs to sum funding but take into consideration the groupings defined by the slicer.

 

Any help or tips appreciated!

 

Thank you

Simon

6 REPLIES 6
Anonymous
Not applicable

Hi @sdukes_88,

I make a test using the following sample data.
1.PNG

Firstly, add an index column in your current table.

Secondly, add a new column using  the following formula.

Cumulative = Calculate ( Sum ( Table4[Funding]), CalculateTable ( Filter ( AllExcept ( Table4, Table4[RateBand] ), Table4[Index]<= Max ( Table4[Index] ) ) ) )
5.PNG


Thirdly, create line chart as follows.
4.PNG
3.PNG2.PNG


Thanks,
Lydia Zhang

Hi Lydia,

 

Thanks for this and apologies for delay in my response.

 

I'll give this a try, but worried my data won't work with the index as there are also multiple sites (i.e. Site 1 - Site 7).

 

Thanks

Simon

Baskar
Resident Rockstar
Resident Rockstar

Cool Dude,

 

If u remove the Legend from the line chart u can get the Total , I mean sum of Value which u seen in the above bar chart.

 

 

Sorry I don't think I was very clear. I mean I need the cumulative total running across the months.

 

So in the line chart, Aug+Sep+Oct etc

 

So if Aug is 20,000 and September is 300,000 the point at September for the line chart should be 320,000 etc 

Ooh Cool,

 

Create new measure for this,

1.JPG

 

 

 

Running Count1 = CALCULATE(COUNTA('Date Master'[MonthInCalendar]),FILTER(ALLSELECTED('Date Master'[Date]), 'Date Master'[Date] <= MAX('Date Master'[Date])))

 

 

 

let me know if any help.

 

 

 

 

 

 

Thanks for this - my only problem is that Month is a text field i.e. 01-Aug, 02-Sep etc so it doesn't seem to like this.

 

If it helps I have 'Period' which is numeric?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.