Getting future years

1635834
New Contributor

Getting future years

Hi Team

 

I need to get the sum of values from the next year of current period to rest of our time scale to other module which is not having time dimension. So, for this I am using timesum function.

 

For the entire time period(FY21-FY25) we can use timeperiod(lineitem) logic, but from the next year to rest of the year(FY22-FY25) we need to use timesum(lineitem,startperiod,endperiod). For this I can get Start Period i.e., Jan 22, but for getting End Period I need the number of future years in our model calendar in line item by using logic.

 

Can anyone of you please suggest any logic for getting future years or any other way for doing this.

 

Thanks

Shirisha.

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHeathcote
Community Boss

Re: Getting future years

Create a systems module by years and count the number of years in the calendar or timeframe.

Use SELECT to pull across TIME.ALL PERIODS.

Chris Heathcote
Bedford Consulting

Gold Partner and Regional Partner of the Year 2021, EMEA

View solution in original post

2 REPLIES 2
ChrisHeathcote
Community Boss

Re: Getting future years

Create a systems module by years and count the number of years in the calendar or timeframe.

Use SELECT to pull across TIME.ALL PERIODS.

Chris Heathcote
Bedford Consulting

Gold Partner and Regional Partner of the Year 2021, EMEA

View solution in original post

abhay.kanik
Regular Contributor

Re: Getting future years

@1635834 

Hey Shirisha,

 

I see you already have all period total ,Create a new line item and calculate current year total and subtract it from all Year total line item which will give you the sum of future years. This will be much quick.

Thanks

Abhay