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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
sagaraperera
Creator
Creator

except two product

Dear All

I Already use give below script to get a last year value in my script. But in this expression include all CLA_CODE  (eg-; FR,MR,MS,TT,SS ,ect...) Then I want to get a  value of except TT and  MR CLA_CODE using with given below expression.

Please help me.

=SUM({<TRAN_YEAR={'$(prioryear)'},TRAN_MONTH={'$(vPriorMonth-10)'},DESCRIPTION= {'NRP'} >} [Budget])

sagara

Labels (1)
4 Replies
Chanty4u
MVP
MVP

you can include the expresion below in to  your expression

CALCODE-={'VALUE1','VALUE2'}

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Try this ,

It wil exclude those both and gives for remaining.

=SUM({<TRAN_YEAR={'$(prioryear)'},TRAN_MONTH={'$(vPriorMonth-10)'},DESCRIPTION= {'NRP'},CLA_CODE  -={'TT','MR'} >} [Budget])

-Nagarjun

sagaraperera
Creator
Creator
Author

Dear Mr.Nagarjun


Thanks it is work

sagara

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

then kindly close this thread

-Nagarjun