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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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