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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel1908
Creator
Creator

OR Function in the expression

Hello together, 

I am using the below expression, this works fine. 
Now I want to add an OR Function with different details (Product=AD,Status=LR3,Text does not include *Spare* or *New*.

=Count( {<Product={"AR"},[Status]={"LR2","LR1"},Text-={"*Spare*","*New*"}>}Materialnumber)

I have a filter problem as well, currently it is not possible to select the text. 
If I put an * before the =  it works, but only without the -. 

Text*={"*Spare*","*New*"}

Any Idea how to get this solved?

Kind Regards, 
Daniel

1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi @Daniel1908 

Try like below

=Count( {<Product={'AR'},[Status]={'LR2','LR1'},Text-={"*Spare*","*New*"}>+

<Product={'AD'},[Status]={'LR3'},Text-={"*Spare*","*New*"}>}Materialnumber)

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

View solution in original post

3 Replies
salonicdk28
Creator II
Creator II

Try this once-

=Count( {<Product={"AR"},[Status]={"LR2","LR1"},Text=e({<Text={"*Spare*","*New*"}>})>}Materialnumber)

 

MayilVahanan
MVP
MVP

Hi @Daniel1908 

Try like below

=Count( {<Product={'AR'},[Status]={'LR2','LR1'},Text-={"*Spare*","*New*"}>+

<Product={'AD'},[Status]={'LR3'},Text-={"*Spare*","*New*"}>}Materialnumber)

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

Hi Mayil, 

this works, thanks for your help. 

Kind Regards, 
Daniel