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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jppuam
Helper V
Helper V

join 2 different tables

Hello, i'm trying to join 2 tables like this :

 

table A                                                                                                     table B

ID       Date     Category      Product        Code      value                         Date         reference       sucess      Type

 

I want to create a unique table that has :

ID       Date     Category      Product        Code      value   (all from table A and the non match fields from b)   reference  sucess type (from b)

 

is this possible ?

 

thanks,

JP                      

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jppuam 

Full outer will merge rows from both TableA and Table B (matching or not matching).

For example: 

Table A has dates 2021/01/01 - 2021/01/03.

1.png

Table B has date 2021/01/04.

2.png

If you use Full outer to merge two tables, result is as below.

1.png

Here is a blog about join kind in Merge in Power Query.

For reference: Choose the Right Merge Join Type in Power BI

If you want to expand all values in Table B for each Row in Table A, you can try to add custom column.

1.png

Expand rows you need from Table B.

2.png


Best Regards,

Rico Zhou

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @jppuam 

I see Table A and Table B only has one same column Date. Do you want to combine to tables by Date column? Here I suggest you try Merge function in Power Query.

For reference: Combine queries

My Sample:

Table A

1.png

Table B

2.png

Merge Table A and Table B by Date column by Left Outer Join Kind. Then you can expand Table B by Reference  Sucess and Type columns. If you have multiple key columns in two tables, use Ctrl + left click to select them in Merge function.

1.png

Result is as below.

3.png

Best Regards,
Rico Zhou

 

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

Thanks RicoZhou,

just one question, if i've in table A (some dates - not every days) and on table B other dates (for example like you put - Table B with record on day 4) than i should use full outer join right ?

 

thanks,

JP

Anonymous
Not applicable

Hi @jppuam 

Full outer will merge rows from both TableA and Table B (matching or not matching).

For example: 

Table A has dates 2021/01/01 - 2021/01/03.

1.png

Table B has date 2021/01/04.

2.png

If you use Full outer to merge two tables, result is as below.

1.png

Here is a blog about join kind in Merge in Power Query.

For reference: Choose the Right Merge Join Type in Power BI

If you want to expand all values in Table B for each Row in Table A, you can try to add custom column.

1.png

Expand rows you need from Table B.

2.png


Best Regards,

Rico Zhou

 

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

VahidDM
Super User
Super User

Hi @jppuam 

 

Please see this link:

https://www.sqlbi.com/articles/lookup-multiple-values-in-dax/

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos✌️!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors