Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

custom fiscal year expression

I am new to qlik, more familiar with BI.

I am trying to create an expression as I would in BI to format a date into a fiscal year as below. The editor tells me formatnumber is not a valid function. Any help on getting me started would be great! thanks

="FY-"+ FormatNumber(If(MonthNumberOfYear([ADT_ARRIVAL_DATE])>=7;Year([ADT_ARRIVAL_DATE])+1;Year([ADT_ARRIVAL_DATE]));"####")

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

Try

'FY-' & If(Month([ADT_ARRIVAL_DATE])>=7;Year([ADT_ARRIVAL_DATE])+1,Year([ADT_ARRIVAL_DATE]))

View solution in original post

3 Replies
sasiparupudi1
Master III
Master III

Try

'FY-' & If(Month([ADT_ARRIVAL_DATE])>=7;Year([ADT_ARRIVAL_DATE])+1,Year([ADT_ARRIVAL_DATE]))

Anonymous
Not applicable
Author

thanks!

zebhashmi
Specialist
Specialist

If(MonthNumberOfYear([ADT_ARRIVAL_DATE])>=7,AddYears(ADT_ARRIVAL_DATE, 1),AddYears(ADT_ARRIVAL_DATE, -1)

Num(number[, format[, dec_sep [, thou_sep]]])