Forum Discussion

alexTaran's avatar
alexTaran
Frequent Visitor
4 years ago

Troubles with " in csv file

Hi, collegues, 

 

Did anybody have troubles with text qualifiers in power query (csv files)? 

query does not split into columns line with quote " f.e.  ,"ABC,125, .

XLS has a special feature in "data tools - text to columns" - text qualifier ", ` or none. query does not have that 😞

3 Replies

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Icon for Most Valuable Professional rankMost Valuable Professional

    Yes, PQ doesn't have Text qualifier. You can do a Replace value on text qualifer after importing. For example, if quotes are your text qualifier, use following statement

    = Table.ReplaceValue(Source,"""","",Replacer.ReplaceText,Table.ColumnNames(Source))

    • alexTaran's avatar
      alexTaran
      Frequent Visitor

      tnx, but it is not in my case. I need to replace sign " before import csv file.