Alteryx Designer Desktop Discussions

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

Filtering in Alteryx

noopurjain
8 - Asteroid
Hello All, In my dataset I have multiple entries for one particular account. I want to filter out the rows where the year is 2021 and the price is less than the previous years. Below is an example of what I am looking – I need the row (where it say "need this as output") as output where the year_month is the latest month of 2021 and the price is lower than the other prices this account has. Thanks! Account year_month price 123456 202007 193.24 123456 202008 193.24 123456 202009 192.63 123456 202010 1,454.50 123456 202011 1,454.50 123456 202012 1,454.50 123456 202101 1,454.50 123456 202102 50.00 123456 202103 50.00 (Need this as output) 789123 201902 81.19 789123 201903 82.25 789123 201904 81.64 789123 201905 10.05
3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @noopurjain 

 

Can you provide data as table in a excel please. This data is bit hard to interpret😅

mceleavey
17 - Castor
17 - Castor

confused.gif



Bulien

dougperez
12 - Quasar

Your data is

Account year_month price
123456 202007 193.24
123456 202008 193.24
123456 202009 192.63
123456 202010 1454.50
123456 202011 1454.50
123456 202012 1454.50
123456 202101 1454.50
123456 202102 50.00
123456 202103 50.00
Right?

 

And the output desired is:

Account year_month price

789123 201902 81.19
789123 201903 82.25
789123 201904 81.64
789123 201905 10.05

 

I think this is kinda... Impossible? Your data is veeeery different than the desired output...

Labels