Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Karim_Khan
Creator III
Creator III

how to convert fiscal Period ID 201506 into date,Month and Year

  Fiscal

KK
14 Replies
Anonymous
Not applicable

Looks like it is June of 2015:

date(date#(PeriodID,'YYYYMM')) as Date

If you have some special rules for your fiscal calendar, you have to explain these rules

Kushal_Chawda

From which month Your fiscal calendar starts?

Karim_Khan
Creator III
Creator III
Author

From August

KK
Not applicable

Hi try this

SET vFiscalYearStartMonth = 8;


load

Mod(Month(Date) - $(vFiscalYearStartMonth), 12)+1 AS FiscalMonth,

YearName(Date, 0, $(vFiscalYearStartMonth)) AS FiscalYear;

resident Abc;

Karim_Khan
Creator III
Creator III
Author

Its not working,

KK
Karim_Khan
Creator III
Creator III
Author

Hi Manju,

   Its not working

Regards,

K K

KK
Not applicable

for me it is working fine .Can u please provide sample data so that i can help u

Karim_Khan
Creator III
Creator III
Author

I am totally agree with your concept but the logic which we are applying is not working on my project Data.

Any ways thanks for your help

KK
Kushal_Chawda

So You want to derive Calender Year & Month from Fiscal Period?