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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
shaazrianlysis
Regular Visitor

way to fix this auto converting?

hey, when i try to import data from a file with text and numbers - the power query changes the text into numbers and i dont know why... i hope you can help me with this .....the NQ letters turn into nuber in the diagram and also if i execute it and it gets in the power querythe NQ letters turn into nuber in the diagram and also if i execute it and it gets in the power query

the NQ text changes into numbers in the diagram and also if i execute it - in the power query it will be numbers and not the text (NQ). have  nice sunday!

3 REPLIES 3
shaazrianlysis
Regular Visitor

hey, thank for helping. the m-code:= Csv.Document(File.Contents("C:\chetrem\Short 1\User_Files\BackTesting_Read_files\ReadDataF3.txt"),[Delimiter=",", Columns=8, Encoding=1255, QuoteStyle=QuoteStyle.None])

it suppose to be for like 25 miliion row if thats matter

here is a few lines from the data:

NQ,09/01/2021 16:00:00,0,0,15634,15634.25,69935,15634.25
NQ,09/01/2021 16:00:01,0,0,15633.75,15634.25,69937,15633.75
NQ,09/01/2021 16:00:02,0,0,15633.5,15634,69946,15633.5
NQ,09/01/2021 16:00:03,0,0,15633.5,15633.75,69955,15633.5
NQ,09/01/2021 16:00:04,0,0,15633.5,15633.75,69957,15633.5
NQ,09/01/2021 16:00:05,0,0,15633,15633.5,69963,15633.5
NQ,09/01/2021 16:00:06,0,0,15632.75,15633.25,69970,15632.75
NQ,09/01/2021 16:00:07,0,0,15632.75,15633.25,69971,15632.75
NQ,09/01/2021 16:00:08,0,0,15632.75,15633.25,69971,15632.75
NQ,09/01/2021 16:00:09,0,0,15632,15632.5,69974,15632
NQ,09/01/2021 16:00:10,0,0,15632.25,15632.75,69978,15632.75
NQ,09/01/2021 16:00:11,0,0,15632,15632.5,69982,15632
NQ,09/01/2021 16:00:12,0,0,15632,15632.5,69982,15632

Still cannot reproduce the problem.

Perhaps, since the file seems to be English and not Hebrew, changing the encoding to 1252 might help.

 

But I doubt it, since the first two characters are `NQ` for each line (and not some unusual unicode equivalent), and I don't see how, after just the line of code you posted, they would change to different numeric values.

 

Hopefully someone else will come along with an idea.

ronrsnfld
Super User
Super User

I cannot reproduce your problem

Please copy/paste some data from the text file you are importing (text, not a screenshot), as well as the M-Code  text from the Advanced Editor in Power Query.

 

It doesn't make sense to me that `NQ` would get converted into integers, especially different integers.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors