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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
BugmanJ
Helper V
Helper V

Joining Scripts together creates inefficient multiple script workflows

Hello,

 

If, in power query, I join Table A and Table B together using Column Y on the Table A side, there are rows left over from Table B, however there is easy way to take these and use them, you have to create the same script and instead look to save these rows in another script which is EXACTLY the same but capturing this side.

Altreyx handles this very easily but Power Query appears to need a seperate script for each join like this.

Is there a better way to handle it?


Thanks

1 REPLY 1
ToddChitt
Super User
Super User

So you are doing a LEFT OUTER JOIN between two tables, and you expect that there will be un-matched records, resulting in data from Table A that does not match data from Table B. And you want to have this result set broken out into two different tables: one where the data matches, one where there are no matches. 

Yes, in Power Query that would be two separate queries.

Have you tried REFERENCING the MERGE result and then filtering on a column in table B being NULL or NOT NULL to generate two additional queries? How does that perform? I suspect that may not meet your needs.

You could also just do the MERGE in Power Query and bring that table into the model. From there, do two additional DAX tables with FILTER and SELECTEDCOLUMNS statements to generate the respective tables. Hint: DAX operations are probably going to be faster than Power Query.

Hope that helps.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.