Forum Discussion
% Difference from previous week
- 3 years ago
Hi Anonymous ,
see my pbi file. I have splitted the column Week in 2 columns (week and year) in power query.
https://1drv.ms/u/s!Aj45jbu0mDVJi0DlD5sZpcgVxDjE?e=khhDbs
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
see my pbi file. I have splitted the column Week in 2 columns (week and year) in power query.
https://1drv.ms/u/s!Aj45jbu0mDVJi0DlD5sZpcgVxDjE?e=khhDbs
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey Mangaus,
This looks promising. I will try it now. As I can see in the measure you created, you concatenated the columns to create a unique column. In that way, the calculations will be correct even if I have 1000 rows, right?
Also, can you give me a solution for Week 1 and Week 52 issue?
- mangaus11113 years agoSolution Sage
Hi Anonymous ,
I have splitted the column [report_date_week] in 2 columns, I have not done any concatenation.
Try if it works in your model.
- Anonymous3 years agoNot applicable
It worked the way you did, but for the % to work, I have to have all the columns in the table, which is fine. But some tables will only have year and week, for example. And I will be looking for Avg. Price, for example.
I tried to work on your script but couldn't manage 😕 Can you help?
I created Avg. Price measure as follows;
Avg. Price = AVERAGE(Sheet1[Consumer Price])- Anonymous3 years agoNot applicable
Let me know if anyone has any idea how to do it please