Alteryx Designer Desktop Discussions

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

Automatically get the last value in a column

45179902
8 - Asteroid

I have a set of values like this:

 

121
222
323
4 

 

I want to get the last value in column two, which is 23 on the third row since there's no more value below that row. This data is imported from an Excel worksheet.

2 REPLIES 2
mceleavey
17 - Castor
17 - Castor

Hi @45179902 ,

 

You can achieve this by filtering out any null values in Column B then using a sample tool to take the last value:

 

mceleavey_0-1649679310508.png

 

mceleavey_1-1649679325528.png

 

This then gives you:

 

mceleavey_2-1649679345214.png

 

 

I hope this helps,

 

M.



Bulien

danilang
19 - Altair
19 - Altair

@45179902 

 

As well as using the Sample tool in @mceleavey's example above, you can use a Summarize tool with action set to Last.   This is useful if you need to pull more stats, first, sum, average, etc.  from the dataset 

 

Dan 

Labels