Forum Discussion

hackfifi's avatar
hackfifi
Helper V
8 years ago
Solved

Create Duplicate Entries based on Column Value

Good Day - I have a table in PowerBI Query as DATA [shown below] I am trying to convert that DATA to OUTPUT [shown below] In summary, Each ROW needs to be duplicated based on COUNT value, and ID Co...
  • Phil_Seamark's avatar
    8 years ago

    Hi hackfifi

     

    You could try this calculated table in DAX

     

    Table 2 = 
        GENERATE(
            'Table',
             FILTER(
                 SELECTCOLUMNS(
                     GENERATESERIES(1,100),
                     "ID",[Value]
                     ),
                     [ID]<=[Count])
                     )

    This gave me this result