Alteryx Designer Desktop Discussions

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

Grouping rows by consecutive dates with other criteria

celinearamouni
6 - Meteoroid

Hi everyone,

 

I've looked around the community for an Alteryx solution but can't seem to find one - so posting it! 

 

Basically what I have is a row for each night at an hotel by the employee. For the same report # submitted by that employee, he stayed in multiple cities and multiple times. I've color coded each stay together based off the consecutiveness of the dates. So what I'm looking to do and group all of the nights for each stay together with my output having the check in (the earliest date) and the checkout (the latest date). 

 

Input:

EmployeeReport KeyTransaction DateCityCountryFYQJob Charge TypeDepartment
AN1162025/01/2020DubaiUAEFY20Qtr3BillableTT
AN1162026/01/2020DubaiUAEFY20Qtr3BillableTT
AN1162027/01/2020DubaiUAEFY20Qtr3BillableTT
AN1162028/01/2020DubaiUAEFY20Qtr3BillableTT
AN1162029/01/2020DubaiUAEFY20Qtr3BillableTT
AN1162002/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162003/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162004/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162005/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162009/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162010/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162011/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162016/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162017/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162018/02/2020JeddahKSAFY20Qtr3BillableTT
AN1162019/02/2020JeddahKSAFY20Qtr3BillableTT

 

 

Output:

FYQJob Charge TypeDepartmentCityCountryReport Legacy KeyCheck inCheck out
FY20Qtr3BillableTTDubaiUAE1162025/01/202029/01/2020
FY20Qtr3BillableTTJeddahKSA1162002/02/202005/02/2020
FY20Qtr3BillableTTJeddahKSA1162009/02/202011/02/2020
FY20Qtr3BillableTTJeddahKSA1162016/02/202019/02/2020

 

 

Ideal Output:

FYQJob Charge TypeDepartmentCityCountryReport Legacy KeyCheck inCheck out
FY20Qtr3BillableTTDubaiUAE11620-125/01/202029/01/2020
FY20Qtr3BillableTTJeddahKSA11620-202/02/202005/02/2020
FY20Qtr3BillableTTJeddahKSA11620-309/02/202011/02/2020
FY20Qtr3BillableTTJeddahKSA11620-416/02/202019/02/2020

 

 

I tried to do it with the summarize tool but couldn't haha...

Would appreciate your help

12 REPLIES 12
celinearamouni
6 - Meteoroid

Here is a screenshot with the columns of rank and tile. Let me know if you need anything else to be able to tell my mistake.

celinearamouni_0-1668600045462.png

 

ShankerV
17 - Castor

Hi @celinearamouni 

 

Found little confusing with your screenshots.

 

Can you please do me a favour.

 

1. Please share the input first

2. Share the output seen in your alteryx

3. Then share the complete workflow

 

or Share your Alteryx workflow, I can check and confirm what it is the issue.

 

The issue might be very small, couldn't get it as screenshots was for partial workflow and couldn't guess the input.

 

Many thanks
Shanker V

ShankerV
17 - Castor

@celinearamouni 

 

Did your issue got resolved?? Derived your expected solution??

 

Many thanks

Shanker V

Labels