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: 
Not applicable

set analysis expr checking

hi,

pls check, not showing data.

sum(

{<Set_ID = {1}>}

IF(GetSelectedCount(QuarterFlag)>0,MonthOpenFlag,Count({<WeekNo={">=$(=Max(WeekNo)-12)<=$(=Max(WeekNo))"}>}WeekOpenFlag)))

Regards,

Sub2u444

2 Replies
Chanty4u
MVP
MVP

any errors?

try

sum(

{<Set_ID = {'1'}>}

IF(GetSelectedCount(QuarterFlag)>0,MonthOpenFlag,Count({<WeekNo={">=$(=Max(WeekNo)-12)<=$(=Max(WeekNo))"}>}WeekOpenFlag)))

swuehl
MVP
MVP

That's because your embedding an aggregation function into another aggregation function, so in general, you would need to use advanced aggregation aggr() function if you want to do this.

But maybe you want to do it like

IF(GetSelectedCount(QuarterFlag)>0,

sum({<Set_ID = {1}>} MonthOpenFlag),

Count({<WeekNo={">=$(=Max(WeekNo)-12)<=$(=Max(WeekNo))"}>}WeekOpenFlag)

)