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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
vijaykamani
Contributor
Contributor

How to fetch value of a column corresponding to a row fetched from Qliksense

Hello Professionals,

 

i am try to extract vales from Column, 

i have a column "program_list" in this column we have values {AB},{BC},{CD} like this

i want to show individual like 

 

if 

program list              Advanced         Business       Card

{AB}                                 1                           0                     0

{AB,BC}                           1                          1                      0

{AB,BC,CD}                     1                          1                      1

{AB,BC,CD}                     0                          1                      1

like above i need to show, please help me to solve 

Many thanks,

Vijay

1 Reply
MayilVahanan

Hi

Try like below

LOAD *,

if(SubStringCount(programlist, 'AB'), 1, 0) as Advanced,

if(SubStringCount(programlist, 'BC'), 1, 0) as Business,

if(SubStringCount(programlist, 'CD'), 1, 0) as Card INLINE [
programlist

{AB}

"{AB,BC}"

"{AB,BC,CD}"

];

MayilVahanan_0-1628071077983.png

 

 

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