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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
rido1421
Creator III
Creator III

Max YearMonth

Hi There

I want to create a fiscal YearMonth field (201501)

I currently have  [Fiscal Year] and [Fiscal Month] fields

I have done the below but doesnt work for me

[Fiscal Year]&[Fiscal Month] as FiscalYearMonth= 20151

when I Max(FiscalYearMonth) = 201412  ,it should be 201504 as the fiscal year starts in October.

how can I achieve this?

Your assistance is appreciated.

3 Replies
anbu1984
Master III
Master III

[Fiscal Year]&Num([Fiscal Month],'00') as FiscalYearMonth

Or

[Fiscal Year]&Right('0'&[Fiscal Month],2) as FiscalYearMonth

rido1421
Creator III
Creator III
Author

This seemed to work quite well

[Fiscal Year]*100 + [Fiscal Month]  as FiscalYearmonth,

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this thread

Fiscal and Standard Calendar generation

Regards,

Jagan.