Forum Discussion
Tinus1905
2 years agoResolver I
Previous period
Hi, In PowerBi query editor I want to have a column of the previous period. The year periods are: Week 1-4 is period 1, week 5-8 is period 2 etc etc. If a year has 53 weeks then week 53 belongs...
- 2 years ago
In your Advanced Editor, Delete all other existing lines aftrer #"Added Custom3". Use these 3 lines after #"Added Custom3" step.
CurrentWeek = #"Added Custom3"[Period]{List.PositionOf(#"Added Custom3"[Current week], true)} - 1, #"Added Custom" = Table.AddColumn(#"Added Custom3", "Previous period", each [Period] = CurrentWeek) in #"Added Custom"
Vijay_A_Verma
2 years agoMost Valuable Professional
Click on Custom Column in Add Column menu and paste the formula which I have given. Replace #"Changed Type" with #"Added Custom3". This will become
#"Added Custom3"[Period]{List.PositionOf(#"Added Custom3"[Current week], true)} - 1Tinus1905
2 years agoResolver I
Vijay_A_Verma ok, this what I get:
But this is what I want, so I can use a filter on true or false in the previous period column.