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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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?



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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?



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.