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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
xyz20
Contributor II
Contributor II

Average in KPI

Is there anyway to take average in KPI card and how to exclude null entries in KPI measure ??

2 Replies
ggijben
Partner - Creator II
Partner - Creator II

Hi, 

You could use something like

 AVG( {< Value = {"*"}>} Value)

so you'll only calculate the average of the rows which contain an actual value in column "Value".

Qrishna
Master
Master

By Default, the AVG() function in Qlik does not include null values. you dont need to do anything. but remember it also excludes the Dim field value from count that has corresponding null value while calculating the AVg. below is an example:

data:
load * inline [
Year, Sales
2024,500
2023,400
2022,
];

Avg.PNG

Notice how Avg() is automatically ignoring null value and its corresponding dim value.