Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Work Day calculation with null values

ashleyinman
8 - Asteroid

I'm trying to figure out a working day calculation between multiple days. But I'm running into issues because some fields report null and removing data because not all fields are populated.

 

Below is an example of some data I have. 

 

  1. If there is no ship date then I want to use today's date to calculate working days.
  2. If there is no received date then I want to show 0 or null.
  3. If there is a received date and ship date I want to know how many working days there are

 

Shipment #Received DateShip Date
11/5/20175/15/2018
27/10/2018 
35/6/20176/23/2018
4 9/18/2017

 

 

3 REPLIES 3
Inactive User
Not applicable

Solution attached. Note I did all days difference not working days because I have no idea which country or state you are from to apply proper holidays/weekends, etc.

ashleyinman
8 - Asteroid

Hi @Inactive User

 

I'm in the United States, hoping to be able to calculate working day's. I've be able to get the difference in days like you attached but unsure how to calculate the working days. It seems to remove some values when I do the calculation.

 

I've tried using the generate rows tool. But somehow it seems to be removing rows when I input my conditions. I've attached the generate row configuration I'm using. 

danrh
13 - Pulsar

Try the attached, using the Generate Rows tool.  Note that this calculates weekdays, not necessarily working days.  If you want to filter out holidays, you would probably need to manually add them to a Text Input and filter via a Join or something similar.

 

Hope it helps!

Labels