## How to flag a period using boolean?

Highlighted
Occasional Contributor

## How to flag a period using boolean?

I have 12 months worth of data, but only want to flag Aug-Dec. I can't do it by checking all the boxes as there are over the 10k limit, so I'm trying to develop a formula where it essentially says, if period > July, true else false... Any ideas on how to easily accomplish that?

8 REPLIES 8
Highlighted
Master Anaplanner/Community Boss

## Re: How to flag a period using boolean?

You can try

Month(Start()) >= 8 and Month(Start()) <=12

You need not add "IF THEN ELSE" if the line item is Boolean formatted.

Thanks,

LipChean

Highlighted
Occasional Contributor

## Re: How to flag a period using boolean?

Thank you LepChean_Soh! That works!

Although, I just noticed that doing it solely off of the month, will make 2020 only effective of those months. Essentially, I need >=201908. How would I implement that?

Highlighted
Master Anaplanner/Community Boss

## Re: How to flag a period using boolean?

Instead of hardcoding it, use a SYS Global module (or admin module).  This can be done using the current period or manual entry:

Then, in a SYS Time filter module, just reference it

Hope this helps,

Rob

Highlighted
Master Anaplanner/Community Boss

## Re: How to flag a period using boolean?

And if you don't want to span years (so it stops at the current year), the formula in the SYS Time Filter module would be:

ITEM(Time) >= SYS Global.Current Month Entry AND YEAR(ITEM(Time)) = YEAR(SYS Global.Current Month Entry)

Highlighted
Occasional Contributor

## Re: How to flag a period using boolean?

Based off of your initial formula @LipChean_Soh , I created the below to include all periods after 2019.

IF YEAR(START()) > 2019 THEN TRUE ELSE MONTH(START()) >= 8 AND MONTH(START()) <= 12

Highlighted
Master Anaplanner/Community Boss

## Re: How to flag a period using boolean?

Please try to stay away from the hardcoding (in this case >2019) because if this needs to change in the future, you will have to remember where this was set which could be a problem.

Rob

Master Anaplanner/Community Boss

## Re: How to flag a period using boolean?

@rob_marshall  is right, to make Anaplan models sustainable (S of PLANS), we must aim to make our models as dynamic as possible, i.e. refer to System Models as much as possible.

1. 'SYS00 Time (No Time)'.Current Month Entry assumes you have a month of reference that you change often, and that you want to apply TRUE to all months that fall within the previous years relative to 'Current Month Entry'.

Thanks,

LipChean

Highlighted
Occasional Contributor

## Re: How to flag a period using boolean?

@rob_marshall  I agree to avoid these. In this case, it was when we went live with the sales plan in Anaplan, so it will never change.