In this blog we will learn how to use PERIOD_ADD() function that takes a period and adds a specified number of months to it.The function will return the result formatted as YYYYMM.Eg:PERIOD_ADD(201703, 5) RESULTS:’201708′ from a date/datetime column in Helical Insight.
- Below you can see we are having a date in the format “YYYY:MM:DD HH:MM:SS”.
- If we want to use Period_Add function, click on Travel Date column.
- Click on more, user will get two options i.e., Quick and Advanced
- Click on “Advanced”Tab, in this you will see a function called “Period_Add”. Double click on that function and then drag down the Travel Date column and enter month in month box in the selected Period_Add function box at the bottom.click on Save button.
- Click on “Generate” report. You will see the desired output as below.
Note: These functions are specific to the database and may / may not appear based on the kind of database that you are connecting to. Please refer to below blog to add more database functions for your specific use case.