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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Possible Multiple If condition

Hi,

I need help.  I have transaction data that are in group Tender Board A, Tenders Board B, Tenders Board C. In which have approving authority (name 1 ,name 2,name 3)     

transaction NumberTenderName 1Name 2Name 3
0000000001Tender Board ARoyCharanjitPenn
0000000002Tenders Board BPennMunLing
0000000003Tenders Board BPennMunCharanjit
0000000004Tenders Board BPennMunLing
0000000005Tender Board CPaulCharanjitMun
0000000006Tender Board CPaulStephAnnie
0000000007Tender Board CLingStephAnnie
0000000008Tender Board ARoyMunCharanjit

In my qlikview, I have an image(text box) which will appear if conditions is made.

The CONDITIONS are:

User Selected transaction number,

    If is group "Tenders Board C", Annie and Steph IS NOT in the 3 names, the image will appear,

    If is group "Tenders Board B", Ling IS NOT in the 3 names, the image will appear,

    If is group "Tender Board A", Ling IS NOT in the 3 names, the image will appear,

RESTRICTIONS:

The expression should be in the text box and not the script as originally the name are generated after running the script.

Attach are the data, same as the table above.

I am unable to view .qvw due to personal edition. A screenshot is kindly appreciated

23 Replies
Anonymous
Not applicable
Author

hi,

my script included CrossTable(NO, Name,2)

Capture001.JPG

Still it is not working. Only BOX C is working.

Anonymous
Not applicable
Author

Hey, I tried the coding into my original project and it works! Thanks!

If I were to change the name to wildmatch type (instead of full name "LING", I wanna wildmatch for "NG") how do I change it?

MK_QSL
MVP
MVP

Kindly close the thread...

For wildmatch use *NG

Anonymous
Not applicable
Author

HI, so it will write as

IF(GetSelectedCount(Tender) = 0 and GetSelectedCount([transaction Number])=0, 0,

IF(SubStringCount(Concat(DISTINCT Tender,','),'Tender Board A')=0,0,

IF(SubStringCount('|'&Upper(Concat({<Tender = {'Tender Board A'}>}DISTINCT Name, '|')&'|'),'|*NG*|')=0,0,1)))

?