Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello!
I'm having problems... among many, I am trying to create a column in a table that will collect the name from another table and add it into this column...
Table 1 (Acc/Act/Comm/Web)
| Purchase item text | Amount | WBS |
| ABC.1 item1 | 230 | 100001 |
| XYZ | 120 | 100003 |
| random item | 450 | 100003 |
| ABC.1 item2 | 40000 | 200001 |
| DEF item 1 | 200 | 100002 |
| other random item | 100 | 100002 |
I have table 2
(Activity List)
| Work Package | Activity | WBS | Capital WBS |
| ABC | ABC.1 | 100001 | 200001 |
| ABC | ABC.2 | 100001 | 200001 |
| ABC | UNKNOWN1 | 100001 | 200001 |
| DEF | DEF.1 | 100002 | 200002 |
| DEF | UNKNOWN2 | 100002 | 200002 |
| XYZ | XYZ.1 | 100003 | 200003 |
| XYZ | UNKNOWN3 | 100003 | 200003 |
I would like to use Activity column in the Activity List table to to search through the string in the Purchase Item Text column to determine which Activity the item relates to, if the Purchase Item Text doesn't have the Activity in the string then the result should be the Unknown# that corresponds with the WBS. I'm hoping for a result such as this:
| Purchase item text | Amount | WBS | Activity |
| ABC.1 item1 | 230 | 100001 | ABC.1 |
| XYZ.1 | 120 | 100003 | XYZ.1 |
| random item | 450 | 100003 | Unknown3 |
| ABC.1 item2 | 40000 | 200001 | ABC.1 |
| DEF.1 item 1 | 200 | 100002 | DEF.1 |
| other random item | 100 | 100002 | Unknown2 |
Please help!
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 |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 11 | |
| 6 | |
| 5 |