Forum Discussion

auron's avatar
auron
New Member
3 years ago

Join multiple rows, sum a column and join another column

Dear all, i have a table like this one:

idfield1field2spentproject
123ab1myprj
123ac3techprj
456zs2newp
789wa5greenPrj

What i need is a DAX query to calculate a new table to join rows with the sam ID field by performing this operation:

  • sum the spent column
  • merge the project column which is always composed by strings.

The final table should be like:

 

idfield1field2spentproject
123ac4myprj, techprj
456zs2newp
789wa5greenPrj

 

Can you please help me? Thanks a lot

1 Reply

  • auron , If you want measures

    max(Table[field2])

     

    sum(Table[spent])

     

    and

     

    concatenatex(Table, Table[project], ", ")

     

     

    refer more options

     

    Concatenate Text- Measure, DAX Table, and Power Query Table: https://youtu.be/xAh3tz1qo24