Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jlie
Advocate I
Advocate I

Relate Tables with "outer join" in the Data Model (not the query builder)

Hey,

 

I hope I am able to specify my problem accurately, because I'm not entirely sure how to describe it. Lets say I have two tables, one for our customers and one for Google Analytics Session Data from our website. I am able to match them and I have a customer for every Dataset in GA, but I do not have GA data for every single customer.

 

When I set-up the relationship and pull the data into a visualization or a table, I only get the intersect (e.g. all customers that have sessions), but I am not able to see all customers. So what I basically need is a left-outer join: I need all the customers (all the time) and I need the GA-Data added, where it is available.

 

Is it possible to configure this in the Data Model or do I have to build a separate table in the Query Builder?

 

Best Regards and many thanks!

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @jlie,

 

>>So what I basically need is a left-outer join: I need all the customers (all the time) and I need the GA-Data added, where it is available.

For your requirement, you can take a look at NATURALLEFTOUTERJOIN Function and try to use it create a merged table with full records.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @jlie,

 

>>So what I basically need is a left-outer join: I need all the customers (all the time) and I need the GA-Data added, where it is available.

For your requirement, you can take a look at NATURALLEFTOUTERJOIN Function and try to use it create a merged table with full records.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.