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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

System Calender

Client need system calendar instead of master calendar what does it mean

12 Replies
vardhancse
Specialist III
Specialist III

Hi,

Might be the normal calendar what they follow instead of company calendar

Not applicable
Author

what is normal calender

vardhancse
Specialist III
Specialist III

In general will have 2 calendars.

1.Normal calendar

     a. april to march    

2. fiscal calendar

     a.it depends on the country where the company is being operated.

like fiscal year may start from Jan to december

Not applicable
Author

but as per my client this is not depend on any of the transaction table. it work as per system date

svenkita
Creator II
Creator II

The following script will give you a auto generated calendar based on min and max date, the max date is calculated as current date + 60

LET vDateMin   = Num(MakeDate(2012,1,1));

LET vDateMax   = Floor(MonthEnd(Today()+60));

LET vDateToday = Num(Today());

TempCalendar:

LOAD  $(vDateMin) + RowNo() - 1      AS DateNumber,

      Date($(vDateMin) + RowNo() - 1) AS TempDate

      AUTOGENERATE 1

WHILE $(vDateMin)+IterNo()-1<= $(vDateMax);

      

Star_Calendar:

Load

     TempDate                                               As Star_Date,

     Week(TempDate)                                         As Star_Cal_Week,

     Day(TempDate)                                          As Star_Cal_Day,

     Month(TempDate)                                        As Star_Cal_Month,

     Num(Month(TempDate))                                   As Star_Cal_MonthNum,

     Year(Date(TempDate,'DD/MM/YYYY'))                      As Star_Cal_Year,

     Num(Num(Year(TempDate))& Num(Month(TempDate),'00'))    AS Star_Cal_YearMonth,

     Month(TempDate) &'-'&Year(Date(TempDate,'DD/MM/YYYY')) AS Star_Cal_YearMonthDesc,

     Weekday(TempDate)                                      As Star_Cal_WeekDay,

     'Q'&Ceil(Num(Month(TempDate))/3)                       As Star_Cal_Quarter,

     Ceil(Num(Month(TempDate))/3)                           As Star_Cal_QuarterNum

Resident TempCalendar

Order By TempDate ASC;

Drop Table TempCalendar;

LET vDateMin   = "";

LET vDateMax   = "";

LET vDateToday = "";

vardhancse
Specialist III
Specialist III

Then not required any calendar, what ever dashboards/reports will be based on system date only.

Not applicable
Author

Actually two different table sales order and purchase order table , but date entry is different in both the table, client want that calendar will be linked to both the table and capture all data not on basis of any of the date either sales or purchase table

Siva_Sankar
Master II
Master II

Shweta Singh,

You have to use Canonical date for this. Look here Canonical Date and find the attached example also for

Not applicable
Author

I have  data model with sales order ,purchase order and purchase receipt table, I have to show PO , purchase receipt in one table,

CRD is customer required date

I used your logic it won't work