Skip to Content
author's profile photo Former Member
Former Member

Get value from a previous row

Is there a way to get a value from a previous row, not necessarily the one just before??

For example:

item1 A 23

item2 B 96 <--

item3 A 10

item4 A 47

item5 B 0 <--

When the value in the 3rd column is 0, I want to return the value of the item that has a like 2nd column value (B). In this case it would return 96.

Is this possible??

Thanks in advance for your help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 03:17 PM

    Hi John,

    There is a previous function, in XI 3.0 not sure about XI r2, but that will only return the previous line. You can nest them, as in

    previous(previous([My Object]))

    I have never tried in production, so I am not sure how far you can go, that is the number of nested statements.

    Let me know how you get on

    Regards

    Alan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.