Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I would like to make a column based on 2 tables with a one to many relationship. Essentially I want to concatenate all values from related rows in the many table into the correct row of the one table.
Below is an example of this with Table 1 having a one to many relationship with Table 2. The total price column would be easy to achieve with Calculate(Sum('Table 2'[Price])), it's the Supplier/s column that I'm struggling with
Thanks in advance,
Solved! Go to Solution.
You can use CONCATENATEX within CALCULATE to do this.
Something like:
Supplier/s =
CALCULATE (
CONCATENATEX (
VALUES ( 'Table 2'[Supplier] ),
'Table 2'[Supplier],
" ",
'Table 2'[Supplier]
)
)CALCULATE is required for context transition just the same as with your Total Price calculated column, then CONCATENATEX is used to concatenate the distinct values of 'Table 2'[Supplier].
Regards,
Owen
You can use CONCATENATEX within CALCULATE to do this.
Something like:
Supplier/s =
CALCULATE (
CONCATENATEX (
VALUES ( 'Table 2'[Supplier] ),
'Table 2'[Supplier],
" ",
'Table 2'[Supplier]
)
)CALCULATE is required for context transition just the same as with your Total Price calculated column, then CONCATENATEX is used to concatenate the distinct values of 'Table 2'[Supplier].
Regards,
Owen
Brilliant, just what I needed, wasn't sure when I tried it myself what expression I could use for the concatenatex function!
Thanks very much
-Josh
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |