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
R_
Regular Visitor

Rolling Sum for Max(Year)-1

Hi ,

 

Can anyone tell me how we can create Rolling sum till Last Year.

 

Regards,

R_

1 ACCEPTED SOLUTION
hemantsingh
Helper V
Helper V

Hi @R_,

 

-->  Create a date table that has continuos dates. 

--.>Create a measure that calculates the sum of sales or order as per your scenario

--> Rolling sum LY--> Calculate(Sales measure,sameperiodlastyear(datetable(dateColumn)))

 

Regards,

Hemant

 

View solution in original post

3 REPLIES 3
hemantsingh
Helper V
Helper V

Hi @R_,

 

-->  Create a date table that has continuos dates. 

--.>Create a measure that calculates the sum of sales or order as per your scenario

--> Rolling sum LY--> Calculate(Sales measure,sameperiodlastyear(datetable(dateColumn)))

 

Regards,

Hemant

 

Hi @R_,

 

Create a measure like below mentioned formula,

 

Rolling SUM =
CALCULATE(
SUM(CV_RETAIL_SALES_UNIV[Cost_Amount]),
FILTER(
ALL(CV_RETAIL_SALES_UNIV[Date]),
YEAR(CV_RETAIL_SALES_UNIV[Date])<=YEAR(MAX(CV_RETAIL_SALES_UNIV[Date]))-1
)
)

 

Regards,

Siva

R_
Regular Visitor

Thanks but what if my finance year start from April-March..? How to calculate rolling year between that.?

 

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.