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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
pshetty05
Helper I
Helper I

How can I get an additional column that displays the source table name after appending two tables

Hi @poTeam,

 

I'm trying to append two different table here which has data from 2019 and 2020. I'm appending the data from both these table into one table. While I'm doing this, I'm interested to know what is the source of this data (2019 table or 2020) in an additial table.

 

Could you please help me with this?

 

Regards,

Pavitra

2 ACCEPTED SOLUTIONS
az38
Community Champion
Community Champion

Hi @pshetty05 

for example, before append add a Custom column "Year" in each of the tables. For table 2019 it will be = "2019", for 2020 = "2020"

then analyze by this field in appended table


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

amitchandak
Super User
Super User

@pshetty05 , Do this in Data Transformation/Edit Query mode, Add a custom column with a static value of the year and then append

Refer this option too

https://radacad.com/get-data-from-multiple-excel-files-with-different-sheet-names-into-power-bi

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@pshetty05 , Do this in Data Transformation/Edit Query mode, Add a custom column with a static value of the year and then append

Refer this option too

https://radacad.com/get-data-from-multiple-excel-files-with-different-sheet-names-into-power-bi

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
az38
Community Champion
Community Champion

Hi @pshetty05 

for example, before append add a Custom column "Year" in each of the tables. For table 2019 it will be = "2019", for 2020 = "2020"

then analyze by this field in appended table


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.