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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
brijeshvma
Partner - Creator
Partner - Creator

how to make Aggr with set analysis

Hi All,

I have one Expression as say : Sum(Aggr(Visits,VisitFull))

and i am making one WTD Condtion in Calander Script :

If( Weekday(Date) <= Weekday(Today()-1), 1, 0) as IsInWTD ...

So i Currently i am putting Sum({<IsInWTD={1}>}Visits) .... But i want Aggr this Expression on VisitFull...

So i want to Use This Set Analysis : {<IsInWTD={1}  In Sum(Aggr(Visits,VisitFull))  Aggre expression...

Kinldy Help me on this

1 Solution

Accepted Solutions
ahmar811
Creator III
Creator III

hi

Brijesh Maurya

try this

expression

=Sum({<IsInWTD={1}>}Aggr(Visits,VisitFull))

hope this help you

Thanks & Regards

Ahmar Ansari

View solution in original post

5 Replies
MK_QSL
MVP
MVP

SUM( Aggr(Sum({<IsInWTD={1}>}Visits),VisitFull))

Chanty4u
MVP
MVP

try this

if(sum(aggr(sum({<IsInWTD={1}>}visits),visitfull))

or

sum(aggr(sum({<IsInWTD={1}>}visits),visitfull)

swuehl
MVP
MVP

Or even

SUM({<IsInWTD={1}>} Aggr(Sum({<IsInWTD={1}>}Visits),VisitFull))


Set Analysis in the Aggr function

ahmar811
Creator III
Creator III

hi

Brijesh Maurya

try this

expression

=Sum({<IsInWTD={1}>}Aggr(Visits,VisitFull))

hope this help you

Thanks & Regards

Ahmar Ansari

jonathandienst
Partner - Champion III
Partner - Champion III

What purpose does the Aggr() serve? In most cases, Sum(Aggr(Sum({.} F1), F2) is the same as Sum(F1) and much more expensive to calculate. If you are trying filter, then rather use something like:

Sum({<F2 = P(F2)>} F1)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein