This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
hi All,
I need SQL code for below issue
I have two table as shown below
| Id | Name |
| 1 | Roy |
| 1 | Roy |
| 1 | Roy |
| 1 | Roy |
| 1 | Roy |
| Name | Type |
| Roy | GE |
| Roy | RA |
| Roy | SA |
| Roy | PA |
| Roy | PA |
These two have primary key as Name.
Desired Output
| Id | Type |
| 1 | GE,RA,SA,PA |
kindly need help
Solved! Go to Solution.
@Anonymous,
Use String_Agg if you use T-SQL: https://docs.microsoft.com/en-us/sql/t-sql/functions/string-agg-transact-sql?view=sql-server-ver15
@Anonymous
A dedicated forum might be more appropriate. In DAX, you may use CONCATENATEX to add a measure.
https://community.powerbi.com/t5/Desktop/split-by-delimiter/td-p/363277
@Anonymous
A dedicated forum might be more appropriate. In DAX, you may use CONCATENATEX to add a measure.
https://community.powerbi.com/t5/Desktop/split-by-delimiter/td-p/363277
@Anonymous,
Use String_Agg if you use T-SQL: https://docs.microsoft.com/en-us/sql/t-sql/functions/string-agg-transact-sql?view=sql-server-ver15
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 50 | |
| 33 | |
| 24 | |
| 24 |