Start Free Trial

Alteryx Designer Desktop Discussions

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

picking last row

kauser
8 - Asteroid

hello, 

 

how can i pick the last row with value - 

 

Input Data- 

 

F1
            5,656.00
          11,312.00
          22,624.00
          45,248.00
                        -  
                        -  
                        -  
                        -  
                        -  
          90,496.00
       180,992.00
       361,984.00
       723,968.00
    1,447,936.00
    2,895,872.00
    5,791,744.00
  11,583,488.00
  23,166,976.00
  46,333,952.00
  92,667,904.00
NULL
NULL
NULL
NULL

 

i want to pick last row only with value- 

 

92,667,904.00

 

 

7 REPLIES 7
MelGibson
10 - Fireball

Add a filter tool      !isnull([F1]) and [F1]!='-'

then add a sample tool last N Row where N = 1

kauser
8 - Asteroid

Hello @MelGibson  somehow its not working 

binu_acs
21 - Polaris

@kauser in the filter tool add the below condition if @MelGibson @is not working

 

[F1] !='NULL' 

 

then add the sample tool and select the last 1 record 

kauser
8 - Asteroid

Hello @binu_acs  when i am using this formula - 

 

[F1] !='NULL'

and

[F1] !="-" 

 

i got this results- 

 

5,656.00
11,312.00
22,624.00
45,248.00
90,496.00
180,992.00
361,984.00
723,968.00
1,447,936.00
2,895,872.00
5,791,744.00
11,583,488.00
23,166,976.00
46,333,952.00
92,667,904.00

 

some how its not picking last value

MelGibson
10 - Fireball

You will need to add the sample tool at the end that is Last N rows with N = 1

nagakavyasri
12 - Quasar
flying008
15 - Aurora

Hi, @kauser 

 

FYI. The expression of Filter tool also can be 

REGEX_CountMatches([F1], '\d')

 

录制_2024_11_20_08_55_57_822.gif

 

Labels
Top Solution Authors