Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
alisonpwallis
Creator
Creator

Change start date for a year

Hi


I work in a university and I want to change the calendar year to be an academic year - so rather than having week 1 start in January I want it to start in August. How do I offset the weeks so that week 1 starts then?

Thanks

Alison

1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

Something like this will convert Years to FiscalYears and Months to FiscalMonths.  Also includes 'CalendarMonths' so you can keep track .

LOAD

    Date,

    if( Month(Date)>=8, Year(Date), Year(Date) -1) as FiscalYear,

    if( Month(Date)>=8, Month(Date)-7,Month(Date)+4) as FiscalMonthNumber,

  

    if( Month(Date)>=8, Year(Date), Year(Date) -1) & ' - ' & if( Month(Date)>=8, Month(Date)-7,Month(Date)+4) as FiscalYearMonth,

    Year(Date) & ' - ' & Month(Date) as CalendarYearMonth,

    Sales

  

FROM

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

View solution in original post

2 Replies
JonnyPoole
Former Employee
Former Employee

Something like this will convert Years to FiscalYears and Months to FiscalMonths.  Also includes 'CalendarMonths' so you can keep track .

LOAD

    Date,

    if( Month(Date)>=8, Year(Date), Year(Date) -1) as FiscalYear,

    if( Month(Date)>=8, Month(Date)-7,Month(Date)+4) as FiscalMonthNumber,

  

    if( Month(Date)>=8, Year(Date), Year(Date) -1) & ' - ' & if( Month(Date)>=8, Month(Date)-7,Month(Date)+4) as FiscalYearMonth,

    Year(Date) & ' - ' & Month(Date) as CalendarYearMonth,

    Sales

  

FROM

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);