Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
76 | |
53 | |
37 | |
31 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |