Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
jaweher89
Contributor III
Contributor III

display null as zero for aggr

I have the following expression

=if(AGGR(Stock, [Code Article]) = 0, [Code Article])

I need to display code Article for which stock =0 or stock is null, how to correct it ?

1 Solution

Accepted Solutions
Kush
MVP
MVP

You need to use aggregation function to use AGGR

aggr(if(sum(Stock) = 0, [Code Article]),[Code Article])

View solution in original post

2 Replies
Kush
MVP
MVP

You need to use aggregation function to use AGGR

aggr(if(sum(Stock) = 0, [Code Article]),[Code Article])

View solution in original post

sunny_talwar

Another option is to use this:

=Aggr(Only({<[Code Article] = {"=Sum(Stock) = 0"}>} [Code Article]), [Code Article])