Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Case Select

How would I accomplish the non-working pseudocode below in QV?

Load

  URL,

     (Select Case URL

          Case wildmatch(URL,'*abc*) : ABC

          Case wildmatch(URL,'*def*') : DEF

          Case wildmatch(URL,'*ghi*') : GHI

          Default: XYZ

     End Select) as ProductCode

From AnyTable.qvd(qvd);

1 Reply
Gysbert_Wassenaar

pick(wildmatch(URL, '*abc*','*def*','*ghi*')+1,'XYZ','ABC','DEF','GHI') as ProductCode


talk is cheap, supply exceeds demand