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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Surabhi1711
New Member

Append numbers from one table to another table

I need to append two columns from two separate tables into one new calculated column using DAX

 

Example:

Table1:

Surabhi1711_0-1668584164973.png

 

Table2 (with records starting from 1 to 24)

 

Surabhi1711_1-1668584214841.png

I need to append the value of 01 till 24 to each record of the Table1,

the Calculated Column should look like below:

2010070501

2010070502

and so on till 2010070524

and then 2010070601 and so on till 2010070524

and so on for other records.

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Surabhi1711 ,

You need to use crossjoin to create a new table base on the two table , refer:

vluwangmsft_0-1668666008395.pngvluwangmsft_1-1668666020612.png

TableC = CROSSJOIN(TableA,SELECTCOLUMNS(TableB,"column2",RIGHT(TableB[Column2],2)))

vluwangmsft_2-1668666044086.png

Column3 = TableC[DateID]&""&TableC[column2]

vluwangmsft_3-1668666106349.png

 

 

Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @Surabhi1711 ,

You need to use crossjoin to create a new table base on the two table , refer:

vluwangmsft_0-1668666008395.pngvluwangmsft_1-1668666020612.png

TableC = CROSSJOIN(TableA,SELECTCOLUMNS(TableB,"column2",RIGHT(TableB[Column2],2)))

vluwangmsft_2-1668666044086.png

Column3 = TableC[DateID]&""&TableC[column2]

vluwangmsft_3-1668666106349.png

 

 

Best Regards

Lucien

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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