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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
fantacola
Regular Visitor

Append multiple tables but add a date column before

Hi all

I want combine multiple Excel tables (growing - every month one file is added) from a folder. They have the same structure but contain no date column. I want append but somehow I need to add a date column to each table because afterward I need to identify the months. I made a date column from the file name:

I have now two columns. Of course I could expand every table and add individually a date column and append afterwards...but that's not very handy 🙂

 

Table (of the months) | Date of the month

table1                                   January

table2                                   February

etc.

 

How can I bring this all togther?

 

Best regads,

Daniel

1 ACCEPTED SOLUTION

Hello @fantacola 

 

then you have to add a step before your add the new custom column with the extraction of your files. Add there a new column where you use the field "name" to extract your data. After the content of your files is expanded, you will see this new column, that you created before, on every row.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

3 REPLIES 3
Jimmy801
Community Champion
Community Champion

Hello @fantacola 

 

probably you used the automated function to combine multiple files of one file. The GUI in this case creates a function, how you your single file is read and exactly this query you have to extend and add a new column there. But the question is also, where do you get this date from? Is this the creation date or it's the month/date somehow included in your file-name? In both of this cases you need to add your date column before combining the results... and this would be exactly here...

Jimmy801_0-1616756405046.png


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

 

Hello Jimmy

I see the function but my skills are too bad to make you're proposing.

The month is included in my filename.

 

Best regards,

Daniel

Hello @fantacola 

 

then you have to add a step before your add the new custom column with the extraction of your files. Add there a new column where you use the field "name" to extract your data. After the content of your files is expanded, you will see this new column, that you created before, on every row.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.