Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ChetanPalwe
Contributor II
Contributor II

Problem in calculating Fiscal year in 13 period periodic master Calendar

Hi,

can anyone help me on the below problem.

I am working on periodic calendar(13 periods in each financial year and one period =28 days).

My Fiscal year start from 01 Apr 2017 and ends on 30 Mar 2018 also next fiscal year starts from 31 Mar 2018 and ends 29 Mar 2019 and so on …

Currently I am struggling to get the fiscal year for every date. So anyone can suggest me how to retrieve the fiscal year for this calendar.

Please see attachment of output of calendar. 

1 Solution

Accepted Solutions
ChetanPalwe
Contributor II
Contributor II
Author

Hi Marcus,
I works. Thanks a lot for your help.

Regards,
Chetan Palwe

View solution in original post

2 Replies
marcus_sommer

You could use something like this within your calendar-script:

pick(ceil(rowno() / 364), 2017, 2018, 2019, ...) as [fiscal year]

- Marcus

ChetanPalwe
Contributor II
Contributor II
Author

Hi Marcus,
I works. Thanks a lot for your help.

Regards,
Chetan Palwe