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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of Sales for current selection with Max Date

using set analysis how can i get total sale

i want sum of sales of max date

but if i select any year then it return sum of sale of that year of max date.

if i select any month then it return sales of max date for that month

15 Replies
Not applicable
Author

Use 1 instead of $ in set analysis

Not applicable
Author

plz suggest me full expression

er_mohit
Master II
Master II

Try this

sum({<Date={'<=$(=max(Date)'}>} Sale)

Not applicable
Author

not working

Not applicable
Author

Sum({<Date= {$(=max(Date))} >} Value)

tresesco
MVP
MVP

sum({<Date={'=$(=max({1}Date))'}>} Sale)

Update: for only max date no need of '<' sign.

ashfaq_haseeb
Champion III
Champion III

Hi,


Try below

sum({<Date={'=$(=max(Date)'}>} Sale)


Regards

ASHFAQ

Not applicable
Author

i think first i have to create a variable that store max date for current selection

after that use that variable in expression.

but how to do that i don't know.

ashfaq_haseeb
Champion III
Champion III

Hi,

Did you try my solution?

Regards

ASHFAQ