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
Anonymous
Not applicable

Previous fiscal year values based on selected fiscal year slicer and completed month in selected FY

Hello All,
I have a requiment where I am looking for Previous fiscal year values based on selected fiscal year slicer and completed month in selected FY.

Selected slicer 2023-24  and Month completed till oct 2023
Previous year slicer 2022-23 
 Fiscal year start month is April of every year


Like I have selected 2023-24 from slicer and I need previous year total sales for growth % calcualtion based on current fiscal year completed months.

Completed month = Apr 23 to Oct 23 

Required PY sales month for fiscal 2022-23 is Apr 22 to Oct 22 

I have a calender table as but I have created FY column in my base table itself using M query.


I am looking for Total sale values based on above condition.


Thanks
Dean

3 REPLIES 3
Anonymous
Not applicable

@Uzi2019  Yes That has been taken care already.

Thanks
Dean

Hi @Anonymous 

You can simply create the following measure
Prev year= CALCULATE(Sum( Total sales),DATEADD( 'Fiscal date',-1, Year))


this will give you previous year sales if your year fiter is from April 2023 upto Oct 2023 then Prev Year data will be from april 2022 till oct 2022.

 

If I answered your question please give kudos and accept it as a solution!

Thanks

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Super User
Super User

Hi @Anonymous 
Did you create fiscal calendar table??
Your fiscal year should be properly mapped to April - March month.


Don't forget to give thumbs up and accept this as a solution if it helped you!!!

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.