Skip to main content
Announcements
Document boards are being consolidated, this board no longer allows NEW documents READ MORE

Fiscal Year - Master Calender

cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewwizard
Master II
Master II

Fiscal Year - Master Calender

Last Update:

Sep 21, 2022 1:07:35 PM

Updated By:

Sue_Macaluso

Created date:

Feb 8, 2017 8:59:18 PM

Attachments

Hi All,

Please find the Fiscal Year - Master Calender script and application.

Set vFM = 4 ;
LET vDateMin=num(makedate(2016,01,01));
LET vDateMax=floor(monthend(today()));
LET vDateToday = num(today());

CalenderTemp:

LOAD Distinct Date($(vDateMin) + RowNo() - 1,'DD-MMM-YYYY') AS Date,
month(Date($(vDateMin) + RowNo() - 1,'DD-MMM-YYYY')) AS Month,
year(Date($(vDateMin) + RowNo() - 1,'DD-MMM-YYYY')) AS Year,
monthname(Date($(vDateMin) + RowNo() - 1,'DD-MMM-YYYY')) AS Monthname,
Week(Date($(vDateMin) + RowNo() - 1,'DD-MMM-YYYY')) AS Week
AutoGenerate 1 While $(vDateMin) + IterNo() - 1 <=$(vDateMax);

Calender:
Load *,Dual(fYear-1 &'/'& fYear, fYear) as FYear// Dual fiscal year
   Dual(Month, fMonthas FMonth   // Dual fiscal month
  ;
load *,
Year + If(Month>=$(vFM), 1, 0) as fYear// Numeric fiscal year
   Mod(Month-$(vFM), 12)+1  as fMonth   // Numeric fiscal month
Resident CalenderTemp;
drop table CalenderTemp;

Tags (1)
Labels (1)
Comments
beck_bakytbek
Master
Master

thanks a lot for this example

0 Likes
HereWeGoAgain
Contributor III
Contributor III

Hi @qlikviewwizard 

Please assist with this i'm very new to Qlick.

I would like to create Fiscal Year From July to June. for all previous year as well and put it in a line chart.

 

Thanks

0 Likes
Version history
Last update:
‎2022-09-21 01:07 PM
Updated by: