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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help in Set analysis 'And' operator

Hi,

As I need to exclude the values from the chart and the table if the status is 'A' and the Code is '#'

1. I would like to exclude the [Status] = 'A' and the [Code] =  '#', as I tried in the below but it exclude all Status 'A' invoices

=Count({$<[Status]-={'A'} , [Code]-={'#'}>}DISTINCT([Transactions]))

Regards

Chriss

1 Solution

Accepted Solutions
orital81
Partner - Creator III
Partner - Creator III

You can always add a flag field (in the script or as a variable)

that will something like this:

If ([Status] = 'A' and the [Code] =  '#',1,0)

Then your set analysis will be more simple and easy to adjust

Count({<Flag = {'1'}>} DISTINCT([Transactions]))

View solution in original post

6 Replies
nizamsha
Specialist II
Specialist II

=Count({$<[Status]={'*'} ,[Status]-={"A"}  [Code]-={'#'}>}DISTINCT([Transactions]))

tresesco
MVP
MVP

try:

Count({$<[Status]-={'A'} > * < [Code]-={'#'}>}DISTINCT([Transactions]))

orital81
Partner - Creator III
Partner - Creator III

You can always add a flag field (in the script or as a variable)

that will something like this:

If ([Status] = 'A' and the [Code] =  '#',1,0)

Then your set analysis will be more simple and easy to adjust

Count({<Flag = {'1'}>} DISTINCT([Transactions]))

CELAMBARASAN
Partner - Champion
Partner - Champion

May be like this

=Count({$<[Transactions]={"=[Status]<>'A' and [Code]<>'#'"}>} DISTINCT [Transactions])

or

Count({$-(<[Status]-={'A'} > * < [Code]-={'#'}>)}DISTINCT [Transactions])

MayilVahanan

HI

Try like this

Count({$-(<[Status]-={'A'} > * < [Code]-={'#'}>)}DISTINCT [Transactions])

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

Hi All,

Thanks for your valuable reply now the expression is working fine...

Regards

Chriss