Matching comma delimited items by position in set

luke@inspectorteam.com 1 Reputation point
2022-05-11T16:32:45.877+00:00

I have two separate queries that I'm trying to combine in Power Query by a unique project ID.

The first query has two columns, one with a unique ID, and the other with a comma-delimited list of document names:

e.g.

Project# | Document Name

1-123 | Summary, Invoice
1-456 | Summary, Invoice, Contract

The second query has two columns, one with a unique ID corresponding to the first table, and the other with a comma-delimited list of document IDs:

e.g.

Project# | Document ID

1-123 | 4e40117f, 44d9bb10
1-456 | 990dfcf9, 87e34673, 9296580c

I've verified that the document name and its document ID are in the same position within their delimited lists, but I need help in combining them into one query which separates them into individual line items:

e.g.

Project# | Document Name | Document ID

1-123 | Summary | 4e40117f
1-123 | Invoice | 44d9bb10
1-456 | Summary | 990dfcf9
1-456 | Invoice | 87e34673
1-456 | Contract | 9296580c

Any ideas would be greatly appreciated!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,244 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.