Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
load link_Sup_ADCNO, BeginningDateofSupervision + IterNo()-1 as Dup_analysis_date , S as Dup_S
from E:\Qlik\Development\2_Staging\QVD\Supervision.qvd(qvd)
while IterNo() <= Supervision_End_Date - BeginningDateofSupervision +1 ;
THis statement goes through about 60,000,000 adcno with date ranges starting from 1985 to 2016 but its taking about 40 minutes.
Is there anything I can do for limiting or tuning this data?
I cant use interval match or set analysis as I need these analysis dates for the dashboard
I am using a calendar and I need to create each date
THanks in advance to all who can assist
Rick
The while clause you are using results in the QVD not being loaded "optimized". As a result, it goes a lot slower then needed.
Two options:
Hello,
dön't know exactly how to use with your data, but as an idea:
load date($(vMinDate)+rowno()-1) as Date
AutoGenerate ($(vMaxDate)-$(vMinDate)+1);
rowno instaead of iterno
autogenerate instead of do while
Regards
Appreciate both ..will try both..
Question ..Onnno please provide example of flag field ,what field to create flag on ?
Thanks again
If you could explain what you are trying to calculate with this, I might be:
IterNo() <= Supervision_End_Date - BeginningDateofSupervision +1 ;
Its a while loop so the statement keeps looping with iterno() until the counter is met . Counter is provided by the Supervision_End_Date - BeginningDateofSupervision +1.
Thanks
Martin
I believe I am not doing something right as the rowno() option doesn't work when I have a table name in the load statement.
Can you assist in the syntax?
getrange:
LOAD link_Sup_ADCNO, BeginningDateofSupervision , Supervision_End_Date ,S,Supervision_End_Date - BeginningDateofSupervision +1 as counter
from E:\Qlik\Development\2_Staging\QVD\Supervision.qvd(qvd)
;
NoConcatenate
Sup_link:
load link_Sup_ADCNO, BeginningDateofSupervision + IterNo()-1 as Dup_analysis_date , S as Dup_S Resident getrange
while IterNo()-1<= counter ;
drop table getrange;
I am using the idea about the resident table and I am back to the performance being bad - its running again for more than 30 minutes
Any other ideas
Thanks
Rick