Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
MarcoLuk
Contributor II
Contributor II

Data missing when a field is null (Vague question, asking for some insight)

Hello. I know the question might be a bit vague but still would like to ask for your advice.

 

I encountered an issue that I have a set of data and I want to calculation the summation of them. Yet, when some rows of data has null fields, those rows of data are neglected in the calculation. Does anyone face similar issues before and how did you solve this problem? Thank you

Labels (4)
2 Replies
p_verkooijen
Partner - Specialist II
Partner - Specialist II

@MarcoLuk can you provide a sample of the data you have and what you want the output to be?

marcus_sommer

You will always need a dimension-value to be able to calculate anything against it. Depending on the data-set, the data-model and the object-dimensionality you may try approaches like:

rangesum(sum(Field), 0)
sum(Field) + sum({1} 0)
alt(sum(Field), 0.000000001)

but it won't work for all scenarios and may resulting in some side-effects.

Another method would be to populate the missing data within the data-model.