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

issues with casted column

Hello,

 

I would like to import data from sql. In one column I have casted nvarchars to numbers in sql without receiving an error message, but when I try to import the data into power bi, it says "invalid number". Does Power BI have trouble with casted numbers? Can you help me to overcome this issue?

 

Thanks,

Susanne

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You could import the original data ( nvarchar type ) and check if error occurs. After my tests, it works properly.

 

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

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could import to Power BI at first and use UNICODE() function to get the correct results.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Hey @v-eachen-msft ,

 

thanks for your reply. 

My problem is, that I can't even import the data set since I already get the error message while loading it into power bi, so I can't change anything in it. 

Can you help me with this?

 

Kind regards,

Susanne

Hi @Anonymous ,

 

You could import the original data ( nvarchar type ) and check if error occurs. After my tests, it works properly.

 

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

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.