Using the Power Query Reference Feature to Reduce Query Dependencies

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

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

  • @OlegFortun
    @OlegFortun 4 года назад +1

    Thank you, great demonstration.

  • @allabout1135
    @allabout1135 3 года назад +2

    Just amazing!

  • @777tmack
    @777tmack 5 лет назад +1

    Simple yet awesome thanks!

  • @schajuli1991
    @schajuli1991 2 года назад +1

    I have loaded some .xlsx from a folder location in such a single source "master" table. I thought it might be smart to reference this table then in other tables as I need it multiple times. My motivation was that due to that the loading times might be improved as I just load it in the beginning.
    Well, it turns out that the same files are still loaded multiple times and this takes actually quite some time as the .xlsx files contain lots of data. So why is it atill laoding multiple containtimes and how can I prevent this?

    • @HavensConsulting
      @HavensConsulting  2 года назад

      Unfortunately with flat files there's no caching or optimization that happens. It does query it each time. Having the source query in this case just allows you the single point to make a change to the source location, or source type if needed.

  • @PardeepKumar-lq3wi
    @PardeepKumar-lq3wi 10 месяцев назад

    When you will refresh, wouldn't it still load from your main access database for each query like 7 times queries access db.
    You have brought convenience by defining to change connection only in main query but still the refresh issue and slowness will be there, what is solution to that?

    • @HavensConsulting
      @HavensConsulting  10 месяцев назад

      This was designed to allow for quick and easy source query updates from the developer. Not something specifically designed to speed up the refreshes in any way. One other option is to use a "source" parameter in each query as well, if you'd prefer not to use the reference feature. But that also wouldn't speed up the queries at all. The only thing that changes the speed of query refreshes is the number of applied steps that would be query folded. But that's a topic not in the scope of this particular video. I have other videos and streams that do discuss implications of that though. Hope this helps!

  • @johnskilly
    @johnskilly 3 года назад

    Thank you for this, but then what? How do you change the data source for this one query? Once all the queries point at this data source query, what do you point that data source query at?

    • @HavensConsulting
      @HavensConsulting  3 года назад

      That depends on what your data source is. There's over 100 connectors in Power Query. If the settings for the data source needs to change, or if the source needs to change entirely. E.g. SharePoint to SQL, etc. then you'd replace that "source query" with whatever new query and applied steps are needed for all the dependencies to fetch the same data at the same starting point from the new source.

  • @mshparber
    @mshparber 5 лет назад

    That’s interesting approach but 2 questions:
    1. If I want to change the access file - i can do it in Data Source and it will change it for all connections at once
    2. What about performance? Is referencing give us better or worse performance?
    Thanks!

    • @havenscr
      @havenscr 5 лет назад +2

      Hi Michael, by referencing and creating a single "source query" there is only one query pointing to the file location, allowing just one update if it needs to be changed. Otherwise if you had five queries all connected to the same location, but without a referenced source query. You'd need to update five source steps. Performance wise, it depends. Typically it should not have a performance impact. But depending on connection, transformations, etc... It might. Here's a great article that discusses that. blog.crossjoin.co.uk/2016/11/20/referenced-queries-and-caching-in-power-bi-and-power-query/

    • @mshparber
      @mshparber 5 лет назад

      Thanks!

  • @germanhenriquez24
    @germanhenriquez24 5 лет назад

    Can I select which tables use in the reference query?? in order to use only necessary tables for my model

    • @HavensConsulting
      @HavensConsulting  5 лет назад +1

      Hi there. Not sure I follow, you can right-click any query and select reference to reference that specific query. You can also toggle enable load to disable any queries that you don't want to load into the data model.

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

    How about performance? Does it reduce refresh time

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

      No difference for referencing queries since the underlying query being processed doesn't change. This is designed for query management, and easier updates in the future, and leveraging more repeatable logic between queries. :)

  • @rinaldobranquinho
    @rinaldobranquinho 4 года назад

    Is it possible to refer to a specific step of another query?

    • @HavensConsulting
      @HavensConsulting  4 года назад +1

      Good question, not using the reference option. That will only reference the last applied step of the other query

  • @jimmyni1983
    @jimmyni1983 5 лет назад +1

    Very Very useful! Thanks again @Reid

  • @adityakalra7383
    @adityakalra7383 4 года назад +2

    This video has enhanced my wisdom about Power BI,
    Also, I request Reid to please be a bit slow while speaking... U are the fastest of all ;)

    • @Ethan-dd4ln
      @Ethan-dd4ln 3 года назад

      Just put a playback speed to something smaller than 1.0.

  • @johnmatta9577
    @johnmatta9577 5 лет назад +1

    But that assumes all data are coming from the same source

    • @HavensConsulting
      @HavensConsulting  5 лет назад

      Hi John, that’s correct. This is designed to show you how to reduce the dependencies when obtaining multiple tables from a single data source.

    • @johnmatta9577
      @johnmatta9577 5 лет назад

      @@HavensConsulting Thanks Reid

  • @mujikupal3324
    @mujikupal3324 2 года назад +1

    nice

  • @stevennye5075
    @stevennye5075 4 года назад +1

    nice!

  • @2404Pepe
    @2404Pepe 3 года назад

    Great!!!!!!!