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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Null() issue?

I have source application and target appliaction.while testing two applications the avg(Sal) is not coming correctly.

assume that in target some null values added extra compare to source.

so it will take avg means all the count of null values right?

how can i achieve it?

both sum(sal) is same value in source app and target app.

but Avg(sal) is not correct.

5 Replies
tresesco
MVP
MVP

Avg() disregards null values. You have alternative to use to include them, try your own formula for the same like:

Sum(Amt)/ Count (yourDim)

chrislofthouse
Partner Ambassador
Partner Ambassador

Is this in the script or in a chart in the dashboard?

Not applicable
Author

Hi,

In straight table i am using this expression like avg(Sal)

how cani achieve this if i have null values.the avg vl count the null value count also so

chrislofthouse
Partner Ambassador
Partner Ambassador

Are you positive it is nulls creeping into the calculation and not zero values, it would make more sense if it was the latter?

awhitfield
Partner - Champion
Partner - Champion

Hi Rakesh,

please see the attached example, is this what you require?

Andy