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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
mohamed_ahid
Partner - Specialist
Partner - Specialist

max of aggr ignoring filter

HI

in the sample below i'm trying to have the max of sum(value ) of all clients  .until now everything is ok .

But once i choose a client the max change depending on my choice .

how can i make my max(aggr()) function ignore the selection ?

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

Try:

=max({1}total

    aggr(

         sum({1<week= {">=$(=1)<=$(=9)"}> } value),

          [client]

         ) )

Hope this helps!

View solution in original post

7 Replies
jerem1234
Specialist II
Specialist II

Try:

=max({1}total

    aggr(

         sum({1<week= {">=$(=1)<=$(=9)"}> } value),

          [client]

         ) )

Hope this helps!

MK_QSL
MVP
MVP

Max({1}Total Aggr(SUM({1<week = {">=1<=9"}>}value),client))

maxgro
MVP
MVP

maybe adding a client=

max(total {<week= {">=$(=1)<=$(=9)"},client=> } value)

mohamed_ahid
Partner - Specialist
Partner - Specialist
Author

Thx everybody you are awesome like always .

i have posted another question related to this one , check it out http://community.qlik.com/message/604319#604319

regards

mohamed_ahid
Partner - Specialist
Partner - Specialist
Author

Hi,

sorry i have a question concerning your formula .

last time you have suggeted me to use :

=max({1}total

    aggr(

         sum({1<week= {">=$(=1)<=$(=9)"}> } value),

          [client]

         ) )


supposing that i add a filter in my sheet and i want to excluse the selection on my formula .

i should use the set analysis :[Field]=e([Field]) .

my question is how to use it inside the max function ?


Thx


MayilVahanan


Hi

Try like this

If you want to exclude the selection of the field. Then try like this

=max({1<Field = >}total

    aggr(

         sum({1<week= {">=$(=1)<=$(=9)"}, Field=> } value),

          [client]

         ) )

If you want to include the exclusion of the selection in your formula. Then try like this

=max({1<Field = e([Field])>}total

    aggr(

         sum({1<week= {">=$(=1)<=$(=9)"}, Field=e([Field])> } value),

          [client]

         ) )

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
mohamed_ahid
Partner - Specialist
Partner - Specialist
Author

i have already tried this and the exclusion  is not working .

when i use the formula in a table where the exluded dimension is displayed , i still see the excluded values .