Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
GELÖST

How to list down missed date from date field, excluding weekend (Saturday, Sunday).

Shibasisnamdev
Meteoroid

How to list the missing date?
Please help.

 

Shibasisnamdev_0-1663677662339.png

 

6 ANTWORTEN 6
Luke_C
Castor

Hi @Shibasisnamdev 

 

Can you share the data instead of a screenshot? Can you also explain the logic? For ID 1, why are July 9th and 10th not listed? Maybe because it's a weekend?

Shibasisnamdev
Meteoroid

Hi Luke
Thank you for your reply.

Yes, it's excluding weekends all the missing dates should list down.

 

Thank you

DataNath
Castor

How's this @Shibasisnamdev? It takes the Min/Max date for each ID, generates all days between those, excludes weekends, puts the dates into a format which match your original and then conducts a join based on that. Those that don't find a join from the right data source are the missing dates and so we just assign them an [Hours] amount of 8 and use a Select to format as desired:

 

DataNath_0-1663678639286.png

Luke_C
Castor

Hi @Shibasisnamdev 

 

Here's one way, generating a row for each date between the min and max for each ID, then filtering out weekends:

Luke_C_0-1663678816370.png

 

 

Shibasisnamdev
Meteoroid

Awesome...

 

Thank you so much @DataNath

Shibasisnamdev
Meteoroid

Thank you so much Luke.
This community is really alike heaven of solutions for a new developer.

Beschriftungen