Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
reporting_neu
Creator II
Creator II

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 II
Creator II
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 II
Creator II
Author

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

Like:

Sum(Quantity) as Quantity