Forum Discussion

limewire's avatar
limewire
Icon for Helper I rankHelper I
7 years ago
Solved

Excel file name as custom column - append current query with new data

Greetings!

I have several files in different locations that are the same data pulls (perhaps with a few variations) but are from different years. After many steps on the query editor, I have shaped my data the way I want. Now 2 things:

 

1. Is there a way to have a custom column that would display the file name of the excel document? The files all follow the same naming convention where the year precedes the file name (ex. 2018_filename) . Is there a way to add a custom column to my orginial query that will display the file name? (Even better if there is a way for only the year of the file name to show!)

 

2. How do I append my current query with my other files where they will go thru all the steps my orignial file had to undergo? When I tried to add a new data source in the Home tab of the query editor, it created a new query instead of appending it to the query I was working on. 

 

I am very new to PowerBI and appericate all help! 

4 Replies

  • parry2k 

    Perhaps you can help me on this new issue! A guide thru this frustrating darkness of confusion and inferiority. 

    • parry2k's avatar
      parry2k
      Icon for Super User rankSuper User

      limewire this is pretty staright forward since you already done heavy lifting. Quik question thou, do you have files in same folder or differnt folders?

      • limewire's avatar
        limewire
        Icon for Helper I rankHelper I

        parry2k I am so grateful for your assitance. Truly!

         

        The files are in different folders but the the different folders are all in one folder!

         

        So big Folder has year folders and each year folder has the year file I want