I use Pivot 2D and we need custom name of column in excel as well in HTML, because of it is not a value return by database, the values is already in view part of file as headerMap switch case but if we place this value in column then it show it will show {{other}} in html and exported excel.
->pipe(new Pivot2D(array(
"dimensions"=>array(
"column" => "dateyear, quantity - sum", OR "column" => "dateyear, Total Quantity",
"row" => "users_zone_c",
),
in view part
'headerMap' => function($v, $f) {
switch ($v) {
case 'quantity - sum': return 'Total Quantity';
Please help us to fix this