I have a column named [week of the day] enumtype list.
I want to get ang actual date value to the selected days of the week. But i want to select to convert text to date is the most recent date from today excluding those expired dates.
In this example. the day should be converted to date is wednesday = 05/30/2023.
Here’s a conceptual description of an approach. You can work through all the syntactical details.
Transform (e.g., using LIST, IFS, and IN) the list of weekday names to a list of corresponding integers. Use the convention that is the premise of the WEEKDAY function (e.g., Monday = 2). If you need Sunday to be the end of the week, maybe assign it 8 (and, then as necessary, account for it as a special case throughout).
Ensure that the list includes exactly once the integer corresponding to today: