Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
shabarish0587
Contributor II
Contributor II

How to Split the data and display required value from the Column in Qlikview Script

Hi Folks,

               I am facing one issue. i have a column like Tag. In this column i need to display middle value. i need to remove unwanted data. i tried using subfield. but i am not getting expected output. can anyone help me on this.

For eg: I have a value like this {NameImplement_ref/tag/123456}  and i am expecting like this Implement. I need to remove {Name and also _ref/tag/123456} only between whatever i have the value i need to display . can anyone help me on this.  i am sharing sample spreadsheet

shabarish0587_0-1632473083057.png

 

Expected Output:

shabarish0587_1-1632473191149.png

 

1 Solution

Accepted Solutions
MayilVahanan

Hi 

Try like below

Temp:
Load *, TextBetween(Tag, 'Name', '_ref') as ExpTag;
LOAD ID,
Project,
SubField(Tag, ',') as Tag
FROM
[D:\Qlik\Com\Tag_Sample.xlsx]
(ooxml, embedded labels, table is Sheet1);

NoConcatenate
OP:
Load ID, Project, Concat(Tag, ',') as Tag, Concat(ExpTag, ',') as ExpTag Resident Temp Group by ID, Project;

DROP Table Temp;

O/P:

MayilVahanan_0-1632479099797.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi 

Try like below

Temp:
Load *, TextBetween(Tag, 'Name', '_ref') as ExpTag;
LOAD ID,
Project,
SubField(Tag, ',') as Tag
FROM
[D:\Qlik\Com\Tag_Sample.xlsx]
(ooxml, embedded labels, table is Sheet1);

NoConcatenate
OP:
Load ID, Project, Concat(Tag, ',') as Tag, Concat(ExpTag, ',') as ExpTag Resident Temp Group by ID, Project;

DROP Table Temp;

O/P:

MayilVahanan_0-1632479099797.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
shabarish0587
Contributor II
Contributor II
Author

Thank you Mayil Vahanan