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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
umairarshad
Helper II
Helper II

meging two tables

Hello,

I am sorry if posted in the irelevent section.

I have two tables as below

YearStationMonthEqptGSE IDTotal Consumption
2024-25KHIAprilACUGD-147306
2024-25KHISeptemberACUGD-147414
2024-25KHIJuneACUGD-147743
2024-25KHIAugustACUGD-147247
2024-25KHIOctoberACUGD-147550
2024-25KHIMayACUGD-147687
2024-25KHIJulyACUGD-147905
2024-25KHINovemberACUGD-147240

 

 

and 

 

YearStationMonthEqptGSE IDHrs
2024-25KHIAprilACUGD-147 8
2024-25KHIAugustACUGD-147 6
2024-25KHIOctoberACUGD-147 17
2024-25KHISeptemberACUGD-147 8
2024-25KHIJuneACUGD-147 17
2024-25KHIMayACUGD-147 16
2024-25KHIJulyACUGD-147 22
2024-25KHINovemberACUGD-147 2

 

I want the result in such a way that hrs and Total Consumption columns should be side by side in power query.

Please help.

2 ACCEPTED SOLUTIONS
PwerQueryKees
Super User
Super User

Use Merge Queries

PwerQueryKees_0-1734622972916.png

Select all the columns you need to match each row with exactly one other row by ctrl-click.
Make sure the match column numbers align:

PwerQueryKees_2-1734623165756.png

 

Then press OK and in the resulting column, select the Expansion Marker

PwerQueryKees_3-1734623258461.png

And select the column you want to add to your table:

PwerQueryKees_4-1734623325561.png

Did I answer your question? Then please mark my post as the solution and make it easier to find for others having a similar problem.
If I helped you, please click on the Thumbs Up to give Kudos.

 

Kees Stolker

A big fan of Power Query and Excel

View solution in original post

v-achippa
Community Support
Community Support

Hi @umairarshad,

Thank you for reaching out to Microsoft Fabric Community.

 

To merge two tables and have the Hrs and Total Consumption columns side by side, please follow below approach:

 

  • Open Power BI Desktop and load the two tables.
  • Go to the Home tab and click Transform Data, this opens the Power Query Editor window

vachippa_5-1734632384388.png

  • Select the first table and click the Merge Queries drop down and then select Merge Queries as New

vachippa_0-1734631978705.png

  • A new window will open, from there select the first table in first dropdown and second table in the second drop down and then select any matching column from two tables for eg., Month and from the Join Kind select the Left Outer join and click OK like below

vachippa_1-1734631998798.png

  • A new Table will be created, from that table from the Hours column click on the Expand icon

vachippa_6-1734632595907.png

  • From the Expand area select only the Hrs column and click on OK

vachippa_3-1734632042094.png

  • The Hours will be displayed next to the Total Consumption column like below

vachippa_4-1734632060745.png

  • Rename the Table name and column nameโ€™s as per your requirement and from the Home Tab click on Close and Apply in the top-left corner of Power Query Editor.
  • The combined table will now be available in your Power BI data model

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" โ€“ Iโ€™d truly appreciate it!

 

Thank and regards,

Anjan Kumar Chippa

View solution in original post

5 REPLIES 5
Omid_Motamedise
Super User
Super User

Use Merge command

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers fasterโ€”and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
v-achippa
Community Support
Community Support

Hi @umairarshad,

Thank you for reaching out to Microsoft Fabric Community.

 

To merge two tables and have the Hrs and Total Consumption columns side by side, please follow below approach:

 

  • Open Power BI Desktop and load the two tables.
  • Go to the Home tab and click Transform Data, this opens the Power Query Editor window

vachippa_5-1734632384388.png

  • Select the first table and click the Merge Queries drop down and then select Merge Queries as New

vachippa_0-1734631978705.png

  • A new window will open, from there select the first table in first dropdown and second table in the second drop down and then select any matching column from two tables for eg., Month and from the Join Kind select the Left Outer join and click OK like below

vachippa_1-1734631998798.png

  • A new Table will be created, from that table from the Hours column click on the Expand icon

vachippa_6-1734632595907.png

  • From the Expand area select only the Hrs column and click on OK

vachippa_3-1734632042094.png

  • The Hours will be displayed next to the Total Consumption column like below

vachippa_4-1734632060745.png

  • Rename the Table name and column nameโ€™s as per your requirement and from the Home Tab click on Close and Apply in the top-left corner of Power Query Editor.
  • The combined table will now be available in your Power BI data model

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" โ€“ Iโ€™d truly appreciate it!

 

Thank and regards,

Anjan Kumar Chippa

PwerQueryKees
Super User
Super User

Use Merge Queries

PwerQueryKees_0-1734622972916.png

Select all the columns you need to match each row with exactly one other row by ctrl-click.
Make sure the match column numbers align:

PwerQueryKees_2-1734623165756.png

 

Then press OK and in the resulting column, select the Expansion Marker

PwerQueryKees_3-1734623258461.png

And select the column you want to add to your table:

PwerQueryKees_4-1734623325561.png

Did I answer your question? Then please mark my post as the solution and make it easier to find for others having a similar problem.
If I helped you, please click on the Thumbs Up to give Kudos.

 

Kees Stolker

A big fan of Power Query and Excel

Great man. It worked. Thanks a lot.

umairarshad
Helper II
Helper II

umairarshad_0-1734596043678.png

 

umairarshad_1-1734596056168.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors