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! Request now

Reply
inlam
Regular Visitor

Power Query issue trying to create a new table

Hi Sirs, 

 

I'm struggling trying to create a new table/query in Power Query that gives me the correct output for this scenario:

 

From a Table 1.

YearMonth
20231
20232

 

And a Table 2: 

YearAmount
20231000
20231500

 

The expected output is: I need a Table 3 from use of Table1 and Table2. 

YearMonthAmount
202311000
202311500
202321000
202321500

 

I really appreciate any solution or light you could give me. 🙂

My kindest regards. 

1 REPLY 1
amitchandak
Super User
Super User

@inlam , You can use the Merge option in Power Query

Merge Tables (Power Query) : https://youtu.be/zNrmbagO0Oo

 

amitchandak_0-1700834671523.png



amitchandak_1-1700834690898.png



amitchandak_2-1700834713159.png

 

 

Code of merged table

 

let
Source = Table.NestedJoin(#"Table 1", {"Year"}, #"Table 2", {"Year"}, "Table 2", JoinKind.Inner),
#"Expanded Table 2" = Table.ExpandTableColumn(Source, "Table 2", {"Year", "Amount"}, {"Table 2.Year", "Table 2.Amount"})
in
#"Expanded Table 2"

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors