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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
slk89
Regular Visitor

Power Query: Splitting a table based on column value.

Please note this question is based on Excel Power query.

 

After a merge operation (Full-Outer plus keep Only Non-matched), I have the table in the below format (Table1). My aim is to do an internal merge within the table, that should result in a table like Table2. 

 

My idea is to split the table based on column 'name'=null and then inner-join the resulting 2 tables based on 'name' and 'place'. 

 

Question : How to split the tables to 2 tables in powerquery based on a column value

 

Please suggest better ideas if any, in acheiving the below objective

 

slk89_0-1675684965055.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @slk89 ,

 

I don't know if you have tried appending both tables directly to get the desired result., you can refer to

Append queries - Power Query | Microsoft Learn

vstephenmsft_0-1676617928284.png

If the above method does not work, you must start from Table 1 below.

vstephenmsft_1-1676617981263.png

You duplicate a table, and then romve columns and rename columns as follows.

vstephenmsft_2-1676618112752.png

Table1

vstephenmsft_3-1676618140537.png

Table2

vstephenmsft_4-1676618147650.png

In Table1, choose append queries.

vstephenmsft_5-1676618160620.png

vstephenmsft_6-1676618185856.png

vstephenmsft_8-1676618260619.png

You can filter out blank rows.

vstephenmsft_7-1676618254022.png

Expected result:

vstephenmsft_9-1676618290868.png

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @slk89 ,

 

I don't know if you have tried appending both tables directly to get the desired result., you can refer to

Append queries - Power Query | Microsoft Learn

vstephenmsft_0-1676617928284.png

If the above method does not work, you must start from Table 1 below.

vstephenmsft_1-1676617981263.png

You duplicate a table, and then romve columns and rename columns as follows.

vstephenmsft_2-1676618112752.png

Table1

vstephenmsft_3-1676618140537.png

Table2

vstephenmsft_4-1676618147650.png

In Table1, choose append queries.

vstephenmsft_5-1676618160620.png

vstephenmsft_6-1676618185856.png

vstephenmsft_8-1676618260619.png

You can filter out blank rows.

vstephenmsft_7-1676618254022.png

Expected result:

vstephenmsft_9-1676618290868.png

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Top Solution Authors