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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
sat_tok52
Creator
Creator

Load Particular day

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

1 Solution

Accepted Solutions
sunny_talwar

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;

View solution in original post

6 Replies
sunny_talwar

Try this may be:

SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';

IF WeekDay(Today()) = 'Fri' then

     Table:

     LOAD ...

ENDIF;

Not applicable

Hi Sateesh,

Can you please provide some sample qvw with the table to make it clear where you want to write the condition.

sunny_talwar

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;

deepakqlikview_123
Specialist
Specialist

PFA

Not applicable

I guess you forgot to attach the attachment.

Anonymous
Not applicable

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.