Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 37 | |
| 32 | |
| 21 |