Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Automating a QVD fle

Hi,

I have a query which I run and it creates a QVD file.

In the opening statement I have

OLEDB Connect TO ........

Test_date:

Query Statement 1

-----------------------

-----------------------

STORE  Test_date into Test_date.qvd

Drop table Test_date;

Here I would like to know if there is anyway I can rename the date from Test_date to a actual date.

As I want to run this every day and want the date change with todays date.

Thanks-

2 Replies
luciancotea
Specialist
Specialist

SET vName = date(Today(), 'YYYYMMDD');

OLEDB Connect TO ........

Test_date:

Query Statement 1

-----------------------

-----------------------

STORE  Test_date into $(vName).qvd

Drop table Test_date;

Not applicable
Author

how to make monthly report replacing jan by M1.....DEC BY M12

I HAVE COME TO THIS POINT IN MY SCRIPT

OrderID,

     CustomerID,

     EmployeeID,

     OrderDate,

     Year(OrderDate) as Year,

     Month(OrderDate) as Month,

     'Q' & Ceil(Month(OrderDate)/3) as Quarter,

     Dual('Q' & Ceil(Month(OrderDate)/3) & '-' & Year(OrderDate),

     Year(OrderDate) & Ceil(Month(OrderDate)/3)) as QtrYear,