Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello people,
Currently, I'm importing a text file with lines of data with the comma-separated values function.
Every line contains eg. an itemnumber(always characters 0-10), item description(11-45) and a quantity(46-50).
However, when I want to import this file some rows contain quotation marks (") that are not recognized by position. This results in incorrect imported lines because the line contains 2 characters less.
Normal line:
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmnop10000
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmnop10000
split as
| Itemnumber | Itemdescription | Quanitity |
| 0123456789 | abcdefghijklmnopqrstuvyxzabcdefghijklmnop | 10000 |
| 0123456789 | abcdefghijklmnopqrstuvyxzabcdefghijklmnop | 10000 |
Exeptional line:
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmno"10000
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmno10000
split as
| Itemnumber | Itemdescription | Quanitity |
| 0123456789 | abcdefghijklmnopqrstuvyxzabcdefghijklmno" | 10000 0123456789 abcdefghijklmnopqrstuvyxzabcdefghijklmnop 10000 |
Does anybody know how or which Comma-separated option can handle the quotation marks?
Current settings:
Thank you in advance.
Does somebody know how to deal with " when importing a .txt file with seperation by position?
You could use "Replace values" after importing data:
In the screenshot below the original line was NIKO MINI PATCH 19", however de quotation marks are replaced with the following formule. But the replacement in Power BI did not make sense. Only replacement in the orginal file make sense.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 33 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 127 | |
| 115 | |
| 87 | |
| 70 | |
| 69 |