Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Currently, I have data (January 2020 through February 2021) and when I write this formula:
Solved! Go to Solution.
I still think the solution can be streamlined, but found a workaround here:
Solved: SAMEPERIODLASTYEAR() - Microsoft Power BI Community
Thank you @BA_Pete
@Anonymous The problem could be because you are using dates from a fact table, please create a proper date table in your model. For time intelligence calculations there model should always have a proper dates table.
I still think the solution can be streamlined, but found a workaround here:
Solved: SAMEPERIODLASTYEAR() - Microsoft Power BI Community
Thank you @BA_Pete
@AntrikshSharma I did create the table and that still did not work. I mention the date table as a calendar table.
"I have also tried using a calendar table due to the contiguous issue and and I still get the same result-the December 2020 count."