Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Fiscal Year Creation

Hello,

I'm bringing in data from an xlsx format with one of the fields for Month.  The date format is M/D/YYYY.  I would like to create a master calendar for fiscal year identification where my fiscal year identifies dates between 10/1/2014 - 9/30/2015 as FY15, 10/1/2015-9/30/2016 as FY16.  How can I do this?

Thank you,

Bao Nguyen

5 Replies
shubham_singh
Partner - Creator II
Partner - Creator II

Assuming column name in Excel is RawDate

use this for calculating Year

LOAD

RawDate,

'FY'&(Year(YearStart(Date#(RawDate,'M/D/YYYY'),1,10))-2000) as FiscalYear

;

Not applicable
Author

Hi Shubham,

I followed your sample from above but added an IF statement because I wanted to cover a range of date for each fiscal year.  However, I'm getting an error message and not sure why.  Can you help?

LOAD

Month,

    "2015" & If(Month >= (10/1/2014) AND Month <= (9/30/2015)) as FiscalYear

     FROM...

shubham_singh
Partner - Creator II
Partner - Creator II

The code I wrote will give you your desired Fiscal Year,

as far as your code is concerned, it is wrong,

you only write field names in double quotes and you can't compare Month with Date

sdmech81
Specialist
Specialist

Do u want master calendar based ur start n end dates?

Or just FY?

Not applicable
Author

I would like to have a master calendar to designate our fiscal year to start on 10/1/YYYY and ends on 9/30/YYYY.  I was able to do this in SQL with another BI but cannot replicate it in Qlik...as my knowledge of Qlik has not yet matured enough at this point.  Thanks.