Forum Discussion

guyatisk's avatar
guyatisk
Icon for Helper II rankHelper II
2 years ago
Solved

Creating a column to combine related record values

This represents a table that is a child of another master table.  The relation is EURID.  What I want to do is to combine two or more records into a field to represent Cost Centers.  In this example, the 1st record would stand on its own.  Then the other subsequent records would have values of: "570, 310", "711, 730", and then "711,730" respectively.  In the main power bi report, I can then display that column in a table for each employee.  Hope this makes sense.  I am sure I need to do something in the query itself.  Thanks for any help

  • guyatisk you can achieve this by adding a measure:

     

    Cost Center Measure = 
    CONCATENATEX ( 'Table', 'Table'[Cost Center], "," )

3 Replies