Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sebastianfaust
Partner - Creator
Partner - Creator

Null Values in Expression

Hi all, 

 

i have this pivot table:

sebastianfaust_0-1587461370288.png

i want to have a 0 instead of the dash.

how can i do that?

 

thanks and regards

Labels (2)
2 Replies
sebastianfaust
Partner - Creator
Partner - Creator
Author

this is the demo code:

Products:
load
*
inline
[
productID , productName
A, Apple
B, Banana
C, Car
D, Doll
E, Egg
];

Revenue:
load
*
inline
[
Customer, productID , revenue
Amazon, A, 10
Amazon, D, 20
Amazon, C, 30
Lidl, E, 30
];

Brett_Bleess
Former Employee
Former Employee

Check out the following Help link, believe that should get you on the right track, use the first function to specify the fields you want to include and in the second function you specify what you wish to replace Null with when encountered, so '0' in your case I believe.

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ValueHandlingVariables...

The following Design Blog post may be of some further help too:

https://community.qlik.com/t5/Qlik-Design-Blog/NULL-The-Invisible-Nothing/ba-p/1467674

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.