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: 
alliedarmour
Contributor III
Contributor III

Ignoring Filter in AGGR Set Expression

Hello!

I wanr ro build a KPI for an average value of patients in the selected year - means I want to include the selected year as filter but want to use all 12 months and all quarters:

Avg(Aggr(Count(
{$<Quarter =, Month=> * (<FallBewegungKey = {"=Aggr(Count(ICD), FallBewegungKey) > 0"}> +
<FallBewegungKey = {"=Aggr(Count(Leistungsziffer), FallBewegungKey) > 0"}>)}
DISTINCT Fallnummer), Month))

But still, if I select a month via a table, the selection is still applied and the KPI changes accordingly, while it should be ignored.

What am I doing wrong in this place?

Labels (4)
3 Replies
BrunPierre
Partner - Master II
Partner - Master II

Try.

=Avg({<Quarter=,Month=>}Aggr(Count({<Quarter=,Month=>}{<FallBewegungKey={"=Aggr(Count ({<Quarter=,Month=>}ICD), FallBewegungKey) > 0"}> + <FallBewegungKey={"=Aggr(Count ({<Quarter=,Month=>}Leistungsziffer), FallBewegungKey) > 0"}>}DISTINCT Fallnummer), Month))

alliedarmour
Contributor III
Contributor III
Author

Hey, thanks for your solution, but unfortunately it's still not working 😐

alliedarmour
Contributor III
Contributor III
Author

But I figured out that the nested AGGR-functions are indeed the problem. If I delete them, it seems to be working. Any workaround for this?