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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
cm
Contributor II
Contributor II

Calculated Expression with Variables, Excluding Nulls

Probably a simple question and answer, but I'm trying to get an average of three variables, excluding null values from two of them. Looks like this...

Avg({<[COMPEX Score] -=null>}, <{OFTD Score] -=null>}, [Search Score])

Each of the "scores" are set variables.

 

Any help?

1 Solution

Accepted Solutions
Zhandos_Shotan
Partner - Creator II
Partner - Creator II

Try this

Avg({<[COMPEX Score] ={"*"}, [OFTD Score]={"*"}>} [Search Score])

View solution in original post

4 Replies
Zhandos_Shotan
Partner - Creator II
Partner - Creator II

Try this

Avg({<[COMPEX Score] ={"*"}, [OFTD Score]={"*"}>} [Search Score])
cm
Contributor II
Contributor II
Author

Zhandos,

 

I marked yours as the solution, but the expression you sent is actually only returning Avg([Search Score]). Why do you think that is?

Zhandos_Shotan
Partner - Creator II
Partner - Creator II

Hi,
I dont understand this: Each of the "scores" are set variables
Can you provide example file?
cm
Contributor II
Contributor II
Author

Zhandos,

The file contains sensitive info so I can’t send it, but the scores are just variables I created. I think I’ve figured it out. Thanks for the attention. CM