March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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
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
Hi @Anonymous
Did you create fiscal calendar table??
Your fiscal year should be properly mapped to April - March month.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |