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

Fiscal Year and Fiscal Month

my script is to load

Left (FKDAT,2) as TransDay,

Mid (FKDAT,4,2) as TransMonth,

Right (FKDAT,4) as TransYear,


But the issue is my physical year start with April.


How to load to make it correctly.

3 Replies
maheshkuttappa
Creator II
Creator II

I am assuming you looking for below,

YearName (FKDAT,0,4)

I am not sure why you are using mid, left and right function instead of the standard calendar function ?

techvarun
Specialist II
Specialist II

You need  to add a condtion Like

If(TransMonth= Match(TransMonth,'Jan','Feb','Mar'),TransYear-1,TransYear )as Date,

prabunakil
Contributor III
Contributor III
Author

Thyankyou is working fine now.