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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
gys1992infosys
Contributor III
Contributor III

How to ignore selection with aggr function

My measure is : sum(aggr(sum({<YR=,MO_DESC=,DY_CODE={'>=$(=Yearstart(Max(DY_CODE)))<=$(Max(DY_CODE))'}>}distinct BOTTLE_VOL_IN_HL+CAN_VOL_IN_HL+KEG_VOL_IN_HL),DELV_NUM)))

But it doesn't work , how to fix it .

1 Solution

Accepted Solutions
fabdulazeez
Partner - Creator III
Partner - Creator III

Try putting it set Analysis both the outer and the inner aggregation function

View solution in original post

4 Replies
Thiago_Justen_

Try this out:

sum({1}aggr(sum({<YR=,MO_DESC=,DY_CODE={'>=$(=Yearstart(Max(DY_CODE)))<=$(Max(DY_CODE))'}>}distinct BOTTLE_VOL_IN_HL+CAN_VOL_IN_HL+KEG_VOL_IN_HL),DELV_NUM)))

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
gys1992infosys
Contributor III
Contributor III
Author

Hi Thiago,

Its working, but its directly to fixed the month selection, I want that I select May,the value is January to May,

Now is always January to MaxDate.

fabdulazeez
Partner - Creator III
Partner - Creator III

Try putting it set Analysis both the outer and the inner aggregation function

gys1992infosys
Contributor III
Contributor III
Author

Thanks, Its working!