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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gautampruthi
Helper II
Helper II

Show Cumulative trend in a line chart

Hi I have a data in this format 

Employee Code, Employee Last date , Reason, Academic Year 

 

I want to create a line chart to show Cumulative trend of employee leaving in the academic year  starting from Sep till July

I am using this measure to calculate the trend but when i use it in line chart it show zig zag but i need it to be cumulative

CurrentYearWithdrawals =
CALCULATE(
  SUM(ECE[Custom]),  // Count the number of rows (withdrawals) in ECE, created a custom column
   FILTER(
       ECE,
       ECE[Academic Year] = "23/24" && (SCE[Enrolment Status] = "W" || SCE[Enrolment Status] = "S")  // Current academic year and stac condition
   )
)
1 REPLY 1
lbendlin
Super User
Super User

You are missing the cumulative part.  You need to get the "current"  date and then sum up all values in the current period (academic year) that have dates less than or equal to that.

 

Please use Quick Measures to see samples of cumulative measures.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.