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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
aatish12345
Creator II
Creator II

Bypassing field (filter) is not working in aggr function

Hi All, I have a expression in below format

Aggr(

If(Aggr(NODISTINCT Max(date(SampleDateField)), country, state, city) = [SampleDateField]

,avg([SALES])), country, state, city,SampleDateField)
       )

In above expression I want to bypass [EmployeeName] field, so that after selecting EmployeeName from filter the result of expression should not change., but it is getting difficult for me to achieve the same , as after adding that field in set analysis , the filter is still getting applied to the result. I have also used Only function but it is also not helping.

 

Please suggest any workaround

Aatish 

Labels (2)
2 Replies
Chanty4u
MVP
MVP

Try this s

Aggr(

    If(

        Aggr(NODISTINCT Max(date(SampleDateField)), country, state, city) = [SampleDateField],

        Avg({$<EmployeeName=>} [SALES])

    ),

    country, state, city, SampleDateField)

aatish12345
Creator II
Creator II
Author

Let me get back