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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if statement help

I am trying to show only certain fields in a listbox. i created a simple if statement in the 'expression' field within my listbox for 1 field and it worked great however i am having a hard time figuring out how to add a 2nd field so that my list box now shows only those 2 fields. any help would be greatly appreciated!!!

here is my 1 field expression: but if i want it to show both Canada and the US then how do i write that?

= if([Sales Office Name] ='Canada', [Sales Office Name])

-qlikview newbie

1 Solution

Accepted Solutions
nilesh_gangurde
Partner - Specialist
Partner - Specialist

If your Question is answered copmletly and correclty then please mark the post as correct ans or Helpful ans...

-Nilesh

View solution in original post

3 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

use the below expression

= if([Sales Office Name] ='Canada' or [Sales Office Name] = 'Value2' , [Sales Office Name])

OR

=if(wildmatch([Sales Office Name] ,'Canada' ,'Value2' ), [Sales Office Name])

-Nilesh

Not applicable
Author

wow thank you so much! i tried every other way to do an or statement but that way. i really appreciate it!

nilesh_gangurde
Partner - Specialist
Partner - Specialist

If your Question is answered copmletly and correclty then please mark the post as correct ans or Helpful ans...

-Nilesh