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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
TadepalliSaiKum
Frequent Visitor

Data type Error

I am enetering the following data and power bi is showing some error

1.1001

2.1002

3.1003

4.AP29

5.AP30

The above data is in one column and then by default power bi is taking the data type as Whole Number. Row number with 4,5 is shwing as error as the data type is not getting matched. Plese help me in this issue

1 ACCEPTED SOLUTION
VijayP
Community Champion
Community Champion

Table.TransformColumnTypes(Table6_Table,{{"Numbers", type any}})

 

Instead of "type text" as per above syntax use "type any" then problem should be solved




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi @TadepalliSaiKum 

When PowerBI reads a source, it attempts to match data to a type automatically.

You could disable it in File>OPTIONS>Data Load, and uncheck "Automatically detect column types and headers for unstructured sources". 

5.JPG

also, you could change the datatype in edit queries.

https://carldesouza.com/automatically-detect-data-types-in-power-bi/

 

Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ok.After stopping the auto-detection which data type should i select for that column. Should I go with "Text" data. Ig that is the case then what about the numeric data? will it be auttomatically converted into text data type

hansei
Helper V
Helper V

When PowerBI reads a source, it attempts to match data to a type. It is often wrong. Do you see an entry like

Table.TransformColumnTypes(#"Source", {"Column", Int64.Type})

Change Int64.Type to 

type text
VijayP
Community Champion
Community Champion

Table.TransformColumnTypes(Table6_Table,{{"Numbers", type any}})

 

Instead of "type text" as per above syntax use "type any" then problem should be solved




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.