Power Query - Dynamic Range Detection

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 63

  • @IrfanChanna
    @IrfanChanna 10 วันที่ผ่านมา +3

    I used to find Power Query quite challenging, but after watching your videos, it now feels so much easier.

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      @@IrfanChanna Wow! That is HIGH praise. I’m so glad to hear it has helped. Thanks for watching.

    • @utkur765
      @utkur765 วันที่ผ่านมา

      @@bcti-bcti Hi, why don't you use second column of the source file and simply filter out all blanks? I think query will be shorter and simpler.

    • @bcti-bcti
      @bcti-bcti  วันที่ผ่านมา

      @@utkur765 I did it the way in the video because I wanted a way that works in virtually every scenario. Your suggestion would be MUCH easier in this specific scenario but would fail if the other column didn't have the blank (null) cells to trigger from. It's good to see you thinking of a better way. Thanks for watching and contributing to the conversation.

  • @benndii
    @benndii 10 วันที่ผ่านมา +3

    I only use Power Query for work, but I enjoy watching your videos in my free time. Could be because you are such a good story teller. 🧡

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      Wow, thank you! That is a great compliment. I appreciate your viewership.

  • @SaniGarba
    @SaniGarba 10 วันที่ผ่านมา +3

    I’ve viewed several tutorials regarding dynamically identifying header rows. I can tell you this, to me, is the best solution of its category. To make it complete, kindly create a function that can be applied to multiple files in a single folder at one go.
    Well done.

    • @rauljimenez5485
      @rauljimenez5485 9 วันที่ผ่านมา

      I was going to say exactly the same!!! This is very simple and yet powerful!!

    • @bcti-bcti
      @bcti-bcti  9 วันที่ผ่านมา

      Thanks for the compliment!

    • @bcti-bcti
      @bcti-bcti  9 วันที่ผ่านมา +1

      I'm working on a version that will process a series of files from a folder. As soon as I have it finished, I'll be posting an update. Thanks for watching.

    • @rauljimenez5485
      @rauljimenez5485 8 วันที่ผ่านมา

      @@bcti-bcti transformation of a nested table? That's how I do it, I do the transformation in 1 table, then connect to the folder and add a column with a transformation of the nested tables.

  • @IvanCortinas_ES
    @IvanCortinas_ES 10 วันที่ผ่านมา

    Excellent dynamic solution!! Thank you very much for sharing!!

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      Thanks. I think it's pretty cool.

  • @kkravch
    @kkravch 9 วันที่ผ่านมา

    Great tutorial as usual. Appreciate your ability to explain complex concepts in simple terms. Happy New Year!

    • @bcti-bcti
      @bcti-bcti  7 วันที่ผ่านมา

      Thank you for the kind words. Happy New Year to you, too.

  • @boissierepascal5755
    @boissierepascal5755 10 วันที่ผ่านมา

    Very clear explaination.

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      Thank you for the kind comment. I try to be as clear as possible.

  • @paintsey
    @paintsey 10 วันที่ผ่านมา +1

    Great vid. I would just filter on say the date column to blank to keep my query dynamic.

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา +1

      That would likely work for this particular file, but the solution was intended for more unpredictable scenarios. But I agree, in this case, your solution is easier. Thanks for watching.

    • @paintsey
      @paintsey 10 วันที่ผ่านมา +1

      @bcti-bcti oh yeah in the context of other files, your route is much more reliable.

  • @arunsubramanian2779
    @arunsubramanian2779 10 วันที่ผ่านมา

    You're the best! Keep up the good work man!!

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      Thank you! I'll try my best to keep up the high expectations.

  • @hichamhadj9640
    @hichamhadj9640 9 วันที่ผ่านมา

    Yet another great video. You sir are a genius, thanks you for making learning excel this fun

    • @bcti-bcti
      @bcti-bcti  9 วันที่ผ่านมา

      "Genius"? I'll take that and put it on my resume now that I've been officially recognized as such. Thank you, kind sir. 😁

  • @iankr
    @iankr 10 วันที่ผ่านมา

    Great techniques; many thanks.

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      You're very welcome!

  • @kebincui
    @kebincui 10 วันที่ผ่านมา

    Great video as always. Thanks for sharing

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      My pleasure. Happy to share.

  • @truewiking
    @truewiking 7 วันที่ผ่านมา

    This is brilliant, Thank you very much

    • @bcti-bcti
      @bcti-bcti  7 วันที่ผ่านมา

      You're very welcome!

  • @michaelt312
    @michaelt312 10 วันที่ผ่านมา +4

    Another great video. Could you continue this in a way to combine all .csv files in the folder? So both in this particular instance.

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา +4

      @@michaelt312 That’s a GREAT IDEA!!! I’ll start testing first thing in the morning. I’ll let you know what I come up with. Thanks for the idea.

    • @kndeepak
      @kndeepak 10 วันที่ผ่านมา +1

      Certainly can. Make the code in this video as a function that takes a table argument. Add a column to each file in the folder using the function then use table.combine on the new column to create a combined table

  • @baskis69
    @baskis69 10 วันที่ผ่านมา

    Very useful, thanks for sharing. Happy New Year!

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      You're welcome. Happy New Year to you, as well.

  • @celestebenitez6688
    @celestebenitez6688 9 วันที่ผ่านมา

    Amazing! Thanks so much!!!
    Happy New Year to you and yours.

    • @bcti-bcti
      @bcti-bcti  9 วันที่ผ่านมา

      It's my pleasure! Here's to a great new year.

  • @Luciano_mp
    @Luciano_mp 9 วันที่ผ่านมา

    Good solution, great! Thanks.

    • @bcti-bcti
      @bcti-bcti  9 วันที่ผ่านมา

      You’re welcome. Thanks for watching.

  • @adamtabor6754
    @adamtabor6754 6 วันที่ผ่านมา

    Perfect solution.

    • @bcti-bcti
      @bcti-bcti  5 วันที่ผ่านมา

      Thanks. Be sure to read the comments. Many viewers are posing some FANTASTIC tips for making this even better. Thanks for watching.

  • @Blueboy30
    @Blueboy30 8 วันที่ผ่านมา

    Well explained.

    • @bcti-bcti
      @bcti-bcti  7 วันที่ผ่านมา

      Much appreciated. I’m glad it made sense.

  • @chrism9037
    @chrism9037 10 วันที่ผ่านมา

    Genius, thank you!

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา +1

      Now it's time for YOU to look like The Genius. Thanks for watching.

  • @rayt61
    @rayt61 10 วันที่ผ่านมา

    Very nice tip, that you!

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      You're welcome!

  • @JM-mb6tf
    @JM-mb6tf 9 วันที่ผ่านมา

    Hi Brian. Thank you very much for another educative and great video.
    Question: PQ / M-code contains like 800 different functions. Where should I start ?? I know where I want to go and what the result of the import should be, but I have not the slightest clue which function I should use.
    I have studied the m code like you do in the videos - try something "automatically" and then tweak the code provided by the program but, well, I let´s say that my end results are not as good as yours.
    As always - thank you for your videos and dedication. I, and many more are very greatful for the time and work you spend on this.

    • @bcti-bcti
      @bcti-bcti  9 วันที่ผ่านมา

      I think we're all in the same boat, my friend. For me, it usually comes down to a LOT of Googling, experiment, and a dash of luck. With time, experience, and a TON of patience, you begin to get a feel for things. There's no quick answer to something as vast and powerful as the M language. I wish I had a better "quick fix" answer for you, but I still consider myself a "beginner" compared to some of the true "M Code Gods" out there. We'll do the best to support one another. Thanks.

  • @yousrymaarouf2931
    @yousrymaarouf2931 10 วันที่ผ่านมา

    Fantastic

    • @bcti-bcti
      @bcti-bcti  10 วันที่ผ่านมา

      Thank you! Cheers!

  • @boissierepascal5755
    @boissierepascal5755 4 วันที่ผ่านมา

    Another way to select the good range of values in one go that might please you.
    // Select range of values
    Find_Range = Table.Range(Source, List.PositionOf(Source[Column1],"Sales Representative"),List.PositionOf(Source[Column1],"Total Sales")-List.PositionOf(Source[Column1],"Sales Representative")),

    • @bcti-bcti
      @bcti-bcti  2 วันที่ผ่านมา +1

      I really like that solution. I'm a big fan with consolidating multiple small steps into a single, larger step. I've added that technique to my "bag of tricks". Thanks for sharing!!!

    • @boissierepascal5755
      @boissierepascal5755 2 วันที่ผ่านมา

      @bcti-bcti thanks for your wonderful tutorials.

    • @bcti-bcti
      @bcti-bcti  2 วันที่ผ่านมา

      @@boissierepascal5755 My pleasure. Than YOU for watching.

  • @attakbeer1
    @attakbeer1 9 วันที่ผ่านมา

    Great video. Thanks for sharing. Please can these methods also be applied to other source files like PDF

    • @bcti-bcti
      @bcti-bcti  7 วันที่ผ่านมา

      I would think this technique could be applied to any data source once the data has been brought into Power Query. Thanks for watching.

  • @Blueboy30
    @Blueboy30 8 วันที่ผ่านมา

    Can you do a version of this if the information in a column changes position? eg. column 1 has sales next time it appears in column 2. PDF credit card statements do this.

    • @bcti-bcti
      @bcti-bcti  7 วันที่ผ่านมา

      I would assume that you would have to perform some sort of pre-test to detect the key-word in 1 of 2 columns, then perform the detection steps accordingly.

    • @Blueboy30
      @Blueboy30 6 วันที่ผ่านมา

      @@bcti-bcti Thanks and I'll try that.

  • @flaviogarlatticosta
    @flaviogarlatticosta 7 วันที่ผ่านมา

    Prosperous 2025

    • @bcti-bcti
      @bcti-bcti  7 วันที่ผ่านมา

      @@flaviogarlatticosta Thank you. You as well.