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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Tim_Griffith
Contributor
Contributor

Trouble with KPI set analysis query

I'm having trouble with a KPI set analysis query.

 

I'm trying to get the average of all vulnerabilities over the SLA date that are open, in progress, and critical.

past_sla is a boolean (0 or 1).

 

avg({<[past_sla]={"> 0"}, [status]={"OPEN", "IN_PROGRESS"}>} If([severity]="CRITICAL",[vuln_age]))

 

 Unfortunately, this query doesn't return anything but a hyphen, which I assume simply means error of some sort.

 

Any ideas what's wrong with the query? Thanks!

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

I belive it is your if condition statement that is causing you trouble. 

Maybe this will help:

avg({<[past_sla]={"> 0"}, [status]={"OPEN", "IN_PROGRESS"},[severity]={"CRITICAL"}>} [vuln_age])

View solution in original post

2 Replies
Vegar
MVP
MVP

I belive it is your if condition statement that is causing you trouble. 

Maybe this will help:

avg({<[past_sla]={"> 0"}, [status]={"OPEN", "IN_PROGRESS"},[severity]={"CRITICAL"}>} [vuln_age])

Tim_Griffith
Contributor
Contributor
Author

Thanks! That seemed to do it.