Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

% Difference from previous week

Hi all,

 

I have columns, country, customer, product_group, model_id, week, year, price, and sales (#). I have several countries, and each country has several product_groups, and each product_group has several model_ids. I have 52 weeks for 2021 and will continue like that for 2022, 2023 etc. Prices for model_ids differ. 

 

I need to find the %difference change from the previous week for each row for price and sales (#). 

 

Each row needs to be unique since there are several variables (country, customer, etc.) 

You can check a dummy screenshot below.

 

How can I do this in PowerBI? Having an extra two columns which will be like "% change price week-over-week" and "% change sales # week-over-week"

 

Thank you!

 

 

6 Replies