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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Hoowling
Contributor III
Contributor III

Distinct values at max date

Hi community, 

In a chart, I want to calculate the "planned qty" per VKRIDN (order number) at the max date. 
An example of the raw data is found in below table.

 Capture.PNG

Basically I want the chart to show 576 units on 2020-07-01. 
Currently I'm using this formula: Sum(aggr(sum(Distinct[Planned qty]),VKRIDN)) - which puts the quantity at 2020-06-30.

Any suggestions on how to include a max(Date) function in the set analysis above? 

Regards,
Hoowling

Labels (2)
10 Replies
tresesco
MVP
MVP

May be you need implicit set like:

Sum({<Date*={"$(=Max({1} Date))"}>} [Planned qty])

 

Note the '*', intersection operator in red.