XLOOKUP v Power Query v Power Pivot in Excel

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 67

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

    Great tips Wyn!

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

    7:17 Interesting, I look forward to that video! 😀

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

    I love the old Power Pivot. I believe that the tool emerged at a time of transition and was never realistically taken into account by companies. Without a doubt, Power Query is a very powerful tool, present and future of our lives ;)

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

    Great video... this shows the benefits of all three methods within Excel.

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

    I learned a lot for your videos, and after learning for few days, i can already start implementing power Query and power pivot for my data. I have a question though, i have 7 tables that connects to each other, however why is it that only 3 tables shown in the field item list of my pivot? how do i get the rest also in? thanks in advance for your advice

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

      Check the top of the Pivot Table field list and you will see Active and All. Click the All option

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

    Great tips! Thanks!

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

    6:27 Yeah, you have to make sure you have a list of unique values before you do a merge queries with Power Query!

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

      Totally

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

      Depends what you want. If you have a legit many to many relationship then PQ is providing the correct results

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

    Another good use case for Power Query is when you're merging tables from an external source that is subject to change (i.e. have more and more records added as time goes by). Simply refreshing everything will add the new rows to the table you've loaded to as you go. With XLOOKUP, if you aren't necessarily using Excel Tables, you'd have to manage your formulas as the data sets update.

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

    Nice comparison, Wyn.
    BTW: in your scenario it suffices to refresh the Power Pivot table, just like you would an output table.

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

    This is brilliant as ever. Thanks

  • @russ6010
    @russ6010 7 місяців тому +1

    Best channel on UA-cam

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

    3:53 But how do you do that? Is it in the settings somewhere?

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

      Go to Data on the top ribbon...then follow his instructions

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

      Get Data-> Query Options -> Data load-> Specify custom default load settings & uncheck to load to boxes

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

    You can add tables to data model without query them in power query. It avoids to duplicate the tables in pivot table panel.

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

      You can Jose, but I wouldn't recommend that approach as Power Query adds a lot of robustness and flexibility if things change in the future. The "Add to data model" option is what we used to have to use before Power Query "load to data model" was an option.
      I totally agree that showing the non loaded tables in the Power Pivot Fields Panel is horrible and something the Excel team should disable. I (and other MVPs) have flagged this numerous times to them.

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

    when i try to do a 2-way Xlookup but with tables on different sheets within the same file or from 2 different files, it doens't work. it only works if both tables are on the same sheet. is there a fix?

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

      Not sure what you mean by 2 way XLOOKUP. The sheets the tables are on shouldn’t matter for XLOOKUP

  • @1976misspink
    @1976misspink 2 роки тому

    I wish power query could do many to many relationships. how do you get around this?

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

      Power Query will create a combined output of the 2 tables with the double ups that appear as per my video. PowerPivot can’t create many to many. Normally creating a bridging table is the best approach.

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

    How to address in power query one to many relationships?

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

      Can you explain a bit more? A power query merge will bring in all matches from the many side

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

      already have.. watch it from some of your Videos.. Thanks a lot..

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

    I have large raw data...approx 19lakh raw...when I am going to use power pivot from power query that data..then only count value shown.i found error when conver to average or sum value.i already remove null value and data convert to whole number.
    Any thing else need to do?
    I am using Excel 2016 inbuilt power query.

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

      If the column you are averaging or summing is set to a whole number data type then it should work. Are you writing a DAX measure for your calculation?

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

      @@AccessAnalytic no dax.simple raw data...that convert into whole number(kpi value) ...in raw data some null and Nan value there so just filter out in power query.after power query going for power pivot.i need district wise kpi so district wise count shows but that data not convert into some our average value.

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

      Most likely reason is other non-number value in your column. Also I strongly recommend you use DAX for all displayed values and aggregations to future proof your report

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

      @@AccessAnalytic thank you for valuable reply.
      I have learn lots of from your channel.🙏

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

      I have experienced a similar problem with Excel 2016, it only seems to understand certain data-types - in my case it refused to accept a currency type as a number and would not accept it even after changing the type to number in Excel I have even had problems with decimal number and integer type not being recognised. I have also had problems in 2016 with excel not understanding date data types. I think it may just be a problem with Excel 2016 as I haven't run into this problem with any of the later versions of Excel. You Will also find that Excel 2016 sometimes has problems with data imported from Sage etc. All very annoying when you are working with extremely large datasets that require manipulation before loading to Excel.

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

    Thanks, sharing

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

    Surely the sum of cost should show the total cost per item,? It would have been fairly easy to multiply the units by the cost in either Power Query or Power Pivot.

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

      Hi Roy, yep, wasn’t the aim of the video but a SUMX function would allow me to calculate units x cost on a row by row basis to give total cost

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

      Yours and another comment has prompted next week's video 😁

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

      @@AccessAnalytic I will look forward to seeing it :)

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

    Amazing channel.

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

    Power Pivot doesn't handle many to many relationships well. Power Query does. Also PQ lets you use many different join types -- the anti join is good for finding differences between tables.

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

      Yep, Many to Many is not allowed in Power Pivot. I’m a fan of the anti join 😀

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

    Nice 👍, however....
    I don't understand why the "Sum of Cost" in the Power Pivot isn't actually a Sum? If you did the XLOOKUP or Power Query merge and had a Pivot Table it would have 3 for Apple, 6 for Banana etc. Surely this could be a legitimate use case and the Power Pivot option just looks wrong and is not the same result.
    It's like it hasn't really joined them as if I did this via a normal database join, I'd get a Sum.

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

      Hi, I wasn't really thinking about demonstrating Total Cost in this video but I would need to write the following DAX formula to get the total
      =SUMX( tblData, tblData[Units] * RELATED(tblLookup[Cost] ) )
      This function creates a temporary column of Units x Price and then SUMs it.

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

      @@AccessAnalytic thanks for the extra tip. Still seems strange behaviour that you need to do that.

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

      @@iduncanw - you've prompted next week's video 😁

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

      @@iduncanw new video: ua-cam.com/video/AAgzIXWgASg/v-deo.html

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

    Hello this is awesome 😎😎😎

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

    GENIUS

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

    I don't understand - I thought you were going to attempt the same process (to get the same result) through PowerPivot as the XLOOKUP and Power Query merge queries. Couldn't have you done that, in order to get the Item, Date, Units, Name and Cost together into 1 table, like you did before? You did not show how we could bring in the attributes from the other table in order to accomplish this task - as an alternate method.

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

      At 9:49 I’ve created a pivot table containing elements from both tables. This is the beauty of the Power Pivot approach is that you only have to display what you need

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

    In my opinion XLOOKUP and PowerQuery are the two ways to combine tables, whereas Powerpivots are summarising table data. Essentialy two different things.

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

      The end result is the key here. If you want to report sales by region name and all you have is region ID, but in another table is ID and region name , then all 3 approaches are valid options depending on your reporting need.

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

      @@AccessAnalytic You are correct but I think that's not where my focus was, so let me try to put it in another way: with XLOOKUP and PowerQuery you are combining tables, with pivots you are combining AND summarising them. In one of the comments here I saw confusement about the fact that your pivot had different numbers. Maybe good to explain this summarising aspect of pivots.

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

      Fair point, thanks