In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Filtering in a date range different columns of dates

filipembribeiro
6 - Meteoroid

Hi all!

 

I need to create a formula to sum the distance [Km] of some travels [Travel].

All these travels has 3 dates to identify it: the start date [Date Start], a checkpoint date [Date Middle] and an end date [Date End].

 

I want only to sum the distance of the travels which have at least one of the 3 dates included in the range shown at the end of the sample
[Date Start Evaluation] for the earliest date possible

[Date End Evaluation] for the latest date possible

 

How can I do it? Thank you very much

filipembribeiro_0-1677100146756.png

 

1 REPLY 1
DavidSkaife
14 - Magnetar

Hi @filipembribeiro 

 

Here is one way of doing it:

DavidSkaife_0-1677102954423.png

 

I've made it so it should be dynamic as well - append the Evaluation dates onto the data and then using a Formula tool it compares to see if each date is within the evaluation parameters; returning True or False if any of the 3 dates match. Then it filters on true and sums the KM for these.

 

Labels
Top Solution Authors