Pivot Two Columns to Multiple Columns with Power Query

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

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

  • @marjorieherrera3031
    @marjorieherrera3031 ปีที่แล้ว

    Thank you! This helped so much. For those who still get errors after doing this, check these:
    1. If two or more continuos rows in the column you want to pivot have the same name, for example "Tax" and "Tax", when you pivot the column, you will get an error. I had to go to the source and add a space after one of the words to make them different. Note that it doesn't matter if the rows are repeated in different instances, like this "Tax, Fee, Tax" it only happens when one is below or over the other. This will also happen if you have two or more rows in the column you want to pivot have blanks or nulls (Power Query sees them as repeated values).
    2. If you have nulls and you get an error saying that null can't be converted to number or something similar, then replace nulls with blanks (if that doesn't mess with your data in any way).

  • @wayneedmondson1065
    @wayneedmondson1065 2 ปีที่แล้ว +2

    Nice one Doug! Actually, in your example, you can skip adding the Index column and do the conditional column against the Amount column, pulling the Invoice number since it is unique. Then, you can fill down and complete as demonstrated. It just saves a step or two if you have access to something that is already unique in one of the existing columns, then no index is needed. Great example! Thanks for sharing it :)) Thumbs up!!

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว +1

      Hi Wayne good point! Thanks for adding knowledge to the thread!

  • @JJ_TheGreat
    @JJ_TheGreat 2 ปีที่แล้ว

    Wow! Awesome video! I never knew you could do that... And it is so simple! 🙂 Thank you.

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      Glad you liked it!

  • @florincopaci6821
    @florincopaci6821 2 ปีที่แล้ว

    Thank you! Very useful!

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว +1

      Thanks, glad u thought it useful!

  • @zahoorsarbandi2982
    @zahoorsarbandi2982 2 ปีที่แล้ว

    very informative and useful. Thanks

  • @thghtfl
    @thghtfl ปีที่แล้ว

    And still, I can not keep two or more columns and pivot all the remaining columns. It appears pivoting works for a single column only.

  • @romantuero2621
    @romantuero2621 2 ปีที่แล้ว

    How do you pivot a column correctly when there are repeated column headers in it? For example, when you added fee, what if I had two rows with the title "fee"? Thanks.

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      having multiple rows as a column header will not work. First row should be the header row so if you can removed the additional header row or incorporate the text into the first row that would be optimal.

  • @shahzadhabib6929
    @shahzadhabib6929 2 ปีที่แล้ว

    How/where can i learn Power Query please?

  • @MrKamranhaider0
    @MrKamranhaider0 2 ปีที่แล้ว

    Amazing working

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      Thanks for the comment!

  • @MonicaFrieson
    @MonicaFrieson ปีที่แล้ว

    I am totally lost. When I try this I get an error 'DataFormat.Error: We couldn't convert to Number' but my column is already formatted as a number. What is it trying to convert? So frustrating!

  • @entertainmentgalaxy971
    @entertainmentgalaxy971 2 ปีที่แล้ว

    Nice Trick.

  • @vinhwizard
    @vinhwizard 2 ปีที่แล้ว

    Nice! Sir

  • @shoaibrehman9988
    @shoaibrehman9988 2 ปีที่แล้ว

    Awesome