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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date

Thanks in Advance

Madhu

Labels (1)
5 Replies
sujeetsingh
Master III
Master III

Use make date function and Auto script to create dates

follow this Creating A Master Calendar

Peter_Cammaert
Partner - Champion III
Partner - Champion III

What is your question?

BTW the NEXT keyword is missing at the end of your script.

Kushal_Chawda
MVP
MVP

try

let vMinDate = MakeDate(2015,01,01);

LET vMaxdate = MakeDate(2015,01,31);

LOAD date('$(vMinDate)'+IterNo()-1,'DD/MM/YYYY') as Date

AutoGenerate(1)

While '$(vMinDate)'+IterNo()-1 <= '$(vMaxdate)';

tresB
Champion III
Champion III

Load

  Date(MakeDate(2015,1,RowNo())) as Date

AutoGenerate 31;

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Try this code

FOR i = 1 TO 30

    LET vDate = MakeDate(Year(Today()),$(i),$(i));

   

    Case_Data:

    LOAD

     MONTH('$(vDate)')        AS  Case_Month,

     DATE('$(vDate)')        AS Case_Date

AutoGenerate (1)

;

NEXT i;