Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
Start Free Trial

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