Difference between duplicate and reference a query in Power Query

Поділитися
Вставка
  • Опубліковано 3 лис 2019
  • In this video I am going to show you the difference between duplicate and reference a query in Power Query and what you can use them for.
    Here you can download all the pbix files: curbal.com/donwload-center
    SUBSCRIBE to learn more about Power and Excel BI!
    / @curbalen
    Our PLAYLISTS:
    - Join our DAX Fridays! Series: goo.gl/FtUWUX
    - Power BI dashboards for beginners: goo.gl/9YzyDP
    - Power BI Tips & Tricks: goo.gl/H6kUbP
    - Power Bi and Google Analytics: goo.gl/ZNsY8l
    ☼☼☼☼☼☼☼☼☼☼
    POWER BI COURSES:
    Want to learn Power BI? How about you take one of our courses? Here you can find the available courses:
    curbal.com/courses-overview
    ☼☼☼☼☼☼☼☼☼☼
    ABOUT CURBAL:
    Website: www.curbal.com
    Contact us: www.curbal.com/contact
    ************
    ************
    QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here:
    Linkedin ► goo.gl/3VW6Ky
    Twitter ► @curbalen, @ruthpozuelo
    Facebook ► goo.gl/bME2sB
    #CURBAL #SUBSCRIBE

КОМЕНТАРІ • 44

  • @OzduSoleilDATA
    @OzduSoleilDATA 4 роки тому +10

    Very good lesson. Knowing the difference between referencing and duplicating queries is so handy.

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Hi Oz!!! 👋
      It is, isnt it?

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

    Which is efficient? If we don't look at the reasons for it. As both pull data twice from source

  • @romankultajev3660
    @romankultajev3660 4 роки тому

    As usually - saved my day! Thank you!

  • @filipeoliveira5489
    @filipeoliveira5489 Місяць тому

    Awesome! Thank you!

  • @RipRoarLB
    @RipRoarLB 3 роки тому

    Thank you for the concise explanation and demonstration!!

  • @soy34mb
    @soy34mb 4 роки тому +4

    As always, you open my mind for new things to do with your simple examples, Thanks!!!

    • @CurbalEN
      @CurbalEN  4 роки тому

      Wonderful, glad to hear!
      /Ruth

  • @IlariaLongoDorni
    @IlariaLongoDorni 4 роки тому

    thank you! very useful

  • @robertotm8710
    @robertotm8710 4 роки тому

    Gracias Ruth! This is very useful.
    Just to make sure - if I duplicate a query, and then I delete a column from the original table, this will not affect the duplicate table. However, this would add processing time as the table needs to be loaded twice?

  • @allabout1135
    @allabout1135 3 роки тому

    My dear Ruth, I wish I would see this video some weeks ago. One of my analytical tools would be way easier. Thanks, will use in future.

    • @CurbalEN
      @CurbalEN  3 роки тому

      I rebuild my models all the time, it comes with the territory 😂😂

  • @ayobamiologun9184
    @ayobamiologun9184 4 роки тому

    Very useful tip. Thank you Ruth.

    • @CurbalEN
      @CurbalEN  4 роки тому

      Thanks Ayobami!
      /Ruth

  • @VinceM797
    @VinceM797 3 роки тому

    Well explained, thank you!

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

    good video thank you

  • @Graylinepartners
    @Graylinepartners 4 роки тому

    Thank you for your great content. I like your easygoing manner of presenting as well. Please keep up your great work. Question: Even if I use "Reference" instead of Duplicate, Power BI makes an additional call to the source data. Does this happen in your example as well? The Products table calls to the source and then the table referencing the Products table also calls to the source?

    • @diegoj9056
      @diegoj9056 3 роки тому

      Yes, reference and duplicates call the source. Some sources allow catching the referenced query if you deactivate parallel processing

  • @asutoshkumar1793
    @asutoshkumar1793 4 роки тому

    the best explanation

  • @denpries
    @denpries 4 роки тому +1

    @ruth, what I am more curious about, is what the difference is in terms of data load / performance. So imagine a source table 'product' and then, for the sake of example, 5 other tables that start with a reference =producttable after which all 5 have different steps. Is this better performance wise than just duplicating the producttable 5 times and applying seperate steps?
    Of course, from maintenance perspective the reference approach is better here, but that is another story

    • @CurbalEN
      @CurbalEN  4 роки тому

      Great question!
      In my mind as Power Query is reading from a previous Query when referencing, it should be faster than with duplicate, as it can skip all steps and load the table already pre-cleaned, but the only way to know for sure is to test that hypothesis!!
      /Ruth

    • @nassu82
      @nassu82 4 роки тому

      @@CurbalEN Yes, it will be faster but, RAM&CPU consumption will be huge with a large volume of data! It can be problematic. ;)

  • @baogiapv
    @baogiapv 4 роки тому

    Hello, thanks for the video. From performance point of view which one would you suggest?

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Reference as your tables will load only once.
      /Ruth

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

      @@CurbalEN I believe this is incorrect. It loads twice even with reference

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

    Hi!
    I've found the ''reference'' option this week and I wanted to ask you something.
    There is any difference between ''Duplicate'' and ''Reference'' if I just want to take the Fact Table and create some extra ''copies'' to build my dimensional tables which only pick some columns from the fact table that I could ''Duplicate or reference''..
    I don't know if there is any difference in term of performance or if it's the same ?

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

      It will be the same. Power bi still makes 2 calls even though you’re referencing. You would think it would only load the primary table from the data source but it loads twice

  • @victor8068
    @victor8068 3 роки тому

    thx!!

  • @shoaibrehman9988
    @shoaibrehman9988 4 роки тому

    Hi Curbal
    Your channel is very fruitful but there is separate section or playlist for power query videos. Please do it

    • @CurbalEN
      @CurbalEN  4 роки тому

      There is one already, it is called power query:
      m.ua-cam.com/play/PLDz00l_jz6zxF_OSmQhWBCVmQOaROoxWj.html
      /Ruth

  • @alejandrogerardofloresbard5601
    @alejandrogerardofloresbard5601 4 роки тому

    Thxs a lot!!!!

    • @CurbalEN
      @CurbalEN  4 роки тому

      You welcome !!
      /Ruth

  • @papachoudhary5482
    @papachoudhary5482 4 роки тому

    Thanks! Madam

    • @CurbalEN
      @CurbalEN  4 роки тому

      My pleasure 😇
      /Ruth

  • @stevennye5075
    @stevennye5075 4 роки тому

    well done

    • @CurbalEN
      @CurbalEN  4 роки тому

      Thanks Steven!
      /Ruth

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

    "sometimes you want, sometimes you don´t" :P. Thanks for the vid.

  • @EricaDyson
    @EricaDyson 4 роки тому

    Alles ist klar!

  • @SANJIVRAI6693
    @SANJIVRAI6693 4 роки тому

    Even the Reference Table fetches the data again, so its still getting the data twice

    • @CurbalEN
      @CurbalEN  4 роки тому

      Sure, but the data is getting in the reference table already cleaned (I think), so it should be faster.
      /Ruth