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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
bobbiclancyABB
New Member

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

Hello Everyone, I'm trying to pivot on a table that I'm editing in the PowerQuery but I keep getting a DataFormat Error and the pivot isn't working. 

Error.PNG

 

Pivot.PNG

 
 
1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @bobbiclancyABB ,

Based on the error message, the "%" cannot be converted to NUMBER type. What is the data type of the column which includes '%'?

If the column is a number type but with '%' or other chararcters in it, it should be a text column.

Please check the column formats next to the column. On the applied steps, locate "Changed Type", change the format of the column to text, and click replace current step when asked. 

 

Best Regards,

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

 

View solution in original post

6 REPLIES 6
Protype83
Regular Visitor

Hey Everyone. 

 

I had this kind of issue many times and now I figured it out. 

In query it didn't give any specific row/column error. 

There was nothing making any sense. 

 

So I  drive vba macro to get report from SAP(old version) and save it to txt file.

First I look if problem seems on SAP but now. then I check txt file and boom. Last rows were SAP summarize information and every row and column had some different character. Deleted those rows in txt file and query worked just fine. 

 

Hope someone else find solution here.

Charlieburden8
New Member

I am also having the name issue. My cells contain both numbers and letters and whenever I try to 'change type' nothing seems to remove the error. 

I too have this problem. but nothing in these comments seems to help. Did you find a solution jet?

niting
New Member

Hello - I am also facing a similar issue. I m trying to pivot an appended table. please refer to the below screenshots. I want to pivot cost category and the values are in Value column. I get an error saying "Couldnt convert to numbers .....Details: Connectivity". Value column is in fixed decimal number format.

niting_0-1640714503994.png

niting_1-1640714532051.png

 

 

v-yingjl
Community Support
Community Support

Hi @bobbiclancyABB ,

Based on the error message, the "%" cannot be converted to NUMBER type. What is the data type of the column which includes '%'?

If the column is a number type but with '%' or other chararcters in it, it should be a text column.

Please check the column formats next to the column. On the applied steps, locate "Changed Type", change the format of the column to text, and click replace current step when asked. 

 

Best Regards,

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

 
camargos88
Community Champion
Community Champion

@bobbiclancyABB ,

 

You can replace the values before/after the unpivot or replace the error with some value or nothing...

Or even change the date format before the operation.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors