Jun 22, 2023 03:38 PM - edited Jun 22, 2023 03:52 PM
I am trying to build an automation or formula for this scenario:
Student #1 has been enrolled in school from the dates 7/1/2018-6/30/2023. I have a field in this table (Students table) for Enrollment date (7/1/2018) and graduation date (6/30/2023). I need the field " School Years" to populate with the respective school years this student was in school for. Ex: SY 2018-2019, 2019-2020, 2020-2021, 2021-2022, 2022-2023 - this is a multiselect field. This will be unique for every student, as their enrollment and graduation dates are varying...
I have build a table named School Years and have the start and end date for each school year as a record. I would love this to be automated so that every time we have a new student and their graduation date changes, it will update what school years they were here for.
This seemed so easy to do in my head and I have tried every way to get this to work, but I cannot seem to figure out how to have ALL school years they were enrolled for to show up in a single field as separate school years. I've attached a photo of what I hope it to look like. Please help
Jul 11, 2023 06:40 PM
Hey there!
So I came up with a suggestion that might help out the situation you're describing.
So taking into account the fields in your screenshot, I would suggest adding two more fields (you can hide them from the table & views). These two formula fields take the years from the two dates (Enrollment & Graduation). You can use these formulas applied with your field names
IF({Entry Date},YEAR({Entry Date}))) <-- For Enrollment Field
IF({Graduation Date},YEAR({Graduation Date})) <-- For Graduation Date
Now, the way I approached this is by creating another table that will only contain these SY Year Ranges composed of the primary field and two additional fields. Basically the Start Year will be exactly that, the start of your range. The End Year will basically a formula of
{Start Year} +1
"SY "&{Start Year}&" - "&{End Year}
Now when the Automation is pretty simple.
Functional Example: Sample
Let me know if this was useful or if I can be of more help