Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Friends,
Need a small help
I am having a field called Receipt date
I want to calculate Minimum Receipt Date only in script
I am using
Load
Min(Receipt Date) as Minimum Date
from xyz.qvd
But it is showing error
could any one of you help how to write this inn script level
Thank you,
Satya
try dis
Load*,
Min(Date(Receipt Date)) as MinimumDate
from xyz.qvd
Could it be that your load-statement is missing a fileformat like: from xyz-qvd (qvd);
- Marcus
Further helpful is this: “Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook
- Marcus
Please post screenshot of your script...
Try this
Load
Min(Date([Receipt Date])) AS ReceiptDate
From xyz.qvd ;
Load
Min(Date([Receipt Date])) AS ReceiptDate
From xyz.qvd ;
Dear Satya,
Can you share your .qvd file?
I think, you are facing error "invalid expression" due to aggregate function "Min()". Please load one more field and use group by clause.
Kind regards,
Ishfaque Ahmed
maxmindate:
load
DATE(min(FieldValue('dateField',RecNo()))) as minDate,
DATE(max(FieldValue('dateField',RecNo()))) as maxDate
AutoGenerate FieldValueCount('dateField');
this is also one of the way to get the minimum or max date
Hi,
try this one may be it will work
=Aggr(Max([Column_name]),ID)
while using the aggregation functions, you have to use group clause.
Load Key_Field,
Min(Receipt Date) as Minimum_Date
from xyz.qvd
group by key_Field;