Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
2 years ago

Get Source Query Name for each Record of Merged Query

After merging multiple queries, how do I make a custom column that shows which query each record is sourced from?

 

Example:

I am new to Power Query and I have no clue how to achieve this.

3 Replies

  • collinsg's avatar
    collinsg
    Solution Sage

    Good day kbl_22

    Before appending the queries you could add a column to Table 1, call it "Source" and give it the value "Table 1". Do the same for Table 2. Then append the queries (it looks from the example you have an append rather than a merge).

    Hope this helps