Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nicogene
Partner - Contributor III
Partner - Contributor III

Replace missing by 0 (numeric format) in pivot table

Dear all,

In a pivot table, I would like to replace missing value by 0 (numeric) but it doesn’t work.

Below my formula:

=num(if(IsNull( Count(Distinct SKey)),0,Count(Distinct SKey)),'# ##0')

Many thanks in advance for your help.

PS: a .qvw file is available in attachment.

Kindest regards,

Nicolas.

1 Solution

Accepted Solutions
rubenmarin

Hi, chandel is right, but you need to apply the same logic you are using in transactions expression to the avg expression:

=num(if(IsNull(Sum(Invoiced)/Count(Distinct SKey)),0,Sum(Invoiced)/Count(Distinct SKey)),'# ##0')

View solution in original post

14 Replies
NickHoff
Specialist
Specialist

You don't need to use an if statement.  In your Presentation tab there is an option to populate missing cells, the default is -, you can change it to anything you'd like.

agomes1971
Specialist II
Specialist II

Hi,

If you go to presentation tab replace null symbol '-' for 0.

Is that what you want ?

HTH

André Gomes

ste_berbenni
Partner - Contributor II
Partner - Contributor II

Hi Nicolas,

you can open chart Properties, tab Presentation and in the bottom of the windows set "Missing symbol" like '0'

Regards,

Stefano

nicogene
Partner - Contributor III
Partner - Contributor III
Author

Thanks for your reply.

With tab presentation, the problem is the following: it's a text format and not a numeric value.

Thanks  for your return.

Kindest regards,

Nicolas.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

On the Presentation tab, select the field and then "right" for text alignment.

-Rob

nicogene
Partner - Contributor III
Partner - Contributor III
Author

Thanks for your response.

But when I realize an export to MS Excel, the format is text. I would like

to replace missing value by numeric value.

Kindest regards,

Nicolas.

Le mercredi 28 janvier 2015, Rob Wunderlich <qcwebmaster@qlikview.com> a

écrit :

Anonymous
Not applicable

Hi Nicolas

Actually when you checked suppress Zero Values . Qlikview consider 0 as null or missing. So just uncheck the option it will work.

Let em know if you are looking for something else.

Not applicable

Hi Nicolas,

PFA.

Thanks,

Chiru

Anonymous
Not applicable

Sorry forget to attach the solution.

PFA