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 Experts
I want to amend the current measure to give me the sale for 2019 (less 2 years) the current measure return the sameperiodlastyear. I want the new measure to give same period less 2 years.
NetSales YoY% =
VAR CY = [Overall NS]
VAR PY = Calculate([Overall NS],SAMEPERIODLASTYEAR(Calendar[Date], ALL(Calendar))
Return
Divde (CY - PY, PY,0)
Solved! Go to Solution.
Hello there @Anonymous ! Maybe this can work:
NetSales YoY% =
VAR CY = [Overall NS]
VAR PY = Calculate([Overall NS],PARALLELPERIOD(Calendar[Date], -2, YEAR))
Return
Divde (CY - PY, PY,0)
Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!
Best regards,
Gonçalo Geraldes
Hello there @Anonymous ! Maybe this can work:
NetSales YoY% =
VAR CY = [Overall NS]
VAR PY = Calculate([Overall NS],PARALLELPERIOD(Calendar[Date], -2, YEAR))
Return
Divde (CY - PY, PY,0)
Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!
Best regards,
Gonçalo Geraldes
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 |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |