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

Help creating a qvds into Yearly-monthly folders in an automated refreshed qvw daily

I need help please with the load script creating a qvd file. The qvd file should be created daily as the app gets reloaded daily automatically. 

My data source is a webfile i am scrapping in a csv format: challenge with that is that it doesn't have any date field in it. when even you read the file it will give you last 24 hours data. therefore in my load script i used this:

Let vToday = Today();

JHT:

LOAD

'$(vToday)-1' as Date_JHT,
country as Country_JHT,
count as Count_JHT


FROM
[http://voiptools.in.telstra.com.au/wi3s/regv2/vowifioverseas.php?output=csv]
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

This does the trick however i plan to run this script everyday and want to create a qvd for each day in year folder-.month folder which has all the dates for that month.

How do i go about this please?

 

 

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI @rt_new_user 

try like below

Let vYear = Year(Today()-1);

Let vMonth = Month(Today()-1);

Let vDate = Date(Today()-1 ,'YYYYMMDD');

JHT:

LOAD

'$(vDate)' as Date_JHT,
country as Country_JHT,
count as Count_JHT


FROM
[http://voiptools.in.telstra.com.au/wi3s/regv2/vowifioverseas.php?output=csv]
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

store JHT into urrootfolder/$(vYear)/$(vMonth)/JHT_$(vDate).qvd(qvd);

for ex: if you load the app today, Daily qvd stored into urrootfolder/2020/dec/JHT_20201214.qvd .

Hope it helps

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI @rt_new_user 

try like below

Let vYear = Year(Today()-1);

Let vMonth = Month(Today()-1);

Let vDate = Date(Today()-1 ,'YYYYMMDD');

JHT:

LOAD

'$(vDate)' as Date_JHT,
country as Country_JHT,
count as Count_JHT


FROM
[http://voiptools.in.telstra.com.au/wi3s/regv2/vowifioverseas.php?output=csv]
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

store JHT into urrootfolder/$(vYear)/$(vMonth)/JHT_$(vDate).qvd(qvd);

for ex: if you load the app today, Daily qvd stored into urrootfolder/2020/dec/JHT_20201214.qvd .

Hope it helps

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
rt_new_user
Contributor III
Contributor III
Author

Thanks for your help. It works like a charm 🙂