Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

 

1 Solution

Accepted Solutions
Kushal_Chawda

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

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

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