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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Monthly calendar

Good morning friends,

I'm try to create a Monthly calendar based on date field (in this case called Fecha) but i can't. The problem is with "MakeDate", so is not possible to send Month Number in a variable.


Can any one help me please?

Thanks in advanced.


My script:

LOAD * INLINE [

    Fecha

    30-10-2015

];//

Mes_limites:

load MonthStart(Fecha) as MinDate,

  MonthEnd(Fecha) as MaxDate

  Resident TMP;

LET vMonth = num(Month( Peek('MinDate',0,'Mes_limites')));

LET vMaxDay = num(Day(vMaxDate));

Load Date(RecNo()-1+MakeDate(2015,"&(vMonth)")) as Date Autogenerate $(vMaxDay);

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Maybe like this:

LOAD Monthstart(Date)+Iterno()-1 as Date

     While Monthstart(Date)+Iterno()-1 <= MonthEnd(Date);

LOAD date#(Fecha,'DD-MM-YYYY') as Date INLINE [

    Fecha

    30-10-2015

];


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Maybe like this:

LOAD Monthstart(Date)+Iterno()-1 as Date

     While Monthstart(Date)+Iterno()-1 <= MonthEnd(Date);

LOAD date#(Fecha,'DD-MM-YYYY') as Date INLINE [

    Fecha

    30-10-2015

];


talk is cheap, supply exceeds demand
Not applicable
Author

Great gwassenaar

Works fine, thanks!!!