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
mhdilyas
Frequent Visitor

combine specifc column from different table

we have imported data from diffirent data source, all data table have one common column and want to append specific not all.

 

Table1, table2, table 3

cul1, col2, cul3

append to new table in column

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mhdilyas ,

You just need modify the dax formula:

 

Table 4 =
VAR tmp1 =
    DISTINCT ( 'Table'[Product] )
VAR tmp2 =
    DISTINCT ( 'Table 2'[Product] )
VAR tmp3 =
    DISTINCT ( 'Table 3'[Product] )
VAR tmp4 =
    SELECTCOLUMNS ( tmp1, "P1", [Product] )
VAR tmp5 =
    SELECTCOLUMNS ( tmp2, "P2", [Product] )
VAR tmp6 =
    SELECTCOLUMNS ( tmp3, "P3", [Product] )
VAR tmp7 =
    UNION ( tmp4, tmp5, tmp6 )
VAR tmp8 =
    FILTER ( tmp7, [P1] <> BLANK () )
RETURN
    SELECTCOLUMNS ( tmp8, "Product", [P1] )

 

 

Best regards,
Community Support Team_Binbin Yu
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

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

This should ideally be done in the Query Editor.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @mhdilyas ,

Please try below steps:

1. below is test table

Table:

vbinbinyumsft_0-1689141420419.png

Table2:

vbinbinyumsft_1-1689141468428.png

Table3:

vbinbinyumsft_2-1689141490129.png

 

2. create a table with below dax formula

Table 4 =
VAR tmp1 =
    SELECTCOLUMNS ( 'Table', "P1", [Product] )
VAR tmp2 =
    SELECTCOLUMNS ( 'Table 2', "P2", [Product] )
VAR tmp3 =
    SELECTCOLUMNS ( 'Table 3', "P3", [Product] )
VAR tmp4 =
    UNION ( tmp1, tmp2, tmp3 )
RETURN
    SELECTCOLUMNS ( tmp4, "Product", [P1] )

vbinbinyumsft_3-1689141551870.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It did work thanks for support.

How to remove doublicate value and emply column

Anonymous
Not applicable

Hi @mhdilyas ,

You just need modify the dax formula:

 

Table 4 =
VAR tmp1 =
    DISTINCT ( 'Table'[Product] )
VAR tmp2 =
    DISTINCT ( 'Table 2'[Product] )
VAR tmp3 =
    DISTINCT ( 'Table 3'[Product] )
VAR tmp4 =
    SELECTCOLUMNS ( tmp1, "P1", [Product] )
VAR tmp5 =
    SELECTCOLUMNS ( tmp2, "P2", [Product] )
VAR tmp6 =
    SELECTCOLUMNS ( tmp3, "P3", [Product] )
VAR tmp7 =
    UNION ( tmp4, tmp5, tmp6 )
VAR tmp8 =
    FILTER ( tmp7, [P1] <> BLANK () )
RETURN
    SELECTCOLUMNS ( tmp8, "Product", [P1] )

 

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I manage  dublicate value and empty but not able to null column due to this not able to create relationship

how do i remove null value, without this i cannot create relation in between two table

plz im looking option without quereditor

mhdilyas2008_0-1689527719551.png

 

Arul
Super User
Super User

@mhdilyas ,

Your explanation to the requirement is not clear. Could you please provide more context on this?

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Legend_11
Resolver I
Resolver I

Explain issue, you want to append new table which is also having common column but you do not want all columns only specific columns?

 

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors