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
Has anyone else experienced the SAMEPERIODLASTYEAR function as of the July 2023 PowerBi update no longer functioning in their report?
Solved! Go to Solution.
Hi, @Michaelbean21
I have tested it and it works. The DAX Guider you can refer.
SAMEPERIODLASTYEAR function (DAX) - DAX | Microsoft Docs
Or you can try the equivalent formula:DATEADD(dates, -1, year)
Pbix in the end you can refer.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Michaelbean21
I have tested it and it works. The DAX Guider you can refer.
SAMEPERIODLASTYEAR function (DAX) - DAX | Microsoft Docs
Or you can try the equivalent formula:DATEADD(dates, -1, year)
Pbix in the end you can refer.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Michaelbean21 You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
I'll have to test whether there is some kind of bug or issue with SAMEPERIODLASTYEAR.
You could check the Issues forum here:
https://community.powerbi.com/t5/Issues/idb-p/Issues
And if it is not there, then you could post it.
If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
Hello @Michaelbean21 ,
did you try to use Previous year function ?
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Follow me on Linkedin
Vote For my Idea 💡
Proud to be a Super User! | |
This function is also not working for me. I have had the SAMEPERIODLASTYEAR measure working for over 6 months now and all of a sudden it started returning null values in my report.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |