Qlik Community

Qlik Sense App Development

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

dennisnet
Valued Contributor III

Chancing the default value for missing data from '-' to zero

Hi,

I am trying to chance the default value for missing data from '-'  to 0

For example, in this pivot table the dimensions on the left has only data in some years.

The other years give a '-' , I want to change that to the number zero

Pivot.PNG


Because the there is no data the IF (ISNULL   ... or IF(LEN( .... trick is not a solution.

In  Qlikview it can be done on the presentation tab.

Knipsel.PNG

But I can not find this setting in Qlik Sense.

Any suggestions?

Thanks,

Dennis.

Tags (2)
9 Replies

Re: Chancing the default value for missing data from '-' to zero

Hi Dennis,

It is not possible as of now, because there is no setting available do to that.

You should look for some extensions from Branch.Qlik.com

Regards,

Kaushik Solanki

dennisnet
Valued Contributor III

Re: Chancing the default value for missing data from '-' to zero

Ok thanks Kaushik.

Any suggestions for the extension are welcom :-)

vkish16161
Contributor III

Re: Chancing the default value for missing data from '-' to zero

‌You can use the Alt function in qlik. But this will work if your output is a numeric format.

For e.g.

Dimension :     Year

Measure :  Alt ( Sum(Sales) , 0 )

This will give zero as the output if the value is a '-'  

MVP
MVP

Re: Chancing the default value for missing data from '-' to zero

Alt() is good for nulls, but will not help for missing values. Missing values are never calculated.

vkish16161
Contributor III

Re: Chancing the default value for missing data from '-' to zero

True.. but in this case Alt will work, I believe. Because, missing value is rendered as a null.

dennisnet
Valued Contributor III

Re: Chancing the default value for missing data from '-' to zero

Nope , ALT() is not working.

These are missing values.

vkish16161
Contributor III

Re: Chancing the default value for missing data from '-'  to zero

can you share the dimension and expression please?

Highlighted
dennisnet
Valued Contributor III

Re: Chancing the default value for missing data from '-' to zero

You can reproduce this situation with any 2 dimensions and any expression.

As long as there are missing values it shows a '-' in a pivot table.

I would like the default not to be '-' but 0.

richard
Contributor

Re: Chancing the default value for missing data from '-' to zero

In your script; just use the map syntax:

F.e.

map <<Your field that can contain nulls>> using Nullmap

For your Nullmap you can use a inline table:

NullValue, NullPresentedWith

null(), 0