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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Left join in SQL transfer to Dax Messure

Hello together,

 

my SQL is:

 

select Tab2.Comment

from Tab1

leftjoin Tab2 ON (Tab1.ID = Tab2.ID )

 

As we use the direct query so a merge in Table is not possible. We need this join as a messure because in the Datamodel the connection allways filter only ID with comments. But the IDs without comments are filltered out.

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

hi @Anonymous 

In power bi, for your case, you just need to create a relationship between two tables by ID column, then use slicer to filter visual.

https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi @Anonymous 

In power bi, for your case, you just need to create a relationship between two tables by ID column, then use slicer to filter visual.

https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tak94
Frequent Visitor

Hi @Anonymous ,

 

You should be able use use left outer join when merging in Query Editor. It is a drop down under "Join Kind" when you open the merge queries window. 

 

If however you wanted a DAX, you can use the following:

LOOKUPVALUE('Tab2'[comments],'Tab2'[id],SELECTEDVALUE(Tab1[id]))

 However, this will still require that there is a relationship between the two tables on the id. Again this would return null for whenever there is no match. 

 

I hope this helps!

 

Thanks!

 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.