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

Group by date and calculate difference between these groups.

vlad_kutateladze
8 - Asteroid

Hi, 

 

I have data in following format: Name and Date of visiting location by tourist. I need to group visits with difference between less than 30 days in one trip and calculate difference between trips. I tried with Cross tab and Transpose , to make Date of visiting as horizontal columns to put after formulas,  but problem is that in real datasets number of visits can be sometimes more than 100.   Thank you. 

 

My input 

Vlad_Kutateladze_0-1592575608962.png

 

 

Need output something like this 

 

Vlad_Kutateladze_1-1592575655129.png

 

4 REPLIES 4
Thableaus
17 - Castor
17 - Castor

Hi @vlad_kutateladze 


Does something like this (attached) work well for you?

 

Cheers,

BrandonB
Alteryx
Alteryx

I think that this should do the trick for you! Workflow is attached. 

 

days between trips.png

BrandonB
Alteryx
Alteryx

Very elegant solution @Thableaus

vlad_kutateladze
8 - Asteroid

@Thableaus @

Labels