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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
12scml
Resolver I
Resolver I

Updating List

Hi everyone!

I am currently working with three tables that I need to combine into one. In each table, I have a "Name" column. I would like to stack the names on top of one another to create on supertable with all of their names. I don't need to copy the other columns, just make one with the list of names. The reason I'm trying to merge the names is so that I may constantly update each table and have a list of all names from all tables. Here's a sample image of what I'm hoping for:
Capture.PNG

Please note that I also want to be able to update the tables if I add names so that the list is also updated. I also made the demonstration through excel but would like to do it in Power BI!

Thanks!!

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @12scml,

 

You can create a calculated table using below DAX formula:

NewTable =
UNION (
    SELECTCOLUMNS ( Table1, "Name", Table1[Name] ),
    SELECTCOLUMNS ( Table2, "Name", Table2[Name] ),
    SELECTCOLUMNS ( Table3, "Name", Table3[Name] )
)

It will update automatically when you refreshing the source tables (Table1, Table2, Table3).

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @12scml,

 

You can create a calculated table using below DAX formula:

NewTable =
UNION (
    SELECTCOLUMNS ( Table1, "Name", Table1[Name] ),
    SELECTCOLUMNS ( Table2, "Name", Table2[Name] ),
    SELECTCOLUMNS ( Table3, "Name", Table3[Name] )
)

It will update automatically when you refreshing the source tables (Table1, Table2, Table3).

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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