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

Append Table as new - different column Types with same column name?

Hi All, 

 

So I came accross this strange behaviour when trying to append a table and then merging this table with another query.

Table 1

Column 1 Type Text

Column 2 Type Any

Column 3 Type Whole Number

Table 2

Column 1 Type Integer

Column 2 Type Any

Column 3 Type Whole Number

 

Rsults in following Append:

Column 1 Type Any - which makes sense because I append two different column Types

Column 2 Type Any

Column 3 Type Whole Number

 

Then I merge with an left outer join with a table that also has column 1 but Type Text.

When I then look at the result of the merge - the values from Table 1 that have column 1 Type Text populate properly while all of the other values in the append table column 1 coming from table 2 with type integer are omitted from the merge. 

 

Is this intended behaviour?

 

M

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

This is an intended behaviour. Type any means that column may contain any type, but joins respect typisation.

1 does not equal "1", ie number and text aren't equal. You can observe precisely exact behaviour in Excel vlookup - mixing numbers and text that look like numbers make vlookup behave seemingly weird.

In your case you have exactly this numbers mixed with text that look like numbers - hence the column type switches to any as PBI does not take responsibility for converting tyles behind the scene.

Kind regards,
JB

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

This is an intended behaviour. Type any means that column may contain any type, but joins respect typisation.

1 does not equal "1", ie number and text aren't equal. You can observe precisely exact behaviour in Excel vlookup - mixing numbers and text that look like numbers make vlookup behave seemingly weird.

In your case you have exactly this numbers mixed with text that look like numbers - hence the column type switches to any as PBI does not take responsibility for converting tyles behind the scene.

Kind regards,
JB
Greg_Deckler
Super User
Super User

Seems odd. Can you post sample data to experiment with?

 

You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

 

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors
Top Kudoed Authors