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: 
Not applicable

Date

Thanks in Advance

Madhu

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

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)';

tresesco
MVP
MVP

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;