• Skip to main content
  • Skip to footer

Curbal

Learn how to grow your business with your data and Power BI

  • Resources
    • DAX Glossary
    • Download Center
    • Template Apps
    • Data Stories Gallery
    • Solution Gallery
    • Learning Resources
  • Courses
    • Introduction to Power BI – FREE Online course
    • Power Query Online Training for Power BI
    • M Language Online Course: The unofficial and Practical Reference Guide
  • Blog
  • Shop
    • Courses
    • Swag
    • Template Apps
    • Donations
  • Cart
  • Register/ Log In
    • Become a Member
    • Log In
    • My account
    • My Courses
  • Contact
You are here: Home / CM Tooltip Glossary Pro+ / CROSSJOIN

CROSSJOIN

posted on December 19, 2017

« Back to Glossary Index

Syntax

CROSSJOIN(<table>, <table>[, <table>]…)

Tutorial with example

In today’s video I will show you how to do a full join using DAX.

Want to learn more about other types of join possible in Power BI?

In the video below, I go through all the different types of joins and how to do them in Power Query:

Download the excel demo file

Joins using DAX:

join tables with dax

And the explanation with videos:

he generate function is used to join tables. With generate, you can do an inner join and outer join of tables using DAX:

GENERATE, GENERATEALL:

NATURALINNERJOIN, NATURALLEFTOUTERJOIN:

04:35 Innerjoin
07:59 Outer join

In this video I will show you how to do an anti join of tables using DAX:

EXCEPT:

Download example file:

Link to sample pbix here

Remarks

There is no sort order guarantee for the results.
Columns being joined on must have the same data type in both tables.
Only columns from the same source table (have the same lineage) are joined on. For example, Products[ProductID], WebSales[ProductdID], StoreSales[ProductdID] with many-to-one relationships between WebSales and StoreSales and the Products table based on the ProductID column, WebSales and StoreSales tables are joined on [ProductID]
Strict comparison semantics are used during join. There is no type coercion; for example, 1 does not equal 1.0.

Was this helpful?
[Total: 1   Average: 5/5]
Related Articles:
  • Joining tables in Power BI with Power Query and DAX
See Also:
  • EXCEPT
  • GENERATE
  • GENERATEALL
  • NATURALINNERJOIN
  • NATURALLEFTOUTERJOIN
« Back to Index

Reader Interactions

Let us know your thoughts... Cancel reply

Footer CTA

Join our community of +20,000 professionals

Become a Member

Subscribe to YouTube

About us

Curbal AB
Kopparbergsvägen, 10
722 13 – Västerås
Sweden

OrgNo: 5569680852 | VAT: SE556968085201

 

Location:

© Copyright 2014-2021 · Curbal AB · All Rights Reserved · Privacy Policy · Terms of Service · Refund Policy · Log In