Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Gurus,
I have a Sales table ,my requirement is i need to write a condition on top this table like to load this table only the weekday = friday ,If it is not Friday the table should not run. How will i write condition.Please help me.
-Sateesh
Try something like this for a sample:
IF WeekDay(Today()) = 'Thu' then
Table:
LOAD Today() as Date
AutoGenerate 1;
ELSE
Table:
LOAD AddYears(Today(), -1) as Date
AutoGenerate 1;
ENDIF;
Try this may be:
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';
IF WeekDay(Today()) = 'Fri' then
Table:
LOAD ...
ENDIF;
Hi Sateesh,
Can you please provide some sample qvw with the table to make it clear where you want to write the condition.
Try something like this for a sample:
IF WeekDay(Today()) = 'Thu' then
Table:
LOAD Today() as Date
AutoGenerate 1;
ELSE
Table:
LOAD AddYears(Today(), -1) as Date
AutoGenerate 1;
ENDIF;
PFA
I guess you forgot to attach the attachment.
hi sateesh,
Open new qlikview document copy past below code , insted of fri day i mentioned thus day,because to show the table
if u want to run the table only friday than u can mention 'fri'. So now with below code it will only open on thurs day.
Code:
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';
IF WeekDay(Today()) = 'Thu' then
ENDIF;
Table:
LOAD *
Inline
[
A
B
C
]
Regards
Gireesh.