HOW TO READ CURRENT PERIOD BY USING FORMULA

Contributor

HOW TO READ CURRENT PERIOD BY USING FORMULA

 Hi,

 

In one module i want to read current period.Can you please suggest me what formula i use

 

Foe suppose we are in jan-19.I want to read current Period(Jan-2019) in Filter module.

 

Regards, 

Uma

Message 1 of 3
2 REPLIES 2
Community Boss

Re: HOW TO READ CURRENT PERIOD BY USING FORMULA

@UMAMAHESH,

 

The function you need is CURRENTPERIODSTART() which takes the setting defined in Time.

2019-02-01_07-25-37.png

 

Since CURRENTPERIODSTART() returns a date, you can convert this to a Period with the following formula PERIOD(CURRENTPERIODSTART()).  If you really want to be slick, you can create a module defined by Time, call it Time Filters, and create a line item (Is Current Month?) with a format of Boolean with this formula: ITEM(Time) = PERIOD(CURRENTPERIODSTART()). 

2019-02-01_07-32-53.png

 

This gives you the ability to check if the month is defined as the current period month (if .Time Filters'.'Is Current Month?' then ...... else .....).

 

Hope this helps,

 

Rob

Message 2 of 3
Contributor

Re: HOW TO READ CURRENT PERIOD BY USING FORMULA

Hi Rob,

 

Ya that's correct. Its working fine.

Thank you for your reply.

 

Regards,

Uma

Message 3 of 3