Milton Sestito Posted May 17, 2021 Share Posted May 17, 2021 Hi, I am new to TERR and was hoping to get some help on some very basic syntax on how to create a new table from scratch. Essentially, I have a user-defined document property called "date_eff". This will be a date in the form of MM/YYYY. I would like to just create a script that makes a new data table with the column being Date beginning at the user-defined date,withrows housing data for sequentialmonthly time steps. Additionally, I would then like to do a second column that will function as a count of months (ie 1,2,3,4,5). Basically for an example with say 5 defined rows to make it easy, if user enters 1/2021I'd like the following ouput columns with corresponding data: Date Month 1/2021 1 2/2021 2 3/2021 3 4/2021 4 5/2021 5 I imagine this is a fairly straight forward calculation, but sometimes when you're learining from scratch figuring out syntax and the meaning of the errors can be a bit overwhelming so any help just to get started would be greatly appreciated. Thank you in advance! Link to comment Share on other sites More sharing options...
Fabian Duerr Posted May 19, 2021 Share Posted May 19, 2021 I hope that my screenshot is self-explaining: Link to comment Share on other sites More sharing options...
Milton Sestito Posted June 3, 2021 Author Share Posted June 3, 2021 Very straightforward and exactly what I had hoped for. I had brute force figured out how to do it a separate way using outside libraries, but this is much cleaner and concise. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now