Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Possible to create a new column within Query Editor?

I have 2 tables and want to merge the two by appending the two datasets into a new table.  I understand you can do this with the Query Editor.  However, before appending, I want to create a new column in the new table, highlighting the row is from "table 1" or "table 2".

 

How can I achieve this?

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous  In that case, add your SourceTable field as custom column in both the tables ideally before appending them. But if you have already append them as a new table still you can add your custom fields as below and it will reflect in your appended table automatically.

 

image.png

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@Anonymous  In that case, add your SourceTable field as custom column in both the tables ideally before appending them. But if you have already append them as a new table still you can add your custom fields as below and it will reflect in your appended table automatically.

 

image.png

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.