Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

pnutbutta
New Contributor II

Showing null values as zero

Hello,

I'm creating a customer report where I need to bring in null values but the default is presenting the null as a "-". For my case I would like to show the null value as 0.

I'm not sure how to nest this in the measure below.

I'm bringing in customers that purchase pack 1022 and showing all products within the Pack range even if the customer does not currently purchase. The idea is to identify opportunities to sell to customers. I only need to change how the null value is presented.

Sum( {$< CustomerName = P({1<Product={'1022'}>}) , Pack -= {'50','52','54','58'} >} Qty )

 

Thanks!

Labels (2)
3 Replies
MVP & Luminary
MVP & Luminary

Re: Showing null values as zero

Alt( Sum( {$< CustomerName = P({1<Product={'1022'}>}) , Pack -= {'50','52','54','58'} >} Qty ), 0)

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

 

pnutbutta
New Contributor II

Re: Showing null values as zero

Thanks Rob.

 

However the pivot table is still showing "-"

MVP & Luminary
MVP & Luminary

Re: Showing null values as zero

If this is a cross table -- that is a dimension is a column -- then the "-" are missing values.  Not sure how to set those to something else in Sense.  Anyone else know?

-Rob