Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: pdespotHi, Frank.
There are a couple of ways to do this. The first way is using the Agg Ex node. Simply wire that node to the output of your sort, set the "Group By" parameter to 1, and the script to:
emit 'Section 2' where lastInGroup
The "Group By" of 1 tells the node that all the records are 1 group. The "emit 'Section 2' part of the script tells it to output the field called 'Section 2' (you can specify multiple fields by just separating them with commas). Finally, the "where lastInGroup" tells the node to only emit when the built in lastInGroup variable is true. As the name implies, it will only be true when you get to the last member of the group.
Another way to accomplish the same thing is with the Tail node. That node will let you specify the last X records to output. Then you can use a filter node to just emit the column you want.
Hope this helps.
-Pavel