Forum Discussion

excel_learner's avatar
excel_learner
Brass Contributor
Nov 10, 2021
Solved

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 ?

 

 

  • SergeiBaklan's avatar
    SergeiBaklan
    Nov 10, 2021

    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"

     

     

6 Replies

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        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"

         

         

Resources