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.

Formula help for data cleanse

ManuelRodrigues
8 - Asteroid

Hi all,

 

I have some data where i want to Remove London to London journey where the journey is on the same day either into or out of London (orange rows). But leave them in if they are on a different date, say someone came on Monday, then travel around London during week(green rows). Thanks In advance!

 

M

7 REPLIES 7
saveeshkumar
9 - Comet

Hi @ManuelRodrigues ,

 

Hope this help you.

 

saveeshkumar_0-1645620673641.png

 

 

Thanks.

ManuelRodrigues
8 - Asteroid

@saveeshkumar this seems to be removing the incorrect rows?

saveeshkumar
9 - Comet

Hi @ManuelRodrigues ,

 

Could you please share the output of the file.

 

Thanks.

ManuelRodrigues
8 - Asteroid

@saveeshkumar  data outputs and excluded data attached.

saveeshkumar
9 - Comet

Hi @ManuelRodrigues ,

 

what about the below records.
They have same date and in/out as london.

 

Rail Data10104205 Gary ReidAnytime08-12-2020LondonLondon
Rail Data10104205 Gary ReidAnytime08-12-2020LondonLondon
Rail Data10104205 Gary ReidAnytime14-12-2020LondonLondon
Rail Data10104205 Gary ReidAnytime14-12-2020LondonLondon

 

Thanks.

ManuelRodrigues
8 - Asteroid

@saveeshkumar  those need to be included. so the logic should be:

 

If they travel fro Point X to London on say 07/12/2020

and then they also travel from a London to London Station on the same day i.e. 07/12/2020 then exclude the London-London travel on 07/12/2020. My apologies i prob did not explain it well earlier. 

 

so in effect we should only see one line being excluded i.e. London-London travel on 07/12/2020 (sorry i made a mistake on the earlier attached file. I have reattached. Thanks in adv!

saveeshkumar
9 - Comet

Hi @ManuelRodrigues ,

 

Please find the updated logic.

 

saveeshkumar_0-1645627856035.png

 

saveeshkumar_1-1645627877766.png

 

Thanks

Labels
Top Solution Authors