Alteryx Designer Desktop Discussions

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

Minimum number of Days not working?

Bobbins
8 - Asteroid

Afternoon All,

So I have a simplistic set of dummy data which replicates my problem:

 

UniqueIDNameDate
200379131Alpha2020-04-08 09:24:00
200397199Beta2020-04-13 14:35:00
200415040Gamma2020-04-18 08:20:00
200436155Delta2020-04-24 03:30:00

 

The idea being that this is part of a much larger list and the in the list, I need to reference back to the last UniqueID and see how many days it has been. This list has greater then 1000 lookups but decided to minimize to make sure I am doing it correctly after realizing i had an error.

I have the flow setup so that I am cross referencing via an append, and ignoring the rows where the UniqueID is the same and if they are not the same, calculate out the number of days between them. This works okay.

I then run a loop where I find via the summarize tool the minimum number of days for each one and join this back to the list of appended, but here is the problem, when asking the tool to calculate the minimum number of days, for 2 it works, for the last row, it gives me the maximum despite clearly a smaller number being present.

Flow attached.

What have i missed or is this a bug?

Thanks

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Bobbins 

 

The issue was caused because you are using Numberofdays as a string hence 10 is 5 since it starts with 1. When you convert Numberofdays to number it will work as expected.

 

Workflow:

atcodedog05_0-1634732124273.png

 

Hope this helps : )

 

Bobbins
8 - Asteroid

🙃Yep that would explain it, doh, such a simple error! Thank you

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Bobbins 

Cheers and have a nice day!

Labels