Topic: multi last resulto on array

can someone help me define a variable in the controler to get the last result of each identifier? following picture of the result in the variable I need.
http://dl.dropbox.com/u/6567768/duvida.jpg

Thaks,