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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Applicable88
Impactful Individual
Impactful Individual

Get every row of Table B to in each row of Table A

Hello,

 

I cannot use join to get my expected outcome since rows has no primary key which are matching. 

What I have:

Table A

Date  Day
16.01.2023 Monday 
17.01.2023 Tuesday
18.01.2023 Wednesday
19.01.2023 Thursday
20.01.2023 Friday

 

Table B

Task ID
Mount 1
BUY 2
FETCH 3

 

How to get this table:

Date  Day Task ID
16.01.2023 Monday  Mount 1
16.01.2023 Monday  BUY 2
16.01.2023 Monday  FETCH 3
17.01.2023 Tuesday Mount 1
17.01.2023 Tuesday BUY 2
17.01.2023 Tuesday FETCH 3

 

Thank you very much in advance. 

Best. 

1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@Applicable88 

 

>>Table A >> Add Custom Column >> With Below Code And Pic.

>> After Create Column >> Expand Table Column >> With Need You Column.

M Code : #"Table B"

Mahesh0016_0-1674040758199.png

 

Mahesh0016_1-1674040871760.png

 

@Applicable88 If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

View solution in original post

4 REPLIES 4
JennB
Regular Visitor

I am trying to do this exact thing, but the accepted solution doesn't work because I can't complete the step in the first picture. The system greys out the "OK" button and displays an error. But clicking "Show error" does nothing. Any idea what I should do?

JennB_0-1712328819659.png

 

Applicable88
Impactful Individual
Impactful Individual

@JennB , please try with double quotes instead of single quotation marks. 

That worked. Thanks.

Mahesh0016
Super User
Super User

@Applicable88 

 

>>Table A >> Add Custom Column >> With Below Code And Pic.

>> After Create Column >> Expand Table Column >> With Need You Column.

M Code : #"Table B"

Mahesh0016_0-1674040758199.png

 

Mahesh0016_1-1674040871760.png

 

@Applicable88 If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors