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: 
Not applicable

Expression List Box

Hi All

I have a list box which has thousands invoice numbers.  The invoice numbers either start with "ICT" or "INV".

  • Invoice numbers starting with "ICT" relates to sales from Trade Counter.
  • Invoice numbers starting with "INV" relates to sales from Head Office.

  I want to create a list box where there are only 2 options and below is my formula , however it does not work

=if([Document No] like 'ICT', 'Trade Counter' , 'Head Office') .

Please can you help and where i am going wrong in the formula?

kind regards

Nayan

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=IF(WildMatch([Document No],'ICT*'),'Trade Counter' , 'Head Office')

View solution in original post

4 Replies
MK_QSL
MVP
MVP

=IF(WildMatch([Document No],'ICT*'),'Trade Counter' , 'Head Office')

Not applicable
Author

Thank you Manish.  It worked. Much appreciated.

kind regards

Nayan


anbu1984
Master III
Master III

=if([Document No] like 'ICT*', 'Trade Counter' , 'Head Office')

Or

=if(Left([Document No],3) = 'ICT', 'Trade Counter' , 'Head Office')

MK_QSL
MVP
MVP

easiest way is to create a flag in script just below [Document No] as below...

=IF(WildMatch([Document No],'ICT*'),'Trade Counter' , 'Head Office') as Flag


Now use Flag as List Box