Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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