cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Krushal Regular Visitor
Regular Visitor

Aplhabet and number togetjer - data error

My column contains data in the form of pure numbers - 2658270185 and in the form of alphabet,numeric form - CR35309277

The type of the column is changed to text still it would give me below error:

 

DataFormatError: We couldnt convert to Number

Details:

   CR35309277

1 ACCEPTED SOLUTION

Accepted Solutions
Krushal Regular Visitor
Regular Visitor

Re: Aplhabet and number togetjer - data error

I found the solution. While loading the data, query loads it as an integer , so even if you later convert the type to "text" it still throws the error.

I went in advacned query editor for the first step and changed the type for"integer.64" to "text" by typing it manually.

and then it worked!

View solution in original post

8 REPLIES 8
Super User I
Super User I

Re: Aplhabet and number togetjer - data error

Hi @Krushal ,

 

Did you change it to TEXT thru Desktop  or thru Power query editor?

Try changing it thru Query editor. Sometimes it gives an error if we do from Desktop.

You can give a try in your case.

 

Thanks,

Tejaswi

Krushal Regular Visitor
Regular Visitor

Re: Aplhabet and number togetjer - data error

Capture.PNG


@tejaswidmello wrote:

 

Super User I
Super User I

Re: Aplhabet and number togetjer - data error

Hi @Krushal ,

 

when I am trying to do it usign your example I don't see any issue. 

May be I am missing some steps. or will have to look at your dataset.

Capture12.PNG

 

Thanks,

Tejaswi

Krushal Regular Visitor
Regular Visitor

Re: Aplhabet and number togetjer - data error

@tejaswidmello  My data set is huge, but contains numbers and alphabets +numbers.

 I tried it again, it gave me the same error.

Capture.PNG

Super User I
Super User I

Re: Aplhabet and number togetjer - data error

Hi @Krushal ,

 

I am unable to recreate your issue.

Is your data source an excel spreadsheet? or it is coming live from any DB?

if Excel, then may be this post helps you.

https://community.powerbi.com/t5/Desktop/DataFormat-Error-We-couldn-t-convert-to-Number-Details-CG10...

 

Thanks,

Tejaswi

Krushal Regular Visitor
Regular Visitor

Re: Aplhabet and number togetjer - data error

@Tejas My data source is excel spreadsheet that is connected to my email.

Super User I
Super User I

Re: Aplhabet and number togetjer - data error

Hi @Krushal ,

 

Can you send me your code from the advanced editor?

 

Capture122.PNG

 

Thanks

Tejaswi

Krushal Regular Visitor
Regular Visitor

Re: Aplhabet and number togetjer - data error

I found the solution. While loading the data, query loads it as an integer , so even if you later convert the type to "text" it still throws the error.

I went in advacned query editor for the first step and changed the type for"integer.64" to "text" by typing it manually.

and then it worked!

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors