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: 
suvechha_b
Creator III
Creator III

How to write the following expression correctly ?

How to write the expression correctly,

Eg,

I have three option in category_ of_sales : Processed, Unprocessed, Unspecified.

But, My requirement is I need to show only 'Unprocessed' and 'Unspecified' reports for a specific tab.

I tried this , but giving error.

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales<>'Processed'>} Amount)

1 Solution

Accepted Solutions
sasikanth
Master
Master

Try this

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales={'*'}-{'Processed'}>} Amount)

View solution in original post

5 Replies
Not applicable

Try:


sum({$<TranType = {'$(vAmountType)'},[Fiscal_Year]=,[Month]=,category_of_sales-={'Processed'}>} Amount)

sasikanth
Master
Master

Try this

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales={'*'}-{'Processed'}>} Amount)

Mark_Little
Luminary
Luminary

Hi

Try

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales-={'Processed'}>} Amount)


Mark

Not applicable

try this

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales-={'Processed'}>} Amount)

effinty2112
Master
Master

Try:

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales-={'Processed'}>} Amount)

which will respect selections of 'Unprocessed' or 'Unspecified' in the category_of_sales field


Or:

sum({$<TranType = {$(vAmountType)},[Fiscal_Year]=,[Month]=,category_of_sales=-{'Processed'}>} Amount)

which is similar except that selections in the category_of_sales field will not be respected.


category_of_sales=-{'Processed'}


is the same as


category_of_sales={*} - {'Processed'} ie. ALL except 'Processed'.


Cheers