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: 
Not applicable

different conditions

Hi!

is anyone know

in theory ...why it't the same?

sum( if(aggr(sum({<bg_t={'*'} >}Quantity),AffiliateID,Holding,mes,mes_a )>0
and
mes = mes_a
,1,0))

works

sum(if(aggr(sum({<bg_t={'*'}}, mes = mes_a >}Quantity),AffiliateID,Holding,mes,mes_a )>0 ,1,0))

not works

2 Replies
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi ,

Try this expression

sum(if(aggr(sum({<bg_t={'*'}}, mes = p(mes_a) >}Quantity),AffiliateID,Holding,mes,mes_a )>0 ,1,0))

Not applicable
Author

Hi! thank you for help.  result stil not for each row:

countrymes_asum( if(aggr(sum({<bg_t={'*'} >}Quantity),AffiliateID,Holding,mes,mes_a )>0
and mes = mes_a
,1,0))
sum(if(aggr(sum({<bg_t={'*'}, mes = p(mes_a) >}Quantity),AffiliateID,Holding,mes,mes_a )>0 ,1,0))
England2012013131004
England2012023281004
England2012033631004