Pass variable from a itemview to other in the same view

Hello I have the next:



    'dataProvider' => $dataProvider,

    'options' => [

        'tag' => 'div',

        'class' => 'list-wrapper',

        'id' => 'list-wrapper',


    'layout' => "{pager}\n<br/>{summary}\n{items}\n{pager}",

    'itemView' => '_list',



in the _list view, I want use the value for a column in the last item, for example:

$equalvar = $model->somecolumn;

So when I try to use the $equalvar in the next item it var is empty. can you help me please?