Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Create a second column with the same all values from the first one by each values of the first

Hello community, I'm trying to create a table with a list of products and by each element of the list create a copy of the list in a second column to count how many times the products are bought toge...
  • Anonymous's avatar
    Anonymous
    7 years ago

    In Power Query:

    Add a custom column that just = 1

     

    Merge the table with itself on that column, using full outer.

    Expand the new column 

    Then remove all the columns you do not want

    Set date types

     

    Final Table: