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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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."
User | Count |
---|---|
11 | |
9 | |
6 | |
5 | |
4 |