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: 
bmac27
Contributor
Contributor

Getting .QVD by Month for a Range of Dates (Load editor)

I have a script that loads a range of dates based on a variable set.

let vStart = '2/3/2017';
let vEnd = '4/19/2024'

TEMP:
LOAD
ID,
Date,
Status,
Type,
Amount,
Customer,
FROM [lib://DataFiles/data_exam_raw.xlsx]
(ooxml, embedded labels, table is Data)
WHERE (Date >= '$(vStart)' AND Date <= '$(vEnd)') ;

How can I implement a loop to take this data range and load into a qvd by month? I know it would be a 'store data into' with a variable for the name, but how would I loop to retrieve that name within the range.

EX: 'Feb_2017.qvd'

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

See the example here of splitting data into QVD by month.

https://qlikviewcookbook.com/2022/03/how-to-segment-qvd-files/

You would load your TEMP table as shown and then process the Resident TEMP table as shown in the blog post. 

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

See the example here of splitting data into QVD by month.

https://qlikviewcookbook.com/2022/03/how-to-segment-qvd-files/

You would load your TEMP table as shown and then process the Resident TEMP table as shown in the blog post. 

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com