cancel
Showing results for 
Search instead for 
Did you mean: 
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
Super User II
Super User II

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 IV
Super User IV

@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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

az38
Super User II
Super User II

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

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors