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: 
ejriri
Contributor II
Contributor II

Month

Hi. How can I program the following data,

Our Monthly cut off is every 25th of the month. For example 

Data from January  26 - February 25 - will be considered for the month of February

February 26 - March 25 will be considered for the month of March. 

How can I program it at data load editor? 

2 Replies
justISO
Specialist
Specialist

Hi, near your 'master calendar', you can add additional field for this 'recalculated month' (where [Date] your 'normal' date field):

if(day([Date])>25, MonthsName(1,[Date],1), MonthsName(1,[Date],0))

vinieme12
Champion III
Champion III

As below

 

temp:
Load Date
,Month(IF(Day(Date)>=26,AddMonths(Date,1),Date)) as ModifiedMonth
,Month(Date) as CalendarMonth
;
Load
date(date#('2021-01-01','YYYY-MM-DD') +iterno()-1) as Date
AutoGenerate 1
While date#('2021-01-01','YYYY-MM-DD') +iterno()-1 <= date#('2023-03-01','YYYY-MM-DD');

 

Exit Script

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.