Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
maasool
Contributor III
Contributor III

Store file once a week

Hello dear Qlik Community,

During data load it is possible to store files on drives. Every time data is loaded, file is stored. 

'store DATA into 'lib://P-QLIK/data.csv'(txt,delimiter is ';');'

Is it possible to store file only once a week (for example only on Wednesdays)? How to write this in code?


Thanks
maasool

Labels (1)
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi 

you can do something like 

if weekday(today()) = 2  then               ///counting start from zero for monday in default mode

      store DATA into 'lib://P-QLIK/data.csv'(txt,delimiter is ';');

end if

View solution in original post

3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

you can do something like 

if weekday(today()) = 2  then               ///counting start from zero for monday in default mode

      store DATA into 'lib://P-QLIK/data.csv'(txt,delimiter is ';');

end if

bramkn
Partner - Specialist
Partner - Specialist

if weekday(today()) = 3 then (weekday can start at different days so might be 2).
store ..............
end if

maasool
Contributor III
Contributor III
Author

Thank you both!