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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.