Microsoft Power Query: Remove empty columns dynamically!

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии •

  • @Catloaf-0
    @Catloaf-0 12 дней назад

    This is awesome, it removes a lot of manual editing I have to do when people feed me data with blank columns in random spots every month that I then have to remove later. Thanks!

    • @theDataCorner
      @theDataCorner  9 дней назад

      Glad to hear it helps you save time!
      Similar result can be achieved through python pandas, especially if the dataset is big, which power query is slow to handle.

  • @j_orpz
    @j_orpz 4 месяца назад

    Excellent solution - this saves me a ton of time!

    • @theDataCorner
      @theDataCorner  4 месяца назад

      Thank you, I'm glad you found it helpful.
      Make sure to check out other videos and leave feedback.

  • @Timbollew
    @Timbollew 5 месяцев назад

    Good solution. If you want to remove just blank columns you could also transpose then just apply the Remove Rows>Remove Blank Rows which results in a cleaner formula. I do like the flexibility of your solution though to remove columns with only 1 entry.

    • @theDataCorner
      @theDataCorner  5 месяцев назад

      Great idea, Tim, Thank you.
      And make sure to check out my other videos on the channel as well.

  • @ivandanielacerogonzalez4798
    @ivandanielacerogonzalez4798 8 месяцев назад

    Great solution! Just wondering, what would you recommend if my dataset exceeds the column limit? Asking because I'm working with a dataset with +80k records and need ideas. Thanks!

    • @theDataCorner
      @theDataCorner  8 месяцев назад +1

      Hello Ivan,
      Thank you for the positive feedback, it means a lot.
      For dataset with 80k+ rows, I would recommend using either R or python. R I have observed to be significantly faster in loading data compared with python pandas, you can try out both if you need more help, leave a comment.

  • @EvanGibbs-z4k
    @EvanGibbs-z4k 5 месяцев назад

    Good solution, except you lose the column headers. Is there a way to do this without having to rename every column back to what it was?

    • @theDataCorner
      @theDataCorner  5 месяцев назад

      Thanks Evan, let me look into it and get back to you.

    • @ramisaahmed6903
      @ramisaahmed6903 4 месяца назад

      Hi, this is also what I am curious about? Everything else works fantastically, but I do need to keep my headers.

    • @ramisaahmed6903
      @ramisaahmed6903 4 месяца назад +2

      After playing around with it, if you demote the columns (select the Use Headers as First Row option), then do everything in the video, and then promote the columns (Use First Row as Headers) you'll keep your headers!

    • @theDataCorner
      @theDataCorner  4 месяца назад +1

      Thank you Ramisa, thats a great solution.
      I found a workaround but your solution seems much better and elegant, appreciated!

    • @ramisaahmed6903
      @ramisaahmed6903 4 месяца назад

      @@theDataCorner Happy it worked out :)