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
RB1
New Member

Add Column to Table1 from Table2.ColumnB for each value

Hi,

 

Not sure if title makes sense.

 

I have two tables

 

Table1 (Manually entered query): Only one column called 'names' with company names

 

Table2 (Calculated table with DAX expressions): Months, Years, Quarters and Concats of these combinations

 

I need to create a new table or add to Table1 where for each value in Table2.Year_Quarter, Table1.names duplicate

 

Example:

 

A - 2018 Q1

A - 2018 Q2

A - 2018 Q3

A - 2018 Q4

B - 2018 Q1

B - 2018 Q2

B - 2018 Q3

B - 2018 Q4

C - ETC ETC....

 

Thanks in advance

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

Hi @RB1,

 

I made one sample for your reference.

 

1. Create a calculated column.

 

Table = CROSSJOIN(COMPANY,'DATE')

2. Create the calculated column in the calculated column.

 

Column = 'Table'[name] & " " & CONCATENATE('Table'[Year],'Table'[Q])

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @RB1,

 

I made one sample for your reference.

 

1. Create a calculated column.

 

Table = CROSSJOIN(COMPANY,'DATE')

2. Create the calculated column in the calculated column.

 

Column = 'Table'[name] & " " & CONCATENATE('Table'[Year],'Table'[Q])

Capture.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @RB1,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others 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.