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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

Date fields

Hi All,


Could anyone help me with creation of date fields(Year,Month, Day) to my autogenerate table below, so that i can use as list boxes in front end of my app-

LOAD

  WeekStart(date(Today() - RecNo()*7)) as Weekstart,

  WeekEnd(date(Today() - RecNo()*7)) as Weekend

autogenerate 100;

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use a preceding load:


LOAD *,

     Year(Weekstart) as Year,

     Month(Weekstart) as Month,

     Week(Weekstart) as Week,

     Day(Weekstart) as DayWeekstart,

     Day(Weekend) as DayWeekend;

LOAD

  WeekStart(date(Today() - RecNo()*7)) as Weekstart,

  WeekEnd(date(Today() - RecNo()*7)) as Weekend

autogenerate 100;


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use a preceding load:


LOAD *,

     Year(Weekstart) as Year,

     Month(Weekstart) as Month,

     Week(Weekstart) as Week,

     Day(Weekstart) as DayWeekstart,

     Day(Weekend) as DayWeekend;

LOAD

  WeekStart(date(Today() - RecNo()*7)) as Weekstart,

  WeekEnd(date(Today() - RecNo()*7)) as Weekend

autogenerate 100;


talk is cheap, supply exceeds demand
surajap123
Creator III
Creator III
Author

Thanks you so much Gysbert !!