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.

Grabbing Date Questions

jennnnyk
5 - Atom

Hi all, I am running in to a problem on " how I can calculate the total sales from the previous 10 days excluding all weekends and the day before the holidays from a few different dates". Are there any tools that would be recommended to use. The data that have has date column and the day of week. 

 

Example: I will have the date: 06-24-2020, I want to calculate the total sales from previous 10 day excluding weekends and holidays.  And I also have the date: 06-28-2020, I want to do the calculation the same way, but also have to exclude 6/24. 

 

Thanks for the help in avdvance!

2 REPLIES 2
randreag
11 - Bolide

hi @jennnnyk 

 

I attached an example of how can you accomplish what you need 

 

aruiz-itp_0-1615508045066.png

 

 

In the Text Input of holidays you can also put the dates you want to exclude

 

It is an idea perhaps needs some more modifications

SeanAdams
17 - Castor
17 - Castor

Hey @jennnnyk 

 

There are a few steps here:

a) Compute your earliest date.   There's a great post by @NicoleJohnson on how to do this here: https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Networkdays-in-Alteryx/td-p/70976

Add this date onto your dataset as a new column

b) For each row - check if it's within this date range using a filter

c) Summarize sales using Summarize tool.

 

 

 

Labels
Top Solution Authors