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

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

Reply
Anonymous
Not applicable

Dax

Hi everyone,

 

I have some issues about creating a new table, 

 

I have 3 sheets from Excel and I have loaded into Power BI.

 

Sheet1 and Sheet2 are including with Name, Date and Balance, so they are basically the same thing. Sheet3 is only with Name and Age in it. So, what I am trying to do is going to creating a new table called t1, which will have Name, Date, Balance and Age in it.

 

I know how to do it in the query editor, but I want to do it just by using New table function from Modeling.

 

Also, I noticed I can use union to union sheet1 and sheet2 as they have the same number of rows. And right now, I have problem of adding sheet3 into it.

 

Thanks

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

You could try this:

FinalTable =
ADDCOLUMNS (
    UNION ( Sheet_1, Sheet_2 ),
    "Age", LOOKUPVALUE ( Sheet_3[Age], Sheet_3[Name], [Name] )
)

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

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

You could try this:

FinalTable =
ADDCOLUMNS (
    UNION ( Sheet_1, Sheet_2 ),
    "Age", LOOKUPVALUE ( Sheet_3[Age], Sheet_3[Name], [Name] )
)

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

Thanks! It works out!

Anonymous
Not applicable

Hi everyone,

 

I have some issues about creating a new table, 

 

I have 3 sheets from Excel and I have loaded into Power BI.

 

Sheet1 and Sheet2 are including with Name, Date and Balance, so they are basically the same thing. Sheet3 is only with Name and Age in it. So, what I am trying to do is going to creating a new table called t1, which will have Name, Date, Balance and Age in it.

 

I know how to do it in the query editor, but I want to do it just by using New table function from Modeling.

 

Also, I noticed I can use union to union sheet1 and sheet2 as they have the same number of rows. And right now, I have problem of adding sheet3 into it.

 

Thanks

Anonymous
Not applicable

Hi @Anonymous, 

 

As you say, you can use the UNION function to join the first two tables, then you should create a relationship between this new table and Table3 by Name, to be able to create the final table with the following formula:

 

FinalTable = ADDCOLUMNS (
    'Union';
    "Age" ; RELATED(Table3[Age])
    
)

Regards.

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