COMBINE FROM FOLDER in Power BI | What to do when new columns don't show?!

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 143

  • @Zakehonest7
    @Zakehonest7 3 роки тому +6

    You make it easy to follow, step by step and in simple basic terms. Thank you!

  • @TimePasser
    @TimePasser Рік тому

    my brother and my friend.. I cant thank you enough.. this is exactly what i needed..

  • @veenarahul8750
    @veenarahul8750 25 днів тому

    Wow Excellent video. I have searching for this everywhere. Finally I got it. Very easy to follow. Thanks much for uploading it.
    Could you please share how we can combine files from a sharepoint folder please?

  • @SolidSnake59
    @SolidSnake59 2 роки тому

    I have been looking for good advanced PowerQuery lessons. Your videos are just what I need. Thank you!

  • @RogerioFelixrdf
    @RogerioFelixrdf Рік тому +1

    Vielen Dank! Very good information, just a question, how do it if the new column is in the middle or we don't know the exact position...?

  • @lh7617
    @lh7617 2 роки тому

    Awesome Video. I searched everywhere for an easy to understand, quick solution. Great Job on the explanation

  • @istiaqjahanshuvo5041
    @istiaqjahanshuvo5041 10 місяців тому

    Just becoming your fan day by day! Amazing contents! Thank you so much!!!

  • @sujawahab3933
    @sujawahab3933 2 роки тому +2

    Thanks for this .. you have no idea how much this helped me to one of my work assignment. i will subscribe and check all your videos

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      that's great to hear Suja!!! thx for checkn out my videos! 😀

  • @mubangizijulius4303
    @mubangizijulius4303 2 роки тому +1

    Thank you so much. I combined more than 10 workbooks following your steps yes it worked but it is too slow on loading and refreshing. It can take almost an hour. what should I do because this technique had worked for me? Your guidance will be highly appreciated

    • @rameshu3091
      @rameshu3091 Рік тому

      Yes, even I am facing the same issue. Evaluation and Loading taking too much time

  • @CalebHarrison-fz6lu
    @CalebHarrison-fz6lu Місяць тому

    Very easy to understand. Thank you for the help

    • @CalebHarrison-fz6lu
      @CalebHarrison-fz6lu Місяць тому

      I will say that when I did this it turned all my columns into Text Columns. I had to manually go back to each column to turn it back to a currency or number column. Still very helpful

  • @michaeltadesse3678
    @michaeltadesse3678 3 роки тому +2

    Thanks for the helpful video ,also could you help me with the question , get most recent files FROM FOLDER in Power BI | What to do when new columns don't show?

  • @zsuzsagecs7831
    @zsuzsagecs7831 Рік тому +1

    Hi Bas, great video, thank you but what to do if let’s say in the last 2 files you don’t only have 2 extra columns but the old column names have also been slightly changed compared to the other files + the order is not the same either anymore? Thank you!

  • @p3trolhead
    @p3trolhead 2 роки тому

    Exactly the solution I was looking for. Cheers my buddy!
    My question is, my PBI has Added Conditional Column that I've already created after I combined and transformed the data. There are at least 5 additional steps. Can I still go ahead and do this solution and still be able to use all my added steps?? or will it effect those steps?
    Thank You!

  • @kartik-wi2jv
    @kartik-wi2jv 3 роки тому +1

    You are Awesome... in both Content and Presentation.. Keep Sharing.. 👍....

  • @jesseemling4817
    @jesseemling4817 Рік тому +1

    This worked for me. HOWEVER, when I add my next file (or the next or next), those columns are not being added. I need to be able to combine every file that goes into the folder automatically.

  • @ChrisSmithFW
    @ChrisSmithFW 2 роки тому +2

    This is a fantastic solution and perfectly presented. Kudos! Thought you solved my problem but this solution doesn't work with CSV's. Looking for the same but for CSV's.
    When I perform the [Transform File] steps, I see that the new CSV is imported but still the new fields are not.
    UPDATE:
    I've been working on this all day and finally have it working properly. For some reason, as mentioned earlier, when I perform these steps, the source CSV does not include the new fields/columns from [Transform Data]. No matter what I tried, I could not get the test source file to show the new fields by performing just [Transform Data]. Because it was not displaying the new fields, I opened the Advanced Editor from "Transform Sample File," located the "Columns =" code and aggregated the number of new columns to the existing "Columns =" value.
    I then went back into the Query file, went to the "Data" Applied Step and clicked on the test file. Voila, the new fields are there.
    Appears the takeaway, at least for me, is to update the total number of fields included in the file containing the largest number of fields before performing these steps...or at least getting them to work properly.
    Thanks so much for the help on this. Been wracking my brain all week.

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +1

      thanks for sharing the update Chris! For CSV files you could also take out the nr of columns argument (sometimes works) -> see video here ua-cam.com/video/wuLnv3QJCHg/v-deo.html

    • @ChrisSmithFW
      @ChrisSmithFW 2 роки тому

      @@HowtoPowerBI Sweet. Checking this out now as I'm adding more fields to the same query files. Much appreciated.

    • @jc1086
      @jc1086 2 роки тому

      Thank you! My situation called for 1 extra column and this worked however I got the extra column added to the first folder CSV file as well. The one that didn’t originally have the additional column. Did you get the same result?

    • @jc1086
      @jc1086 2 роки тому

      Thank you! My situation called for 1 extra column and this worked however I got the extra column added to the first folder CSV file as well. The one that didn’t originally have the additional column. Did you get the same result?

    • @jc1086
      @jc1086 2 роки тому

      Thank you! My situation called for 1 extra column and this worked however I got the extra column added to the first folder CSV file as well. The one that didn’t originally have the additional column. Did you get the same result?

  • @leticiacoelho8231
    @leticiacoelho8231 Рік тому

    Great content, very easy to follow! Thank you!!

  • @mukeshved
    @mukeshved Рік тому

    Hi , very helpful thanks 👍
    Can you suggest any book for Power BI and DAX ?

  • @onkartanwade2077
    @onkartanwade2077 11 місяців тому

    Hi Sir, thank you for this solution I have been stuck for a long time to figure it out. Great relief.😅

  • @BernatAgulloRosello
    @BernatAgulloRosello 3 роки тому

    Just discovered this channel and it does bring a lot of value. Good rhythm good content, congrats!

  • @dariuszspiewak5624
    @dariuszspiewak5624 2 роки тому

    Hi Bas. Your materials on Power BI are impressive. The vid format you've chosen is superb. Congratulations :) I know you are presenting/touch on many different aspects of PBI; from solving problems via Power Query through to designing the layout of stunning reports and... everything in between. But is there any division here? So that, say, one could browse through just the vids you've made on Power Query? Or the design? Or DAX? Or are these all just vids that one has to manually sift through to find topics related to some technique/technology/part? Thanks.

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      Thanks! There are some playlists (dax, design, shorts and challenges) already but i will see if there would be some better division

    • @rameshu3091
      @rameshu3091 Рік тому

      Thanks Bas for the nice video. This is what I was looking for but evaluation and Loading is taking a long time. Please let us know to reduce refresh time

  • @sagenodes
    @sagenodes 8 місяців тому

    Great tutorial. Thank you!
    I'm having a small issue, this works when dealing with a single query, but I noted that when you create additional queries and when the "Transform File" name changes to "Transfer File (2)", it returns an error - which looks something like:
    ----> ^^^^^^^^
    How would one fix this?

  • @BaileyAirsoft
    @BaileyAirsoft 2 роки тому

    What a Bas. (Read boss)
    Exactly what I was looking for. Thank you, kindly.

  • @alexpetkunas9669
    @alexpetkunas9669 Рік тому

    This is very helpful. There was one issue with it that I'm wondering if it's user error, or if this method doesn't account for it. I changed the header in one of the Excel spreadsheets in the folder I connected to. When I refreshed my Power BI report, I got an error saying that column wasn't found. It's because I changed the name, but I was hoping it would work. I am going to continue troubleshooting and trying to find a way to fix that dynamically so that I don't have to go in and fix it manually each time a column name gets changed. Still a great trick though!

    • @alexpetkunas9669
      @alexpetkunas9669 Рік тому

      Looks like it was user error. I reordered columns and changed the data type which calls out the column specifically in the step, so I went to advanced editor and took that column name out of the steps. All good now. I don't really need the columns to be in any specific order, and I can change the data type in the report view, so I can probably remove those steps altogether so it doesn't happen in the future. Again, very helpful video, so thanks!

  • @Metzanine
    @Metzanine 2 роки тому

    Useful, thank you! How would you deal with combining files from a folder where most files have the same number of columns, but for a couple they have one column LESS? I've got P&L outputs from Xero that are doing this - at the moment I'm fixing the source data (adding in the extra column) but it would be great to get the query to do this.

  • @Mareeyaaaaa
    @Mareeyaaaaa 2 роки тому

    Thank you for sharing this! can this process be done after you have transformed the sample file with less columns than the new added file? Let’s say I have transformed the sample file by unpivot and group the data; however, a new file with extra columns has been added. Thanks!

  • @stevegisselman765
    @stevegisselman765 2 роки тому

    Always the best tutorials Bas! Thank you for all you do!

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      ☺️thanks Steve! Much much appreciated:)

  • @SaniGarba
    @SaniGarba 3 роки тому

    Thank you very much Bas. Is it possible to show how to deal with changing empty rows within the same scenario, i.e., changing column names/numbers and different number of empty rows from month to month? Thank you.

  • @tjeerdvandermeulen2123
    @tjeerdvandermeulen2123 2 місяці тому

    Does this also work when the position of the columns changes over the different files?

  • @ashishjuneja6574
    @ashishjuneja6574 2 роки тому

    OMG... exactly what I was looking for.
    Thanks a ton !!

  • @williamarthur4801
    @williamarthur4801 Рік тому

    I know you posted this some time ago, but i'll ask anyway, I just pasted the previous
    #"Removed Other Columns1" and expanded myself, but we both get the 'Transfrom File'
    Table.ExpandTableColumn(Custom1, "Transform File", Names ), and I'm not quite sure what it's referring to, if it's invoking the transform file function, what on? great video all same, I've only started following you recently, have you any on custom functions, my personal nightmare to get working how i want.

  • @yashaswinivijay
    @yashaswinivijay 6 місяців тому

    My power query doesnt automatically detect the first row as headers like yours does. Do you have any suggestions on how to rectify it?

  • @maurobassan9416
    @maurobassan9416 2 роки тому

    greaT video, does this work even in case some files have less columns?i'm gonna try onn my own now! :)

  • @pierre-nicolasbissonnet4198

    Amazing video - question : my transform file has actually a number in brackets next to it. So when apply your logic either with or without the number, I have a error that says ‘transform file unknown’. Would you have an idea on how to fix it ?

  • @codewalters
    @codewalters Рік тому

    This video helped me . Thank you so much.

  • @Alan.DL7
    @Alan.DL7 2 роки тому

    This is great Bass, much needed solution. I have this exact scenario with a small hiccup, for starter the files do not contain tables, so I am connecting to sheets, that is no problem however the issue is that all of them contains a blank row before columns names. When you create a list of tables to get the columns names 1 step after. When I do that I get just generic names (column 1, column 2, etc) because headers are not promoted. So, my question: How do you promote the headers inside each table before extracting the columns names of the combined files? I hope that makes sense.
    Thanks for your help!

    • @Prapti706
      @Prapti706 2 роки тому

      Same question for me. Thanks!

  • @padraichayes3836
    @padraichayes3836 3 роки тому

    Very helpful thanks a million for sharing! Find this technique is especially helpful instead of running loads of queries and appending each as it just hangs! :) Thanks again!

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      Great to hear! thx for watching Padraic! 😀

  • @narayanankannan3628
    @narayanankannan3628 Рік тому

    Your videos are a good reference point!

  • @DinoAMAntunes
    @DinoAMAntunes 3 роки тому

    Hi very good Tks a lot. You have any multiple columns example, with multiple table with cartesian-product ?

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      thanks! not yet, will put it on my list for next videos ;)

  • @danielvolgan
    @danielvolgan 2 роки тому

    Thanks man, but I have a situation where I have files w different number of columns that need to be unpivoted first, which will let them all w 3 columns and finally I can combine them. Any ideas? Thanks!

  • @Bob_flint
    @Bob_flint 3 роки тому +1

    Hi... great.. next coming up the next month you have also 5 column but then they have different header for the 'Product Cost' column.. instead of they type Product Code they didn't put the space 'ProcductCode'.. how do we combine both Product Code and ProductCode column so they merge together. - really appreciate the input

    • @Alan.DL7
      @Alan.DL7 2 роки тому +1

      Just follow his steps to get the column names. Once everything is done you will end up with the 2 columns: Product Cost and ProductCode, then just merge them using the Merge Columns in the transform tab and that should do.

  • @akashk4993
    @akashk4993 Місяць тому

    Just had a doubt what if the data we are getting from sharepoint is very large and complex transformation needs to be done as i am trying to add and create new custom column in power query instead of dax it is taking forever to do it what would be the best practices to do anything would help

  • @lenzypetty9371
    @lenzypetty9371 2 роки тому

    Excellent explanation as usual

  • @DanGibson-i4u
    @DanGibson-i4u 7 місяців тому

    Transform from Sample File -> Change number of columns in the M-code

  • @Karthikediga
    @Karthikediga 3 роки тому

    You have great talent. Bring this to Guy n Cube team. They will put up a video and send credit to you.

  • @joaorataoo
    @joaorataoo 3 роки тому

    Excellent Bas!!!

  • @kenharp
    @kenharp 2 роки тому

    Awesome video, thank you.

  • @bravucod
    @bravucod 3 роки тому

    Thanks! Can this be done with rows instead of columns?

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому +1

      new rows are automatically picked up when you refresh. You can just make a connection to a folder or files and thats it (you dont have to go through all of that effort shown in the video).

  • @Prapti706
    @Prapti706 2 роки тому

    Hi - what if you are trying to combine txt files together with different columns, but you have to promote the headers first to determine the column names?

  • @richardsonwg1
    @richardsonwg1 9 місяців тому

    Bas, thank you so much for this :)

  • @tubeitz
    @tubeitz 3 роки тому

    Excellent content, thank you

  • @PedroCabraldaCamara
    @PedroCabraldaCamara 3 роки тому

    Amazing video Bas. Thank you so much

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому +1

      thx for watching Pedro, appreciate it!

  • @fabianpetersen2452
    @fabianpetersen2452 2 роки тому

    Bas you the best, thank you 🙏

  • @SoNonWoo
    @SoNonWoo 2 роки тому

    what do we do for a sharepoint folder? Looks like my transform file is the one that's missing columns

  • @mirrrvelll5164
    @mirrrvelll5164 Рік тому

    Great one!
    You could do something like this to:
    List.Union (List.Transform( XYZ[Transform File], each Table.ColumnNames(_)) )

  • @anhnguyen-jv5vq
    @anhnguyen-jv5vq 2 роки тому

    Awesome! I can't thank you enough!

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      happy to hear that Anh! thanks for watching :)

  • @narendralv6379
    @narendralv6379 3 роки тому +1

    Brilliant!

  • @kebincui
    @kebincui 2 роки тому

    Thanks Brother. Your video is so clear and explained a complex operation in a clear way, your explanation on M code adjustment to accomodate the new columns is just like peeling the onion layer by layer; very organised and easy to understand and follow 👍👍👍👍; thank you so much for sharing your wisdom 🌹🌹

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      hi Kebin :) thank you for the feedback, I appreciate your kind words very much!

  • @DanielA-kl3sg
    @DanielA-kl3sg Місяць тому

    I have done this for 1 file. However, another excel work book in the same folder isnt showing when i try to select it on PI Nav, any ideas? (explained as simple as possible please)

  • @moustafaibrahim1485
    @moustafaibrahim1485 3 роки тому

    I need some help. I am connected with two sharepoint folders in power bi. One folder contains the sales data and the other folder contains the costs, which means I get every month the new data in two different tables. What I need to do is adding a column with the win for every month but automated. How can i realize that?

  • @Unbox747
    @Unbox747 2 роки тому

    Amazing

  • @rahulkumarjain2251
    @rahulkumarjain2251 Місяць тому

    When the number of files increases in the folder , everytime while refreshing data scans all the files which increases computation time....is there a way to scan only the latest files on top of the existing data ?

  • @jeffrhodes264
    @jeffrhodes264 Рік тому

    Everything seems to work until i get to the last step. I am working with 414 excel files pulling from a folder. It start to load the last applied step but then freezes on a file and then starts again and has bugged out several times for over an hour! I am not sure what to do hear. Is there another approach that can be applied in order for me to get all the data pulled in correctly?

  • @scottbaxter987
    @scottbaxter987 2 роки тому

    This worked really well from my first set of data, but then i went to repeat the steps for a second set that I need to combine in the same query and it didn't work. I got this error: Expression.Error: The column 'Transform File' of the table wasn't found.
    Details:
    Transform File

  • @fatbikejamie
    @fatbikejamie 3 роки тому

    Does this work on .XLSX file only? I'm trying to follow along with .CSV files (our primary data source) and it doesn't seem to bring in the extra columns...

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому +1

      Hi Jamie, this also works for .CSV files. However, you then still need to make the following changes:
      1) go to the transform file function and remove Columns=4,
      2) go to the transform sample file, source step, remove Columns=4,

    • @fatbikejamie
      @fatbikejamie 3 роки тому

      @@HowtoPowerBI omg... i am so trying this again tomorrow at work. I hope you have a super hero cape ready in case I actually get this to work... 👍😁

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      @@fatbikejamie I'm sure you'll get it to work ;) ... super hero cape? :p ... maybe I can borrow one from you?

    • @fatbikejamie
      @fatbikejamie 3 роки тому

      @@HowtoPowerBI OK - I had to make the two transform file changes FIRST. The column names handling is a little wonky but at least new columns appear - renaming them as they pop up is a VERY MINOR issue compared to having to rebuild the query ever time the customer "helps" with a new, random, file format! :)

  • @anirudhrao3e939
    @anirudhrao3e939 3 роки тому

    Fantastic!

  • @IconicLemon
    @IconicLemon 3 роки тому

    Thanks! Can this also be used if columns are removed? I would assume so.

  • @tinyentropy
    @tinyentropy 2 роки тому

    I have this problem with a .csv file which became extended with additional columns. The new columns will not be added to the data model. What can I do?

  • @marcuscrutchfield3992
    @marcuscrutchfield3992 2 роки тому

    What if youre importing from an Excel file with multiple sheets? How do you invoke a function before expanding?

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      I explain how to do that here ua-cam.com/video/L-Q5Vz1YEQQ/v-deo.html

  • @EvilClxwn
    @EvilClxwn 3 місяці тому

    Bas how can I get this working with a SharePoint folder connection? When I try it this way the last step just hangs when loading and times out?

  • @dhruvkapoor767
    @dhruvkapoor767 Рік тому

    Hi i am on Removed other column step i adeed new step For seeing columns on tables but for new file additional.column not showing up pls help

  • @ravi19990
    @ravi19990 2 роки тому

    What happens if we replace the first file to April month file in sample file?

  • @xodrinker
    @xodrinker 3 роки тому

    Neat, thx Bas.

  • @monster3bod
    @monster3bod 9 місяців тому

    This way is working with every new column ???? Right

  • @PythonWithJoe
    @PythonWithJoe 3 роки тому

    very helpful

  • @vishnuvardanatmakuri
    @vishnuvardanatmakuri 3 роки тому

    how to combine files with similar data but different column names? please help.

  • @SamehRSameh
    @SamehRSameh 3 роки тому

    Need use sumifs between 2 date and other argument by query

  • @abhishekawari919
    @abhishekawari919 Рік тому

    Nice❤

    • @HowtoPowerBI
      @HowtoPowerBI  Рік тому

      😊

    • @abhishekawari919
      @abhishekawari919 Рік тому

      @@HowtoPowerBI I have an problem that having inconsistence header in multiple woeksheets and thoes header we have map then consolidate. Can you please guide on this problem statement

  • @MrDhunpagla
    @MrDhunpagla 3 роки тому

    Hi, i am getting expression error with last column name as a new column added in source file. How can I manage it ?

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      Hi Dhun, could you tell me which error you get at which step. Make sure to double check that you refer to #"Removed Other Columns1" in the expand step -> Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Headers)

  • @soy34mb
    @soy34mb 3 роки тому

    Thanks! Nice hack

  • @philipmorgan2302
    @philipmorgan2302 3 роки тому

    Hi. I just tried this and I get the error message "Expression.Error: The column 'Transform File' of the table wasn't found.
    " any suggestions what is wrong? I note that my Transform File column has a (4) following it, is it this?

    • @philipmorgan2302
      @philipmorgan2302 3 роки тому

      at the first created custom step of the video @ 5:00

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      Hi Philip, yes that's it probably 🙂 . @ 5:00 you see the colum name for me is Transform File .. just check how it is named for you and adjust it accordingly.

    • @philipmorgan2302
      @philipmorgan2302 3 роки тому

      @@HowtoPowerBI I have not been able to get it to accept the name.

    • @ammosalmanac
      @ammosalmanac 2 роки тому

      @@philipmorgan2302 Remame it in all the steps.

    • @pierre-nicolasbissonnet4198
      @pierre-nicolasbissonnet4198 Рік тому

      @@ammosalmanac I have the same problem. Renaming does not work or using the name ‘transform file (4)´ does not work also. Shall I use ´ or ´´ or anything else ?

  • @monster3bod
    @monster3bod 8 місяців тому

    When i do it for one connection with excel files it worked great but i have two connections to a folder it wont work for another why it says tbasform file of the table wasn't found can any one tell me

    • @HowtoPowerBI
      @HowtoPowerBI  8 місяців тому

      Because for the second one it is not called transformfile but transformfile1 or 2 … so therefore it cant find it

  • @abubakrsaadmakyhoun7535
    @abubakrsaadmakyhoun7535 3 роки тому

    great

  • @junaid_2107
    @junaid_2107 3 роки тому

    How do we change back the datatype?

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      just select all columns and choose detect data type un der transform 🙂

  • @Prashantpatil-cq3yt
    @Prashantpatil-cq3yt 3 роки тому

    Bro you show us full video screen of powerbi desktop .. I think editing is bit different.....

  • @kavitasable9462
    @kavitasable9462 3 роки тому

    Could you please send these files.

    • @HowtoPowerBI
      @HowtoPowerBI  3 роки тому

      see download link in the description 😉

  • @OmkarUmbre
    @OmkarUmbre 2 роки тому

    Too many ads :(

  • @ravi19990
    @ravi19990 2 роки тому

    Place change your type of presentation. Very hard n difficult to look into that small portion of content