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: 
RP1629548713
Contributor II
Contributor II

Finding the occurrence of word and splitting it as per occurrence of keyword and transposing.

Hi All,

I am trying to find occurrence of a keyword ,capturing the content of a string after and before that keyword.

I need to take -1 and +1 position of the keyword ,transpose the -1 position and keep the +1 as its value.

For eg i have a string "Goods at store tshirt,jeans,jackets tshirt quantity:100,jeans quantity:50,jacket quantity:100"

Now i want tshirt,jackets and jeans going as column header and quantities to be stored in respective columns.

But these goods can be dynamic ,sometime we have jacket and even socks can step in. Or sometimes jacket wont be there at all. So we need to handle dynamic scenario as well.Also please note all the above operations would have to be performed on a file.

Labels (4)
1 Reply
RP1629548713
Contributor II
Contributor II
Author

Can someone please help on this