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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
alexamatthews
Regular Visitor

Append Queries - Add Source Table Column

I would like to have a column in an appended table which details the original table. For example, I have timesheets for individual team members which are appended to one table with all recorded time. I would like to be able to view that data by project, sub-project, and also team member, so I could see that 20 hours was spent on the build phase of project X, of which 10 hours was Dave and the other 10 Bill. At the moment I can see the project & sub-project, but not the name of the team member which is only given as the title of the original table. Unfortunately I can't change the source data to have an additional column of team member name.

 

Dave Timesheet

Project XBuild10
Project YTest5

 

Bill Timesheet

Project XBuild10
Project YTest5

 

Combined Timesheet

Dave TimesheetProject XBuild10
Dave TimesheetProject YTest5
Bill TimesheetProject XBuild10
Bill TimesheetProject YTest5

 

Is this possible? I can't seem to find anything on it. 

 

Many thanks

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@alexamatthews ,

 

Create a Folder and put the excel files into the folder, then connect to the folder-> Load. In query editor, you will get below:

1.PNG 

Then click the expand icon in the Content column, you can achieve the final result.

Capture.PNG3.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@alexamatthews ,

 

Create a Folder and put the excel files into the folder, then connect to the folder-> Load. In query editor, you will get below:

1.PNG 

Then click the expand icon in the Content column, you can achieve the final result.

Capture.PNG3.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

Refer, these power query solution. They will work in power bi too

https://chandoo.org/forum/threads/powerquery-append-include-column-with-sheet-name.31480/

https://www.mrexcel.com/board/threads/add-custom-column-with-sheet-name-as-value-content-power-query...

 

Then Append :https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.