Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
Could you please help me with the script below?
I need to import the measurements from the last 30 days (this is already done and it works) and for each datetime the min value and max value corresponding to that datetime.
What should I add to the script below?
Many thanks.
M.
[measurements]:
LOAD
[id] AS [measurements.id],
[deviceid],
[datetime] AS [measurements.datetime],
Date(floor([datetime]) , 'DD/MM/YYYY') as [measurements.date],
[value],
[measurementlistid];
SELECT id,
deviceid,
datetime,
`value`,
measurementlistid
FROM ebdb.measurements
WHERE datetime >= '$(v30DaysAgo)'
MinMax:
LOAD
[measurements.datetime]
Min(value) as MinValue,
Max(value) as MaxValue
Resident measurements
Group by [measurements.datetime]
;
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com