I have 31 columns that inform wether the day is laborable or vacation.
I tried to put this information all toghether in a Array but I cuuldn’t find the way to pull only the ones with certain condition. After we would need to “connect” witch day is so I can show in a template something like:
01/02/2025, 06/03/2025, 08/09/2025 are vacation days.
I think you are making this way more complicated than it needs to be.
Here is how I usually go about this:
Firstly, I identify the weekend days. Usually (but not always), they will be Saturday and Sunday.
Next, I create a Public Holidays table. In this table I add all Public Holidays, one per row. The table includes the name of the holiday, and the date. I also include a math column that converts the date to YYYYMMDD format.
Now, for any given date, I just need the following columns:
– A math column to determine the day of the week (Weekday(Date))
– A math column to convert the Date to YYYYMMDD format
– A relation that matches the previous column to the similar column in the Public Holidays table
With all the above in place, all that is required is a final if-then-else column:
If Public Holiday relation is not empty, then Public Holiday
Many thanks for your tips. Very useful;)! Still would be great to know witch are the prompt in the math column to transform the date in YYYT/MM/DD ;).
On the other hand, as far as I understood, the solution you propouse shows a result per each day but what I would like to achive is a resut that sumarize certain data (filtered somhow) with the same condition within diferents columns in the same row. I guessed I might have to do an array first with thiose columns I want to point to but still I don’t figured out how I pull the filtered data…
From thease days I extract weekday, vacation etc… But I have it in a same row. For instance:
Day 1: 01/01/2025; Weekday: Wednesday; LABORABLE… Each concept in a diferent column but all refering to the same day. So the idea is to extract filtered data per month. For example: Witch days are laborable in January atending what the user has customized before.