Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
r_udaltsov
Contributor
Contributor

Data load text file rows batches into columns

Hi, I have not very structured text file like:

 

24 JULY, WEDNESDAY
USD Account
Tax
-92 USD
USD Account
Tax
-51 USD
USD Account
Income
403.15 USD
USD Account
Payout
707.35 USD
08 JULY, MONDAY
USD Account
Purchase
-16 053 USD
Investments
USD Account
Broker comm.
-48.16 USD
Investments
USD Account
Commission
-99 USD

 

I need to parse it to columns as follows:

DateAccountOperation typeAmountCurrencyTags
24.07.2019USD AccountTax-92USD 
24.07.2019USD AccountTax-51USD 
24.07.2019USD AccountIncome403.15USD 
24.07.2019USD AccountIncome707.35USD 
08.07.2019USD AccountPurchase-16053USDInvestments
08.07.2019USD AccountBroker comm.-48.16USDInvestments
08.07.2019USD AccountCommission-99USD 

 

Is there any way to achieve this using a load script?

Labels (4)
2 Replies
agni_gold
Specialist III
Specialist III

can you post sample text file , what exactly you have ?
r_udaltsov
Contributor
Contributor
Author

Code block from the first message is a part of input file, remaining part of it is just the same.