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

Best Answer

  • @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

Answers

  • Hi Rob,

     

    Ya that's correct. Its working fine.

    Thank you for your reply.

     

    Regards,

    Uma