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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
felcar2013
Partner - Creator III
Partner - Creator III

calendar not showing values

hi

do you have an idea, why my calendar in the productive enviroment is not loading correctly (it does not load any record) while in the development environment, same record, it works perfectly

There is even no error message, to see what is wrong, the end result is that i have no field values in my calendar

here is the code i use in both documents (development, productive)


LET varMinDate = Num(Peek('%CALENDAR__transactions__DATE',0,'transaction'));

LET varMaxDate = Num(Peek('%CALENDAR__transactions__DATE',-1,'transaction'));

LET varToday = num(Today());

CALENDAR_dummy:

LOAD date($(varMinDate)+IterNo()-1) as Datumsfeld

AUTOGENERATE 1 WHILE $(varMinDate)+IterNo()-1<= $(varMaxDate);

CALENDAR:

LOAD *,

AutoNumber(transaction_date_monthyear, 'PeriodID') as [Period ID];

LOAD Datumsfeld as %CALENDAR__transactions__DATE,

    
Datumsfeld as transaction_date,

    
week(Datumsfeld) as transaction_date_week,

    
year(Datumsfeld) as transaction_date_year,

    
month(Datumsfeld) as transaction_date_month,

    
weekday(Datumsfeld) as transaction_date_weekday,

    
date(monthstart(Datumsfeld), 'MMM-YYYY') as transaction_date_monthyear,

          'Q' &
ceil(month(Datumsfeld)/3) as transaction_date_quarter,

    
year(Datumsfeld)&'-' & week(Datumsfeld) as transaction_date_yearweek,

    
InYearToDate(Datumsfeld, $(varToday),0) * -1 as CurYTDFlag,

    
InYearToDate(Datumsfeld, $(varToday),-1) * -1 as LastYTDFlag

RESIDENT CALENDAR_dummy Order by Datumsfeld asc;

DROP TABLE CALENDAR_dummy;


11 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Did u check that? Let me know whether tht was the problem or not.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
felcar2013
Partner - Creator III
Partner - Creator III
Author

thanks, i reload again my source qvws and it worked. It seems my order by did not work initially, and the variable took just the first date. The issue is solved

thanks

felipe