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
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"
Tinus1905
2 years agoResolver I
Vijay_A_Verma it works!!! Thanks for your help.