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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to add condition SOURCE='TDSS' into sum(if(L5M='-1',sales/1000))

Hi All

My expression below is working fine :-

sum(if(L5M='-1',sales/1000))

I like to add condition below into above expression :-

SOURCE='TDSS'

sum(if(L5M='-1' & SOURCE='TDSS',sales/1000))

I try the above , it return null value.

Hope some one can help me.

Paul

1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Paul,

               Try:

=sum({$<L5M = {'-1'}, SOURCE = {'TDSS'}>}sales)/1000

Kind regards

Andrew

View solution in original post

3 Replies
paulyeo11
Master
Master
Author

my qvw

effinty2112
Master
Master

Hi Paul,

               Try:

=sum({$<L5M = {'-1'}, SOURCE = {'TDSS'}>}sales)/1000

Kind regards

Andrew

paulyeo11
Master
Master
Author

Hi Andres

Thank you very much.

Paul