Calculating Year-over-Year (YoY) Growth with the OFFSET Function
In our previous two posts, we explored how to calculate Year-over-Year (YoY) growth utilizing Power BI’s innovative new feature, Visual Calculations. • First Post: We examined how to deploy ROWS and SUMX to directly navigate and locate prior-year same-month data within the current visual. • Second Post: We implemented the identical analytical result by leveraging the WINDOW function to reference data exactly 12 rows prior relative to the current row. However, within Visual Calculations, there are other highly potent functions belonging to the Window Function family besides WINDOW. These are OFFSET and INDEX. In many practical scenarios, OFFSET is vastly more intuitive than WINDOW, and INDEX becomes far more useful when you need to pinpoint an absolute position. In this article, we will completely implement the identical Year-over-Year (YoY) growth metric...