Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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))