Inputting a formula based on range of dates

CommunityMember88511
Contributor

Inputting a formula based on range of dates

Hi All,

 

I'm fairly new to Anaplan and have a module that gets start period and end period. What I want to do is use these time range in order to set a specific amount based on a formula.

 

I want to apply a specific formula on the time periods with respect to the start period and end period. To give an example, in one cost center, the start and end period is Jan 19 to Jun 19 respectively. I want to compute for the allowance for this specific range. Any help would be greatly appreciated.

 

Thanks in advance!

Jad Daffon

Kind regards,
Jad
1 ACCEPTED SOLUTION

Accepted Solutions
ArunManickam
Master Anaplanner/Community Boss

Re: Inputting a formula based on range of dates

Yes, can be done as well.

 

image.png

 

image.png

View solution in original post

7 REPLIES 7
ArunManickam
Master Anaplanner/Community Boss

Re: Inputting a formula based on range of dates

Can you try something similar to the following,

 

image.png

image.png

 

You can do a calculation if the Boolean is true.

 

Regards

Arun

CommunityMember88511
Contributor

Re: Inputting a formula based on range of dates

Hi Sir @ArunManickam,

 

The time period that i'll use as reference is formatted as time period (months). Is there a way to this months similar to the date format that you have provided?

 

Kind regards,

Kind regards,
Jad
ArunManickam
Master Anaplanner/Community Boss

Re: Inputting a formula based on range of dates

Yes, can be done as well.

 

image.png

 

image.png

View solution in original post

CommunityMember88511
Contributor

Re: Inputting a formula based on range of dates

HI @ArunManickam 

Sorry for the late revert. This worked perfectly. Already applied it to our model for allowance computation. Thank you very much for your help!

 

Kind regards,

Jad Daffon

Kind regards,
Jad
NehaSharma
Contributor

Re: Inputting a formula based on range of dates

Hi,

 

I tried to apply the same logic. However for me the start and end date is coming from a different module.Both the line items are date formatted. I am getting below mentioned error. Just for your information I am creating a Boolean line item to clear data which falls under this specific time range. In this boolean line item I am trying to write the formula.

NehaSharma_1-1615374163254.png

Can you please help me on this.  

Thanks in advance.

 

CommunityMember126793
Regular Contributor

Re: Inputting a formula based on range of dates

@NehaSharma  change the data type to "Time Period" "Month"

CommunityMember126793_0-1615443230930.png

 

NehaSharma
Contributor

Re: Inputting a formula based on range of dates

Thank you!