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: 
amien
Specialist
Specialist

whats wrong with this syntax?

SUM(IF(
Bird = 'Eagle' AND
WILDMATCH(Food , '*All_*')
,Value))

This Works...

Doenst Work

SUM(IF(
Bird = 'Eagle' AND
WILDMATCH(Food , '*All_*') AND

COUNT(TOTAL <Kind> Country) = 2
,Value))

Last Exp gives a problem, What i'm i missing at the syntax?

1 Solution

Accepted Solutions
disqr_rm
Partner - Specialist III
Partner - Specialist III

You cannot do nested agreegration unless using AGGR. Try playing with AGGR function. Otherwise you would need to adjust in your script and have new field, which could be a count of County groupped by Bird and the Food, based on what you are trying to do.

View solution in original post

1 Reply
disqr_rm
Partner - Specialist III
Partner - Specialist III

You cannot do nested agreegration unless using AGGR. Try playing with AGGR function. Otherwise you would need to adjust in your script and have new field, which could be a count of County groupped by Bird and the Food, based on what you are trying to do.