How to filter by days of the week | Community
Skip to main content
Level 2
October 22, 2024
Question

How to filter by days of the week

  • October 22, 2024
  • 2 replies
  • 757 views

Hello everyone, 

 

Pretty new to the Fusion scene so apologise if this has been answered somewhere else/for the silly question.

 

I am having the following scenario and I am having some troubles with setting the filter up:

there's an excel that I am having and that I am creating requests based on it, and I would like to set some filters up so that not all requests within the excel are created on the same day, therefore I have introduced a column (days of the week) so that I can filter by it. Now here comes my issue: I am unsure how to filter by "today". In workfront we had the $$TODAY variable that we could use, I see in Fusion there's the "now" variable, but I cant seem to make it work, I ve tried pretty much all the operators and conditions and I am out of ideas. I could make like 5 scenarios for each day of the week but I believe there should be another way of doing it within the same scenario.

 

TLTR: I'd like to filter by a column (value) that has the days of the week in it and would like the day of the week to be compared to "now" or "$$TODAY" (what day currently is - e.g. Monday). 

 

Thank you for your time and suggestions!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Sven-iX
Community Advisor
Community Advisor
October 22, 2024

Hi @serbannitu 

 

you need to check on the format of weekDay - Fusion has 2, Excel has 10 formats. 

 

format "D" in Fusion (Sun = 0, Sat = 6) seems not supported in Excel. You'll need to add 1 to the Fusion date format.

 

However "E" in Fusion matches "2" in Excel. 

 

https://experienceleague.adobe.com/en/docs/workfront/using/adobe-workfront-fusion/functions-in-fusion/tokens-for-date-and-time-formatting

 

 

 

Excel

 

Level 2
October 23, 2024

my god, you both are amazing, this helped me so much, thank you all for your help!