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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.