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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Creating new table using existing

Hi,

 

I am trying to create new table using existing tables as shown in the example below

 
 
TABLE_ATABLE_BTABLE_CTABLE_D
1-A1-B1-C1-D
2-A2-B2-C2-D
3-A3-B3-C3-D
4-A4-B4-C4-D
RESULT_TABLE
1-A1-C
2-A2-C
3-A3-C
4-A4-C
1-B1-D
2-B2-D
3-B3-D
4-B4-D

Can someone please help me with the DAX for the same.

 

Thank you🙂

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

 

"TABLE_A", "TABLE_B" are column names, right? If so, try this:

New Table =
VAR t1 =
    SELECTCOLUMNS ( 'Table', "Column 1", [TABLE_A], "Column 2", [TABLE_C] )
VAR t2 =
    SELECTCOLUMNS ( 'Table', "Column 1", [TABLE_B], "Column 2", [TABLE_D] )
RETURN
    UNION ( t1, t2 )

table.JPG

 

 

Best Regards,

Icey

 

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

amitchandak
Super User
Super User

@Anonymous , Create a copy of this table in power Query.

In the existing table drop column table_B , Table_D

and new Table table drop column table_A , Table_C

 

append these two tables

 

Duplicate table -https://radacad.com/reference-vs-duplicate-in-power-bi-power-query-back-to-basics

Append : https://radacad.com/append-vs-merge-in-power-bi-and-power-query

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
Anonymous
Not applicable

@amitchandak  Thank you for your respond.

but actual tables are containing rows in millions hence processing time with this method is more than accpetable. 
Is it possible to do it with DAX in one step or faster?

 

Thanks

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!

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