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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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

 

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

 

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.