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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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