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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Mistake in expression

Hi All, 

I have a below epression which is giving red higligh can anyone please help me on this. 

smilingjohn_0-1594959526697.png

=sum(aggr(sum({<Date>}aggr({<Date>} if(count({<Date>}ID)>0,count({<Status={'Open'},Date>}ID),
above(total column(1))),(Date, (NUMERIC, ASCENDING)))),Date))* avg(1)

 

Thanks in Advance

 

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

This is probably the question regarding my reply here

https://community.qlik.com/t5/New-to-QlikView/Weekend-counts/m-p/1728683#M391298

set within Aggr works fine within Qlik sense as I was working in qlik sense. But if it doesn't work for you in QlikView then you can remove it and try what @sunny_talwar suggested

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Why are you doing Sum(Aggr()) twice? Try this

=Sum({<Date>}Aggr(If(Count({<Date>}ID) > 0, Count({<Status={'Open'}, Date>} ID), Above(TOTAL Column(1))), (Date, (NUMERIC, ASCENDING))))
*
Avg(1)

 

Kushal_Chawda
MVP
MVP

This is probably the question regarding my reply here

https://community.qlik.com/t5/New-to-QlikView/Weekend-counts/m-p/1728683#M391298

set within Aggr works fine within Qlik sense as I was working in qlik sense. But if it doesn't work for you in QlikView then you can remove it and try what @sunny_talwar suggested