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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.