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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jhaastBI
Helper I
Helper I

Split document by number of characters - quotation not recorgnized

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

ItemnumberItemdescriptionQuanitity
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmnop10000
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmnop10000

 

Exeptional line:

0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmno"10000

0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmno10000

split as

ItemnumberItemdescriptionQuanitity
0123456789abcdefghijklmnopqrstuvyxzabcdefghijklmno"10000 0123456789 abcdefghijklmnopqrstuvyxzabcdefghijklmnop 10000

 

Does anybody know how or which Comma-separated option can handle the quotation marks?

 

Current settings:

 

jhaastBI_0-1639596260558.png

 

Thank you in advance.

 

3 REPLIES 3
jhaastBI
Helper I
Helper I

Does somebody know how to deal with " when importing a .txt file with seperation by position?

YukiK
Impactful Individual
Impactful Individual

You could use "Replace values" after importing data:

YukiK_0-1639598140300.png

 

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.

jhaastBI_1-1639601124946.png

 



 

jhaastBI_0-1639601108828.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.