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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors