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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.