Calculating Year-over-Year (YoY) Growth with Window Functions in the New Visual Calculations
In our previous discussion, we calculated Year-over-Year (YoY) growth by utilizing ROWS and SUMX to directly search for matching prior-year data within the current visual. However, the powerful capabilities of Visual Calculations do not end there. As Power BI has expanded this new feature set, we can now leverage Window Functions such as WINDOW, OFFSET, and INDEX. While the previous approach can be defined as "finding data via logic and conditions," utilizing a Window Function is "referencing data based on its relative position." Even though both methods produce identical results, the analytical lens and calculation mechanisms are fundamentally altered. To be frank, it is not strictly mandatory to deploy this method for your everyday YoY calculations. Nonetheless, the reason we must implement this function firsthand is clear: it broadens our data-mod...