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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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