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

Bangalore, IN

Welcome to the Bangalore User Group

Click the 'Join Group' button to get updates on group news and events.

SOLVED

days conversion

Deepakdw
5 - Atom

Hi All, Learning alteryx eagerly but got some easy doubts that are stuck in my head can you help me solve How to convert days i.e monday, tueday....friday to weekday and saturday and sunday as weekend.

2 REPLIES 2
ydmuley
12 - Quasar
12 - Quasar

Hello @Deepakdw 

 

You can use the function in DateTime tool to arrive at the day - Monday, Tuesday, etc.

 

Later you can use Formula tool to put a condition:

 

IF [Day] = 'Sunday' OR [Day] = 'Saturday' THEN 'Weekend' ELSE 'Weekday' ENDIF

 

Regards,

Yug

Regards,
Yugandhar Muley (Yug)

Alteryx ACE | Alteryx For Good India Lead | Bengaluru Alteryx User Group Lead
Deepakdw
5 - Atom

Thanks to both of you, solved it with ease. 🙂