Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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