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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Clem
New Member

Cumulative Line Chart (without formula)

Hello, 

 

I can't find the option to set the line charts to "cumulative" format. Can you tell me how to do it ? When I did it for other charts, I found a button without using a formula, but I can't find it again...

When I say "cumulative" : as you can see on the screens : the second one is cumulative : the figures given are the results of the overall evolution for each year / on the other screen, you can see the details for each year. 

Line chart (non cumulative).PNG

Cumulative line chart.png

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Clem ,

Sorry, to my knowledge, i do not know there is the button.

But you just could create a measure with simple dax formula to achieve it.

Cumulative =
VAR cur_year =
    SELECTEDVALUE ( 'Table'[Year] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Year] <= cur_year )
RETURN
    SUMX ( tmp, [Sale] )

vbinbinyumsft_0-1691634581591.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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

1 REPLY 1
Anonymous
Not applicable

Hi @Clem ,

Sorry, to my knowledge, i do not know there is the button.

But you just could create a measure with simple dax formula to achieve it.

Cumulative =
VAR cur_year =
    SELECTEDVALUE ( 'Table'[Year] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Year] <= cur_year )
RETURN
    SUMX ( tmp, [Sale] )

vbinbinyumsft_0-1691634581591.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.