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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ABhishek_Parmar
New Member

power BI

Hi,

 

I have data from 2013 to 2018 which I have converted them into Indian fiscal year which starts from Apr and ends in March. So now I have to do comparsion on previous and current year sales and profit. I am able to find current fiscal year sales which is Apr 2017 to Mar 2018. But I am unable to find Previous years sales that is Apr 2016 to Mar 2017. 

PS: I have already used sameperiodlastyear function but instead of fetching previous year sales it is fetching sales value from FY2013 to FY2016-17.

 

Thanks for helping 

4 REPLIES 4
olgad
Super User
Super User

Which version of power bi do you have? Those functions have been there from dec 2022


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Unfortunateely I am using OCT 2022 version

olgad
Super User
Super User

Hi, use offset function to calculate last yer
LY = Calculate(SUM('Table'[Sales]),
OFFSET(-1,
All('Calendar'[Fiscal Year]),
ORDERBY('Calendar'[Fiscal Year])
))



olgad_0-1682066010663.png

olgad_2-1682066095967.png

 

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

ABhishek_Parmar_1-1682069105253.png

 

Hi, I am getting above error. Please help

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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