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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-binbinyu-msft
Community Support
Community Support

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
v-binbinyu-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.