Forum Discussion

Starstorm's avatar
Starstorm
Frequent Visitor
4 years ago
Solved

Period-to-Period Variance(s) & Percentage(s) Without Hardcoding

Hi all, I am new here - great to be in this wonderful community.

 

I need help with showing the variances (in values & percentages) between periods in a matrix table for at least 24 months automatically without any hardcoding.

 

It should look like the following, with the left hand side for Power Query Data Model, and the right hand side for Power BI.

The DAX formulae should be such that every time I load a new subsequent month, it will automatically compute the variances by having the understanding that the latest MAX(month) is the most recent month, which will be compared against [MAX(Month)-1], and subsequently comparing [MAX(Month)-1] against [MAX(Month)-2], and [MAX(Month)-2] against [MAX(Month)-3], so on and so forth.

 

Thank you, and appreciate your support and guidance.

 

12 Replies