The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

picking last row

kauser
Asteroide

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 RESPUESTAS 7
MelGibson
Bola de fuego

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

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

kauser
Asteroide

Hello @MelGibson  somehow its not working 

binu_acs
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
Asteroide

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
Bola de fuego

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

nagakavyasri
Cuásar
flying008
Aurora

Hi, @kauser 

 

FYI. The expression of Filter tool also can be 

REGEX_CountMatches([F1], '\d')

 

录制_2024_11_20_08_55_57_822.gif

 

Etiquetas
Autores con mayor cantidad de soluciones