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

Getting DataFormat.Error: We couldn't convert to Number

I keep getting the error DataFormat.Error: We couldn't convert to Number. Details: UNK. The columns that I am getting these errors are set as text already. See below.

 

2020-02-28_11-44-14.png

 

Thanks in advance!

 

 
 
1 ACCEPTED SOLUTION

Just delete step called Changed Type, I assume its there before you unpivot your columns.

View solution in original post

12 REPLIES 12
Anonymous
Not applicable

It worked!

 

Thanks!

Great stuff mate, glad it helped 👍

Regards
Abduvali
Greg_Deckler
Super User
Super User

Can you post your M code? View | Advanced Editor or perhaps a screen shot of your steps?


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

Is this what you need?

 

2020-02-28_12-13-52.png

So is 2016 a reference to another query?


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

No that is the name of my query

So where are the columns coming from? Confused. Usually the source line actually references a source. Are you in the Query Errors when doing the View | Advanced Editor? You want to be on the original query when you do that.


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

A table in an excel worksheet named 2016.

 

2020-02-28_12-13-52.png

@Anonymous ,

 

Go to Edit Queries and select your table with errors and on right side click on Navigation:

Capturew.PNG

 

And see if data is displayed as expected delete all steps below Navigation.

 

Regards

Abduvali

Anonymous
Not applicable

That seems to correct the errors. But when I unpivot my sales columns the errors return.

Just delete step called Changed Type, I assume its there before you unpivot your columns.

Hi @Anonymous,

 

Just check your previous steps on the right side in Edit Query mode.

By default when data as loaded, power bi changes data types automatically so if you delete that step it might solve the problem. Alternatively click SOURCE on the right side and see if errors remains at loading stage or not. If yes then check the "#2016" table that you are referencing.

 

Regards

Abduvali

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.