Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
turodionova
Contributor III
Contributor III

Sales Data for max Date

Hi!

I need to create report with sales data by customers related to the latest sales date for each.

Yellow lines in the table below are what i need to extract.

Capture.PNG.png

I use an expression: aggr(max(Date),[Customer]) and get right date for every Customer.

Then i try to use this expression for sales data: sum({$<Date={"=aggr(max(Date),[Customer])"}>}Sales) 

and get a wrong result.

Thanks in advance.

10 Replies
maxgro
MVP
MVP

try with

SubField( concat( Sales, '@', -Date), '@', 1)