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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
GD61
Helper III
Helper III

Power Query and Fixed-width M(agic)!

Hi I tried to do the tutorial but I meet an issue with the folowing query which intend to split text to 5 columns.

 

= let
Source = Csv.Document(File.Contents("C:\Users\GD\Documents\POWER BI\Analyze CSV file\postprn\postprn.prn"),[Delimiter=":", Columns=2, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Type modifié" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}}),
#"Colonnes supprimées" = Table.RemoveColumns(#"Type modifié",{"Column2"}),
#”Fractionner la colonne par position” = Table.SplitColumn(Source,”Column1″,Splitter.SplitTextByPositions({0, 13, 32, 60, 74}, false),{“Account“, “Description”, “Language”, “Debit”, “Credit”}),
#"Type modifié1" = Table.TransformColumnTypes(#"Fractionner la colonne par position",{{"Column1.1", type text}, {"Column1.2", type text}})
in
#"Type modifié1"

 

I get the error:

Expression.SyntaxError : Jeton Identifier attendu.  (Token identifier waited?)

Jeton identifier attendu.jpg

What did I miss?

Thanks for your help

2 REPLIES 2
pqian
Microsoft Employee
Microsoft Employee

@GD61 at a glance, you are using the wrong quote character (needs to be the ascii ")

Hello,

I changed the quotes one by one, and that works.

How can I get the good quotes with my French version? What are there ASCII code?

Thanks

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.