SOLVED

Pasting same table down columns multiple times

Contributor

Hi 

I'm not sure if this can be done on excel but here goes.

I have created a table from power query which shows all the combinations of 3 lists. What i am now trying to do is Copy the same table down 53 times (the 53 is a representation of the weeks).

I have attached my workbook. Column A is where the weeks will go for example for each line in my table I will have the same week until the table starts again then column A will change to the following week.

Is there another way of doing this other than pasting the table 53 times ?

 

 

6 Replies

@excel_learner 

You may add one more step to the final query like

...
result = Table.Repeat( prevStep, 53)
in
  result
Hi where do i write this query ?
best response confirmed by excel_learner (Contributor)
Solution

@excel_learner 

You may edit current one:

et
    Source = Table.NestedJoin(Table5, {"Temp"}, Table6, {"Temp"}, "Table6", JoinKind.FullOuter),
    #"Merged Queries" = Table.NestedJoin(Source, {"Temp"}, Table7, {"Temp"}, "Table7", JoinKind.FullOuter),
    #"Expanded Table6" = Table.ExpandTableColumn(#"Merged Queries", "Table6", {"LDP"}, {"LDP"}),
    #"Expanded Table7" = Table.ExpandTableColumn(#"Expanded Table6", "Table7", {"Banding"}, {"Banding"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded Table7",{"Temp"})
///////////////////
// ADD HERE
   , RepeatAbove = Table.Repeat( #"Removed Columns", 53)

in
    RepeatAbove  // #"Removed Columns"

 

 

@Sergei Baklan The Power Query on my comp is not showing this query you have kindly shown.

Do you know how i can view this please ?

 

I can just see this in power query

excel_learner_0-1636651749947.png

 

@excel_learner 

I took the query from the workbook you shared, this one

image.png

If you open it in Advance editor you'll see the code above.