How can i get the pagesummary variable?

Hello everyone sorry 4 my english, i’m using dynagrid widget from karkit and i need to obtain the pagesummary variable that appears at the end of each column with condition ‘pageSummary’=>true, because i have a function that returns a percentage of “valor/sum(total)*100” but only calculate when the grid filter by id_usuario_asignado, what I need is use the “pagesummary total” at the end of my column named “valor_proyecto” , to divide it and get the percentage no matter the filter that i’m using.
there is my label 4 valor_proyecto variable:

[
‘label’ => ‘C>12’,
‘attribute’=>‘valor_proyecto’,
‘hAlign’=>‘center’,
‘vAlign’=>‘middle’,
‘width’=>‘20px’,
‘value’=>function ($data) {
if ($data->estado_pipeline == 1) {
return $data->valor_proyecto;
} else return null;

    },
    'format'=>['decimal'], 
    'contentOptions' => ['class' => 'bg-success'], 
    'pageSummary'=>true
],

and there is the % label:
[
‘label’ => ‘%’,
‘hAlign’=>‘center’,
‘vAlign’=>‘middle’,
‘width’=>‘20px’,
‘value’=>function ($data) {
$query = (new \yii\db\Query())->from(‘dt_proyectos’)->where([‘id_usuario_asignado’ => $data->id_usuario_asignado,‘estado_pipeline’=>1]);
if ($data->estado_pipeline == 1) {
$sum = $query->sum(‘total_pipeline’);
$totales = ($data->valor_proyecto/$sum)*100;
$total = explode(".", $totales);
return $total[0].’%’;
} else return null;
},
‘contentOptions’ => [‘class’ => ‘bg-success’],
],
hope you can help and understandme thanks.