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

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

Reply
nadav50
Regular Visitor

creating table from multiple other columns

hi ,

i added a pic that im trying to do in power bi but not succeed,

 

hope you understand 🙂

new table.JPG

1 ACCEPTED SOLUTION
KHorseman
Community Champion
Community Champion

Hit the New Table button and add this DAX formula:

 

new table = ADDCOLUMNS(
	NATURALINNERJOIN(
		'Table 1',
		SUMMARIZE(
			'Table 2',
			'Table 2'[closing balance]
		)
	),
	"sum balance",
	'Table 1'[opening balance] + 'Table 2'[closing balance]
)

 

Note that you need to have a relationship between the two source tables. Also if your real data is not quite like this sample data, you may have to use NATURALLEFTOUTERJOIN instead. Depends on whether or not one of the two tables has blanks or duplicates.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
KHorseman
Community Champion
Community Champion

Hit the New Table button and add this DAX formula:

 

new table = ADDCOLUMNS(
	NATURALINNERJOIN(
		'Table 1',
		SUMMARIZE(
			'Table 2',
			'Table 2'[closing balance]
		)
	),
	"sum balance",
	'Table 1'[opening balance] + 'Table 2'[closing balance]
)

 

Note that you need to have a relationship between the two source tables. Also if your real data is not quite like this sample data, you may have to use NATURALLEFTOUTERJOIN instead. Depends on whether or not one of the two tables has blanks or duplicates.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




So where is the "New Table" button?

@efglynnUnder the Modeling tab in the ribbon.

 

NewTable.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Sean
Community Champion
Community Champion

@nadav50@efglynn

 

Frankly I'm surprised @KHorseman offered a DAX solution Smiley Very Happy maybe because this was last year

 

I think the Query Editor is made for this!

 

Look at these 2 links describing all the joins and select which one you need in your case

http://www.excelguru.ca/blog/2015/12/16/merge-tables-using-outer-joins-in-power-query/

http://www.excelguru.ca/blog/2015/12/23/merge-tables-using-inner-and-anti-joins-in-power-query/

 

Once you know which join type you need its really easy to do in the Query Editor Smiley Happy

 

Query Editor - Merge As New.gif

Amazing!! THX

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.