Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi,
I need to count the number of accumulated contracts (formula below) per month. Then I need the same calculation to compare with the last year.
At this point is when I can not continue. I don't know where or how use SAMEPERIODLASTYEAR.
The Fact table is "ContratosServicio" and the Calender table "Calendario".
Solved! Go to Solution.
Hi @joaquinel ,
I think you have to use this measure
CALCULATE(
[15_TotalBOPLastPeriod],
SAMEPERIODLASTYEAR('calendario'[date])
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @joaquinel ,
I think you have to use this measure
CALCULATE(
[15_TotalBOPLastPeriod],
SAMEPERIODLASTYEAR('calendario'[date])
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great!!!
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 41 | |
| 31 | |
| 18 | |
| 18 | |
| 15 |