Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
sebastianolivar
Contributor II
Contributor II

the last date

Hello Comunity,


I am Sebastián. I have a little problem whit a expresion.

for example:

I have the sales of each stores with yours date of sales.

PROBLEM.JPG

I need a expression to get the last sale (according the date) to each Store. 

I tried with sum( {< Date sale= {"$(=date(max(Date sale)))"} >} Sales  , but its not working. 

2 Replies
Vegar
MVP
MVP

Try
Sum(
If( [Date sale]= max([Date sale]),Sales,0)
)
Anonymous
Not applicable

sum(if([Date Sale] = aggr(Max([Date Sale]),Customer,Store),Sales))