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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

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

 

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

Anonymous
Not applicable

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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