Forum Discussion
excel_learner
Nov 10, 2021Brass Contributor
Pasting same table down columns multiple times
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 ?
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"
6 Replies
- SergeiBaklanDiamond Contributor
You may add one more step to the final query like
... result = Table.Repeat( prevStep, 53) in result
- excel_learnerBrass ContributorHi where do i write this query ?
- SergeiBaklanDiamond Contributor
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"