Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
aydiniletisim
Contributor III
Contributor III

Search and Split a column

Hello,

I have a qvd file that has a column name REQUEST, in this column all the data combined. I want to seperate this data into seperate columns.

What i have in qvd;

aydiniletisim_0-1656578790392.png

What i want to see in data model viewer;

aydiniletisim_1-1656578823110.png

 

Labels (2)
1 Solution

Accepted Solutions
aydiniletisim
Contributor III
Contributor III
Author

Hi,

A friend help me, this is what  we do in load editor;

LOAD
REQUEST,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"IdentityNumber":','}'),'"','') as IdentityNumber,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"ReferenceNumber":','}'),'"','') as ReferenceNumber,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"TransactionType":','}'),'"','') as TransactionType,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"Amount":','}'),'"','') as Amount,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"AlwaysSendOTP":','}'),'"','') as AlwaysSendOTP
FROM [lib://CONNECTION_AUDIT.qvd]
(qvd);

View solution in original post

3 Replies
vinieme12
Champion III
Champion III

can you post some sample data in text or excel

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
MartW
Partner - Specialist
Partner - Specialist

Hi @aydiniletisim In qlik you can use the subfield function for this to split data.

aydiniletisim
Contributor III
Contributor III
Author

Hi,

A friend help me, this is what  we do in load editor;

LOAD
REQUEST,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"IdentityNumber":','}'),'"','') as IdentityNumber,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"ReferenceNumber":','}'),'"','') as ReferenceNumber,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"TransactionType":','}'),'"','') as TransactionType,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"Amount":','}'),'"','') as Amount,
REPLACE(TextBetween((REPLACE(REQUEST,',"','}"')),'"AlwaysSendOTP":','}'),'"','') as AlwaysSendOTP
FROM [lib://CONNECTION_AUDIT.qvd]
(qvd);