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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi.
I don't know how to create a measure to compare this year with 2 years ago.
To compare with last year I have used SAMEPERIODLASTYEAR and it works well.
Tks.
Daniel Kataoka.
Solved! Go to Solution.
Hi @Anonymous
You can use parallelperiod function and a calendar table...
Last two years prior =
CALCULATE (
SUM ( Table[column_name] ),
PARALLELPERIOD ( 'Calendar'[Date], -24, MONTH )Hope this helps!
Thanks,
AnthonyJoseph
Hi @Anonymous
You can use parallelperiod function and a calendar table...
Last two years prior =
CALCULATE (
SUM ( Table[column_name] ),
PARALLELPERIOD ( 'Calendar'[Date], -24, MONTH )Hope this helps!
Thanks,
AnthonyJoseph
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |