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: 
reporting_neu
Creator III
Creator III

Load Script: Max(Date) Group by

Hello,

I have a problem with the max (date) and grouping.

I only need the data with the highest date of occurrence "Part, Storagearea, Storagelocation, Storageplace".

Qlik wants me to include the quantity in the grouping. But then I have the same result as before.

NoConcatenate
TMP2:
Load

  Part
, Storagearea
, Storagelocation
, Storageplace
, max(date(InventurDate)) as InventurDate
, Quantity

From [$(SCRIPT_PATH_PA_TRANSFORM)table.qvd](qvd)
Group by
  Part
, Storagearea
, Storagelocation
, Storageplace
;

If I add the "InventurDate", it doesn't work either.

Can you help me please?

1 Solution

Accepted Solutions
reporting_neu
Creator III
Creator III
Author

I have the solution. I have to add up the quantiy.

Like:

Sum(Quantity) as Quantity

View solution in original post

1 Reply
reporting_neu
Creator III
Creator III
Author

I have the solution. I have to add up the quantiy.

Like:

Sum(Quantity) as Quantity