In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

finding Weekdays in month

PNC97
8 - Asteroid

Trying to find out Saturday and Sunday in a month. If yes, to have a new column with 1 as yes and 0 as no.

 

Attached sample data with expected output

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @PNC97 

 

Formula would be like this

 

IF DateTimeFormat([Date],"%a") in ("sat","sun") THEN 1 
ELSE 0 ENDIF

 

Workflow:

atcodedog05_0-1628862139250.png

 

Hope this helps : )

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @PNC97 

Cheers and have a nice day!

Labels
Top Solution Authors