Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

TO MAKE FY YEAR FROM DATE

I HAVE DATE.I WANT TO MAKE fINANCIAL YEAR

8 Replies
kamalqlik
Partner - Specialist
Partner - Specialist

Hi it can be done using function yearname.

Use like this Yearname(Datefield,0,4).

It will give the result for year starting from April and ending on March.

Regards,

Kamal

abhaysingh
Specialist II
Specialist II
Author

I WANT YEAR LIKE 2012-2013,2013-2014,2014-2015

Not applicable

Try the above function only

yearname(datefield,0,4)

kamalqlik
Partner - Specialist
Partner - Specialist

Hi Please Find Attached QVW.

Or simply use the code below.

LOAD * Inline

[

Date

1/23/2012

2/23/2012

3/23/2012

4/23/2012

6/23/2012

9/12/2012
10/23/2012

11/23/2012

3/23/2013

4/23/2013

6/23/2013

7/12/2013

]
;



Year1:

LOAD *,

Year(Date) as Year,

Month(Date) as Month,

YearName(Date,0,4) as FiscalYear

Resident Year;



Regards

KAmal

er_mohit
Master II
Master II

Hi in script side

you can write this where your date field exist like

Load Date,

yearname(Date,0,1) as FY_Jan,     //Year starts from Jan to Dec

yearname(Date,0,4) as FY_Apirl    //Year starts from Apirl to March

From Datasource;

amit_saini
Master III
Master III

Abhay,

Please see the attachments.

Thanks,

AS

kamalqlik
Partner - Specialist
Partner - Specialist

Hi Abhay,

In case your problem have been solved please close this thread by marking it as Correct or Helpful.

Regards

Kamal

hic
Former Employee
Former Employee

You should take a look at the article Fiscal Year.

HIC