Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

FY year


How to create FY Year from Date?

5 Replies
miikkaqlick
Partner - Creator II
Partner - Creator II

Hi!

There is no single way to make a FY since all companies can have a different FY. If company's FY starts in 1.7 then you could use structure like this:

// Variables to set YTD and MTD

SET FiscalFirstMonth = 7; // First month of actual fiscal year

LET FiscalDev = $(FiscalFirstMonth)-1; // Fiscal calendar deviation

Calendar:

Load *,

Num(Month(Addmonths(Date,$(FiscalDev))),00) as [Fiscal Month No],

    Dual('Q'&Num(Ceil(Num(Month(Addmonths(Date,$(FiscalDev))))/3)),Num(Ceil(NUM(Month(Addmonths(Date,$(FiscalDev))))/3),00)) as [Fiscal Quarter],

and so on.

Br,

Miikka

PrashantSangle

Hi,

If want to show only Financial Year

Like 2013-2014

Then use YearName(Date,0,4)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sunilkumarqv
Specialist II
Specialist II

Hi  Adhya,

Suppose your FY starts from Apr then use below in script .

Calender :

Load

Date,

IF(MONTH(Date)>= 4, YEAR(Date)+1, YEAR(Date))   as FY

Resident Data;

ogster1974
Partner - Master II
Partner - Master II

I would personally build the calendar outside of Qlik view and load rather than try to derive it.

Fiscal Years differ from customer to customer but once set rarely change (Acquistiion/takeovers etc...)

so why make Qlik work on deriving the value for each transaction with a date in it when you can link to a reference table which will have 12 records added a year.

kushalthakral
Creator III
Creator III

Hi Abhay

You can use QV function Yearname

like

yearname('2001-10-19',0,4)

will give 2001-2002 in FY format.

where 4 is the starting month

Regarding

Kushal Thakral