Power Query Multi Column Data - Best In Class Challenge

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

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

  • @thebhaskarjoshi
    @thebhaskarjoshi Год назад +5

    It was amazing solution you provided, for the first time saw the real-life use case of “Removing Alternative Rows” and “Merge Queries” to itself. And the filtering data using "Data Type" technique was also new for me.

  • @zzota
    @zzota Год назад +4

    I'd never thought of merging a query with itself. Very cool.

  • @zro.tolerance
    @zro.tolerance 10 месяцев назад +1

    Thanks for this...i have a similar problem and will use this technique

  • @kebincui
    @kebincui 9 месяцев назад +1

    Super 👍 Thanks Wyn for this mind-blowing video. Looking forward to more videos like this 🌹

  • @gospelmoto2833
    @gospelmoto2833 11 месяцев назад +1

    Wow! mind blowing. I didn't know that. Many Thanks!

    • @AccessAnalytic
      @AccessAnalytic  11 месяцев назад

      Glad to help you learn something new

  • @ohdjrp4
    @ohdjrp4 Год назад +1

    This is so good! Thanks!

  • @apostolos55goulandris97
    @apostolos55goulandris97 Год назад

    Great Job, Thanks Wyn
    One small notice on the 2nd part (no merge or dbl-grouping):
    let
    Source = Results,
    #"Grouped Rows" = Table.Group(Source, {"Date", "Name"}, {{"Avg of Mark", each List.Average([Mark]), type nullable number}}),
    #"Sorted Rows" = Table.Sort(#"Grouped Rows",{{"Date", Order.Ascending}, {"Avg of Mark", Order.Descending}, {"Name", Order.Ascending}}),
    #"Multiplied Column" = Table.TransformColumns(#"Sorted Rows", {{"Avg of Mark", each _ * 1, type number}}),
    #"Removed Duplicates" = Table.Distinct(#"Multiplied Column", {"Date"})
    in
    #"Removed Duplicates"
    If we ommit the #"Multiplied Column", then the #"Removed Duplicates" doesn't work as expected: Instead of keeping the 1st items it keeps some random items, thus ignoring the sort. Like if sort is visible but has not affected the data yet. Some work on the data solves this. But this is my humbble explanation, any real insight would be appreciated
    Thanks😊

    • @AccessAnalytic
      @AccessAnalytic  Год назад +1

      Hi, sorry for the long delay in response, I missed noticing this one.
      There is a “bug” in power query where the sort step gets ignored in certain circumstances. The fix is to add an index step immediately after sort or wrap in a Table.buffer

  • @themolestones
    @themolestones Год назад +2

    Many thanks, Wyn, I'm learning a lot from your vids. Is there any chance to send a possible future challenge? Thanks in advance for your time.

    • @AccessAnalytic
      @AccessAnalytic  Год назад +1

      Sure - send to info@accessanalytic.com.au
      ( no promises I’ll use it though 😊 )

  • @warrennalty6599
    @warrennalty6599 13 дней назад

    VBA could apply the range name to worksheet.usedrange object.

  • @7213261
    @7213261 Год назад +1

    Thanks!

  • @mirrrvelll5164
    @mirrrvelll5164 Год назад +1

    Great video as usually! But that neat trick with type.datatype....damn didnt know it =)) very very useful tricks!!!

  • @navedsaiyed9881
    @navedsaiyed9881 Год назад +1

    Very informative on how to clean messy data without converting into a table also how to rearrange the data in power query for having refined data.I have a kind similar sheet but little bit more messy will try on it...........😁

  • @zachg.9208
    @zachg.9208 Год назад +1

    Fun, usefull, thank you. By the way, today are you using a dvorak layout?? XD

  • @naushad123
    @naushad123 Год назад +1

    very informative

  • @ezelkarlkl1284
    @ezelkarlkl1284 Год назад +1

    What can I say ? :)) Perfect !! Thank you so much..

  • @shrikantbadge3978
    @shrikantbadge3978 Год назад +1

    beautiful

  • @ibrahimnajjar7351
    @ibrahimnajjar7351 Год назад

    Great video, thanks Wyn!
    What if I needed to load two queries in the same sheet on top of each other in the same sheet, is there a way to prevent the error of one of them going over the other?

    • @AccessAnalytic
      @AccessAnalytic  Год назад +1

      I just tested and it works if both tables have same columns but otherwise it fails. Not something I'd recommend doing if you can avoid it. Are you able to append the tables in Power Query instead? or load side by side?