Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.

9 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Ok thanks Kaushik.

Any suggestions for the extension are welcom 🙂

vkish16161
Creator III
Creator III

‌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 '-'  

jonathandienst
Partner - Champion III
Partner - Champion III

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

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vkish16161
Creator III
Creator III

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

Anonymous
Not applicable
Author

Nope , ALT() is not working.

These are missing values.

vkish16161
Creator III
Creator III

can you share the dimension and expression please?

Anonymous
Not applicable
Author

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
Partner - Creator
Partner - Creator

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