Alteryx Designer Desktop Discussions

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

Filtering rows based on max value in a column

JochenF
5 - Atom

HI Folks

I am a Newbie in using Alteryx and couldn't find the solution within the community atricles.

 

I import an Excel on a weekly base to get most actual data, but I just need the last load within each month. The latest monthly load is done on 1st of the following month.

 

The tabel looks like:

 

Col1...ColXMonth (string yyyymm)LoadDate (date)
abc2020101-11-2020
def2020101-11-2020
ghi2020117-11-2020
jkl2020117-11-2020
mno2020111-12-2020
pqr2020111-12-2020

 

Waht I want now as a result is keeping all month > max(month)  and all max(month) = max(load) date. Means all rows from load date 7-11-2020 should be deleted

I found in the community that using max doesn't work within the filter tool. I also found that the summarize tool get's max value of a column ... but I have no idea how to combine it to get the wanted result of if there is a completely different way.

 

Looking forward to your answers.

Best regards, Jochen

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

If you just want Load Date to be the first of the month, the simplest solution might be,

PhilipMannering_0-1606898669083.png

 

See attached

Philip

atcodedog05
22 - Nova
22 - Nova

Hi @JochenF 

 

The workflow you are speaking about will look something like this.

 

But i am not clear with condition.

 

Workflow:

atcodedog05_0-1606899863637.png

 

Hope this helps 🙂

JochenF
5 - Atom

Thanks, this works pretty fine and now I better understand how the filter tool works in combination with criteria found in columns. 

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @JochenF 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Labels