top of page

How to Calculate Year-over-Year Metrics in Power BI

hands typing on a laptop

What is YoY Metrics?

Year-over-Year (YoY) metrics are performance indicators that compare a specific measure from one period to the same period in the previous year. They're essential for understanding long-term trends and seasonal patterns.

How YoY is calculated.

YoY = (Current Year Value – Previous Year Value)/Previous Year Value* 100

For Example: If a company earned 600000 in the current year and 500000 in the previous year, then YoY growth is 20.0% as computed below.

YoY = (600000-500000)/500000 *100 = 20.0%

Computing Year-over-Year Metrics in Power BI

In this example, I am using the sample – superstore dataset, which ranges between 2017 and 2020 to compute YoY growth between the year 2019 and 2020.

To do so, lets compute the current value in this case 2020 Sales as shown below.

power bi calculation

(This calculation will return the sales of the year selected in your filters card, in this case Year 2020)

Next, create a new column, to be used in filtering data as well as computing the previous year’s sales using the calculation below.

Note this calculation is created by truncating the Order Date to the year.

power bi calculation

Create another measure computing Previous Year Sales as show below.

power bi calculation

Note the above two measures return the current and previous year sales based on the selection on the filter as shown below. Note, year 2020 is selected on the filters card.

cards comparing current and previous values in power bi

Lastly compute percent growth using the calculation below.

power bi calculation

Adding the above calculation to the card and formatting returns the YoY growth of Sales between the year selected on the filter and the previous year.

cards showing year-over-year growth in power bi

Note you can build nicer KPI cards to present your YoY computations, such as the one shown below.

KPI card in power bi

Conclusion

Creating Year-over-Year (YoY) metrics in Power BI isn’t just a technical exercise - it’s a strategic move toward clearer, more contextualized decision-making. By leveraging DAX functions and combining them with intuitive visuals, you unlock the ability to track growth, spot seasonal trends, and communicate performance with precision.

Whether you're building executive dashboards, optimizing self-service analytics, or crafting tutorials for your audience, YoY metrics offer a powerful lens for comparing progress over time.

If you like the work we do and would like to work with us, drop us an email on our contacts page and we’ll reach out!

Thank you for reading!!

Original.png

We Support You Deliver Business-Focused Solutions That Enable Data-Driven Decision Making.

  • Tableau profile
  • YouTube
  • White LinkedIn Icon
  • Facebook
  • X

QUICK LINKS

CONTACT US

WhatsApp: +254 738 307 495

East Gate Mall, Donholm

3rd Floor Suite No. 3i

Nairobi, Kenya

Join our mailing list

bottom of page