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

two conditions in one sum dimention

Hi

Tell me please who know, can i use something like this:

Aggr(sum({<year={"2012"},id=>} sum({<bg_t={'*'},id=>} Quantity_i)),AffiliateID, Id,mes)

in field whith expression i need to sum Quantity_i by 2 conditions:

1. Only 2012 by year

2. Only bg_t that is not null

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression

Aggr(sum({<year={"2012"}, bg_t={'*'},id=>} Quantity_i),AffiliateID, Id,mes)

Regards,

Jagan.

View solution in original post

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression

Aggr(sum({<year={"2012"}, bg_t={'*'},id=>} Quantity_i),AffiliateID, Id,mes)

Regards,

Jagan.

Not applicable
Author

thank you very-very much !