• Zur Hauptnavigation springen
  • Zum Inhalt springen
  • Zur Seitenspalte springen
  • Zur Fußzeile springen

THE SELF-SERVICE-BI BLOG

Wir lieben Microsoft Power BI

  • Videokurse
    • Coming soon!
  • Live Online Power BI-Schulungen
  • Beratung
    • Was ich für Dich tun kann
    • Showcases
  • Kunden
  • BLOG
    • Business Topics
    • Technical Topics (english)
    • Tools
  • Podcast
  • Kontakt
  • Über

Technical Topics (english) / 11. März 2019

Join types in Power Query – SEE how it works

„Merge queries is one way to combine queries (or even different tables within the same query) in Power Query/M. This topic has already been extensively written by (among others) Jason Thomas, Reza Rad and Hans Peter Pfister and I can only recommend you to read these articles. I don’t intend to copy/repeat their contents in this article. So why write a new article on this topic?
Recently I stumbled across a very interesting project from the R-Community. This project created animated GIFs that animate the different join types, which in my opinion greatly improves the understanding of the join. Although this project is dedicated to learning join types in R, I took the liberty of borrowing this great output for learning in the Power BI community as well. Thanks to Garrick Aden-Buie for creating these great animated GIFs.

I am pretty sure this will help beginners to understand and trainers to train. Have fun.

Left Outer Join (all from first, matching from second)

Left Outer Join, Power Query, Power BI
Left Outer Join

Left Outer Join, when there is more than one match

In the community there are many comparisons of the Left Outer Join in Power Query with the VLOOKUP in Excel. Even if this idea may help the confirmed Excel user to find his way around, this comparison is still misleading. Why? Well, the VLOOKUP always searches for the FIRST match in the right table and therefore never changes the number of records in the result table, compared to the original left table. The Left Outer Join, on the other hand, does this if more than one match is found in the right table. The animated GIF illustrates this very impressively.

Left Outer Join with more than one match, Power Query, Power BI
Left Outer Join with more than one match

Right Outer Join (all from second, matching from first)

Right Outer Join, Power Query, Power BI
Right Outer Join

Even if there is no extra animated GIF for this, the Right Outer Join can of course have several hits in the left table and thus increase the number of records in the result table compared to the original right table.

 

Full Outer Join (all rows from both)

Full Outer Join, Power Query, Power BI
Full Outer Join

 

Inner Join (only matching rows)

Inner Join, Power Query, Power BI
Inner Join

 

Left Anti Join (rows only in first)

Left Anti Join, Power Query, Power BI
Left Anti Join

 

Right Anti Join (rows only in second)

In the shown project, there was unfortunately no equivalent to the right anti join and since I unfortunately have no knowledge about the R language, I could not create the corresponding animated GIF myself. However, I think that a look at the Left Anti Join should be enough to imagine how the Right Anti Join works.

Lars Schreiber

Lars ist Berater, Entwickler und Trainer für Microsoft Power BI. Er ist zertifizierter Power BI-Experte und Microsoft Trainer. Für sein Engagement in der internationalen Community wurde Lars seit 2017 jährlich durch Microsoft der MVP-Award verliehen. Lies hier mehr…

Kategorie: Technical Topics (english) Stichworte: Power Query

Leser-Interaktionen

Kommentare

  1. Zeynep meint

    30. Juni 2022 um 8:14 am

    Very useful information. Thank you

  2. Lisa meint

    4. November 2021 um 10:30 am

    Dude, the amination is amazing. So easy to understand. Thank you so much

  3. Holm Nguyen meint

    1. Juni 2021 um 6:25 am

    This is the best illustration I have ever seen. Very easy to understand. Thank you so much!

Seitenspalte

WEBSITE DURCHSUCHEN

MELDE DICH FÜR DIE POWER BI USER GROUP HAMBURG AN

Trage Deine E-Mailadresse ein, um für kommende Treffen der PUG Hamburg eingeladen zu werden. Zudem erhältst Du Zugriff auf die Materialien der vergangenen Treffen.

Footer

Kontakt

THE SELF-SERVICE-BI BLOG
Mail: lars@ssbi-blog.de

Rechtliches

  • Impressum
  • Datenschutz

Über THE SELF-SERVICE-BI BLOG

Ich bin ein freiberuflicher Power BI-Berater, -Entwickler und -Trainer und wurde von Microsoft mehrfach mit dem MVP Award ausgezeichnet. Ich arbeite mit einem kompetenten Netzwerk aus freiberuflichen und ambitionierten Kollegen zusammen. Erfahre hier mehr.

Social

Folge mir...

Copyright © 2025 · Digital Pro on Genesis Framework