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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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