Ok graham, mañana me pongo manos a la obra y te estaré preguntando con más detalle en función de lo que vaya haciendo! Gracias por tu valiosa respuesta
I would think that it should be possible if the maximum range of dates isn’t too big. In other words, if you knew the starting date and also knew that the range could not be more than 10 days or so, you could make a rather long expression that would list all 10 days and then determine which ones fit in the range.
Para el ejemplo he usado un rango pequeño, sin embargo esto no necesariamente sería así. Me parece entonces que Appsheet debería buscar una forma de automatizar esto.
I see. Yes. Some kind of function would be nice. If you already have a list of dates, I can think of ways to eliminate any dates that fall outside of the range. However, I can’t think of a simple way to do what Marc’s functions would do – make up a list of consecutive dates.
Cool! I had forgotten about this specific post but the idea of using some kind of loop, as @Steve has taught us, occurred to me too. By the way, I miss Steve. I hope to see him around again.
I managed to build a way to get the output you are asking for.
In my use case, it is to capture the dates between my colleagues leave dates.
In the leave application form, users select Leave Start Date (LSD) and Leave End Date (LED).
Thereafter, I maintain a seperate table of the different days in the year from 1/1/YYYY to 12/31/YYYY.
I use the INTERSECT() function coupled with two SELECT() functions to achieve the desired output:
INTERSECT(
SELECT(DatesInYear[Dates], [Dates] >= [LSD]),
SELECT(DatesInYear[Dates], [Dates] <= [LED])
)