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: 
cafcptg2011
Creator
Creator

Penultimate date sales in dynamic table

Hi,

PROBLEM: Is to display last date of sales in a given period in dynamic tab. i have attached a qvw file to show better my problem.

thanks in advance,

cafc

5 Replies
Not applicable

is this what you need?

=aggr( min(total {< sales_date = {'>=$(=date('01-03-2010')) <$(=date('03-03-2011'))'}, val={">0"}>} sales_date),val)

cafcptg2011
Creator
Creator
Author

thank you for your answer, but indeed is not what i need. I need simply the max (date) in a given period of time, you see?

thanks

cafc

Not applicable

-

cafcptg2011
Creator
Creator
Author

yes, but with your expression will given wrong dates for others customers, you see? so i took your expression and i adapted to this :

=aggr( max( {< sales_date = {">=$(=date('01-03-2010')) <$(=date('03-03-2011'))"}, val={">0"}>} sales_date),id_customer)

and its seem to be working now.

so, thank you very much.

cafc

Not applicable

hadn't seen your reply, kept working on it and this works too

=max({< sales_date = {'>=$(=date('01-03-2010')) <$(=date('03-03-2011'))'},val={">0"}>} sales_date)