We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Counting consecutive days (please see details)

Ryanz3653
7 - Meteor

Hi community, Can you please help with formating from before to after, base on the same person and sum days, group by if they are in consecutive days, note that the Days column is always 1.

Please see the following, hope this make sense, thank you

 

BEFORE:

NameFromDaysTo
A2025-10-0612025-10-07
A2025-10-0712025-10-08
A2025-10-1512025-10-16
A2025-10-1612025-10-17
B2025-06-1612025-06-17
B2025-06-1712025-06-18
B2025-10-1412025-10-15
B2025-10-1512025-10-16
B2025-11-101

2025-11-11

 

AFTER:

 

NameFromDaysTo
A2025-10-0632025-10-09
A2025-10-1522025-10-17
B2025-06-1622025-06-18
B2025-10-1422025-10-16
B2025-11-101

2025-11-11

5 REPLIES 5
binuacs
21 - Polaris

@Ryanz3653 One way of doing this

image.png

Ryanz3653
7 - Meteor

@binuacs

Thanks for answer, I see how you group by, but what if there are data from 2025-03-31 to 2025-04-01? which are still consective days and should be group by the same. So the logic is, the same person and also consective days should be group by together

Thanks for your help

binuacs
21 - Polaris

@Ryanz3653 The later scenario is also working, am I missing something?

 

image.png

Ryanz3653
7 - Meteor

it's the same workflow. What if i changed it to:
B 2025-12-31 1 2026-01-01
B 2026-01-01 1 2026-01-02
and it won't work,

it should be B 2025-12-31 2 2026-01-02

the idea is group the same person and count the consective days

I hope you get what i mean, thanks

binuacs
21 - Polaris

@Ryanz3653 let me know the attached workflow works for you 

image.png

Labels
Top Solution Authors