Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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