Alteryx Designer Desktop Discussions

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

Filter out the row for which the value changes and the row before that (previous value)

bmittal11
6 - Meteoroid

INPUT:

bmittal11_1-1661456411100.png

 

DESIRED OUTPUT:

bmittal11_2-1661456472682.png

I want to filter out the row when a particular ID changes value and the row for the value right before the change for that ID, As can be seen in the above Desired Output.

 

 I am also attaching the INPUT file and the OUTPUT file.

 

2 REPLIES 2
IraWatt
17 - Castor
17 - Castor

Hey @bmittal11,

One way to get this output is to use the Sample tool and group on ECU, ID and Value and select only the first row:

IraWatt_0-1661457370128.png

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

bmittal11
6 - Meteoroid

Hey @IraWatt ,

 

Thanks for the help. But, this isn't what I am looking for. With your workflow I am just getting the first row and the row when the value changed for a particular ID. 

I am looking for, when the value changes for a particular ID filter that row out and filter the row that contains the previous value right before the change happened.

 

eg:

bmittal11_0-1661458101332.png

 

Your WORKFLOW output: 

bmittal11_1-1661458154068.png

 

OUTPUT DESIRED: 

bmittal11_2-1661458198039.png

the row with timestamp right before the value changed. (5/11/2022 15:39). your workflow is giving the first row of the particular ID(5/11/2022 14:39).

I hope you understand what I mean. Thanks!

 

Labels