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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
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
Champion III
Champion III

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)

)