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: 
micheledenardi
Specialist II
Specialist II

Calculate Fiscal Year Flags on Master Calendar

Hello experts,

i want to add to my master calendar some fiscal year flags.

My fiscal year start on month 7 (July) so i have to calculate a

1) CurrentFiscalYearFlag so that each date between 01/07/2017 and 30/06/2018 is set to 1, otherwise 0.

2) CurrentFiscalYearToMonthFlag so that each date between 01/07/2017 and the month of current date is set to 1, otherwise 0.

If today is 22/09/2017 i want to obtain exactly this result:

DateCurrentFiscalYearFlag
CurrentFiscalYearToMonthFlag
01/07/201711
30/06/201810
01/07/201800
30/06/201700
22/09/201711
23/09/201711
30/09/201711
01/10/201710

thanks

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try the InYear and InYearToDate functions.

InYear(Date. Today(), 0, 6)

InYearTodate(Date, Today(), 0, 6)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try the InYear and InYearToDate functions.

InYear(Date. Today(), 0, 6)

InYearTodate(Date, Today(), 0, 6)


talk is cheap, supply exceeds demand
siddharth_kulka
Creator II
Creator II