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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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