Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
benjamin_naujoks
Partner - Contributor II
Partner - Contributor II

Transformation txt file

Hey Hey Community,

I have a problem with a txt file which is an export from SAP.

The text file looks very strange when I open it with the text editor because there are many blanks between the values. When I open it with notepad++ it looks like a normal table and is how I wanted the table to be.

I want to import the file into Qlik Sense but there is no common rule for a delimiter (sometimes it is a blank, somtimes there are 5 blanks etc.) and because of that, the data slips into different and implausibly fields.

Is there any option to transform the txt file into an file which looks like the table in notepad++?

Thanks in advance

Benny

1 Solution

Accepted Solutions
marcus_sommer

Probably you need a multi-step approach by loading it at first with fix-records and performing then various cleaning- and replacing-measures. Here an example which might give you some ideas how you could resolve it: Re: Loading File with Blank Values and Space delimited.

- Marcus

View solution in original post

4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It sounds like your delimiter may be a tab character which your first text edit expands and NotePad++ does not. You can confirm in NotePad++ by menu View, Show Symbol, Show All Characters.

If it's a tab than specify that as your  delimiter when you load in Qlik Sense.

-Rob

benjamin_naujoks
Partner - Contributor II
Partner - Contributor II
Author

Hej Rob,

unfortunately it is no tab character. I tried every delimiter which is possible to choose but I couldn't get the table like I wanted it to have.
I found out that you can use " fixed record size"  to make the data in a table, but then my headlines did not match to the columns.

I think there must be an easier way, especially because it's an exported file from SAP

Greetz

Benny

dwforest
Specialist II
Specialist II

Is it using fixed width fields?  Select Fixed record for the File format in Qlik.

marcus_sommer

Probably you need a multi-step approach by loading it at first with fix-records and performing then various cleaning- and replacing-measures. Here an example which might give you some ideas how you could resolve it: Re: Loading File with Blank Values and Space delimited.

- Marcus