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
Fnoorda
Frequent Visitor

Expanding Table after a merge

Hi, I have a little problem expanding table after a merge

So here have three visualizations 

  1. All
  2. col
  3. Merge1

As you can see two record records match on the highlighted columns, but no rows in the Merge1 table.

Merge_1.png

 

 

 This is how I got to this result.

= Table.NestedJoin(All,{"cec_upn", "dx_dte", "Index"},Col,{"cec_upn", "dx_dte", "Index"},"Col",JoinKind.Inner)

Merge_2.jpg

Merge_3.png

All good sofar.

I then did 

= Table.ExpandTableColumn(Source, "Col", {"cec_upn", "colorectal_case_cde", "dx_dte", "icd3_cde", "Index"}, {"Col.cec_upn", "Col.colorectal_case_cde", "Col.dx_dte", "Col.icd3_cde", "Col.Index"})

Merge_4.pngv

 

Everything was done thru the UI.

 

Can you explain why I get an empty table.

 

Thanks Fred

 

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

Hi Fnoorda,

 

I have test your issue, and it works after I merged two tables:

2.PNG3.PNG

 

One possible condition in your case is that the data type of columns in table All doesn’t  match the data type of columns in table Col. Please check if data types of columns are same in two tables.

1.PNG

 

Please refer to my PBIX file: https://www.dropbox.com/s/clyn58d40vpphtn/For%20Fnoorda.pbix?dl=0

 

Best Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Fnoorda,

 

I have test your issue, and it works after I merged two tables:

2.PNG3.PNG

 

One possible condition in your case is that the data type of columns in table All doesn’t  match the data type of columns in table Col. Please check if data types of columns are same in two tables.

1.PNG

 

Please refer to my PBIX file: https://www.dropbox.com/s/clyn58d40vpphtn/For%20Fnoorda.pbix?dl=0

 

Best Regards,

Jimmy Tao

Thanks Jimmy that does  solve the problem. Thanks for your help. Powerbi does seem to change the data type sometimes from whatever it is to this "any type"  I asume that equtes to variant.

 

Thanks again.

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.