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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

Nprinting Advanced Search

Hello 
I have an Nprinting Report and I want to create a filter 
the filter should be defined on a field named BU
I want that BU is any value except  BU1 and BU2
kindly advise on how the syntax is under the Advanced search

I can walk on water when it freezes
Labels (2)
1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

=Count(Distinct {<Disease=-{'BU1','BU2'}>} BU)>0

optional you can use "1" to ignore any other filters you apply in that report: 

=Count(Distinct {1<Disease=-{'BU1','BU2'}>} BU)>0

 

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

4 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

=Count(Distinct {<Disease=-{'BU1','BU2'}>} BU)>0

optional you can use "1" to ignore any other filters you apply in that report: 

=Count(Distinct {1<Disease=-{'BU1','BU2'}>} BU)>0

 

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

just to clarify - there can be many other ways of writing this advanced search expression - i just use count(distinct.... syntax as I like to be able to use set analysis in it.

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
PrashantSangle

Create new field in dashboard which exclude those field values. & use that in your report.

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

HI @PrashantSangle 

That is not advanced search tip though - This is a valid solution but not appropriate to the question I will argue. Your solution does not require advanced search as you can simply create a flag in load script and use "Value is:" filter. 

So bottom line is: for advanced search option use my option or other advanced search expression you like to come up with or if you can access data model and add that new field use value is filter with flag.... 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.