I have a table with "Graduation_Yr" as a text field "2022". It needs to be converted to the typical range of time in school like 2019-2023. So each would by Grad Year minus 4.
I made a new integer field called "Year_integer" to pull Graduation Yr in as integer and then subtract by 4. It verifies but nothing actually populates:
SELECT CAST([@field:RGraduation_Yr] AS integer) - 4
From that I hope to be able to do another calculated field to subtract the 4 years and concatenate.
Probably a much better way but I dont want to change the field type to integer as it might scrub that data.
I can accomplish getting the field copied using JS below, but would prefer calculated value since a JS takes more resources.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
roattw
I have a table with "Graduation_Yr" as a text field "2022". It needs to be converted to the typical range of time in school like 2019-2023. So each would by Grad Year minus 4.
I made a new integer field called "Year_integer" to pull Graduation Yr in as integer and then subtract by 4. It verifies but nothing actually populates:
SELECT CAST([@field:RGraduation_Yr] AS integer) - 4
From that I hope to be able to do another calculated field to subtract the 4 years and concatenate.
Probably a much better way but I dont want to change the field type to integer as it might scrub that data.
I can accomplish getting the field copied using JS below, but would prefer calculated value since a JS takes more resources.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.