Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ashok1203
Creator II
Creator II

QVD Creation

Hi All,

I have a small requirement. Every month end i want create a month QVD for entire month and in current month i need to create a weekly QVD's and loads the data with previous months QVD. At end of the month Weekly QVDs has not been loaded i need to load only month end QVD. So i need this an automation.

Example: Now we are in September, 2016 (Current Month)

I want QVDs for September 1st to 4th

                         September 5th to 11th

                        September 12th to 18th

                        September 19th to 25th

and then month end QVD for entire month.The same i have to create every month (Current Month) automatically.

Please help on this....

AAK
1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

testTable:

LOAD * INLINE [

    F1

    a

    b

    n

    h

    y

];

LET vWeekEnd = num(WeekDay(Today()));

LET vMonthEnd = MonthEnd(Today());

LET vToday = Today();

IF vWeekEnd = 6 or vMonthEnd = vToday then

  STORE testTable into testTable$(vToday).qvd(qvd);

ENDIF

View solution in original post

4 Replies
giakoum
Partner - Master II
Partner - Master II

testTable:

LOAD * INLINE [

    F1

    a

    b

    n

    h

    y

];

LET vWeekEnd = num(WeekDay(Today()));

LET vMonthEnd = MonthEnd(Today());

LET vToday = Today();

IF vWeekEnd = 6 or vMonthEnd = vToday then

  STORE testTable into testTable$(vToday).qvd(qvd);

ENDIF

giakoum
Partner - Master II
Partner - Master II

Did it work for you?

ashok1203
Creator II
Creator II
Author

Thanks It's Working fine for me.

AAK
ashok1203
Creator II
Creator II
Author

Thanks It's Working fine for me.

AAK