Hello,
I have a Cube that I am trying to creates based of an existing dataStore in a *.view.php script. The data store is working perfectly for an existing bar chart.
I am trying to use the data store to create a cube, but every time I try to use it in a table, I get no data.
Below is an example of the data in the data store
ShipperID CountByMonth OpenedDateYM Name
A 5 2020-03 AName
B 22 2020-03 BName
Below is the code I am trying to use:
$node=$this->dataStore("ShipmentByCustomerByOpenedDateTop25")->pipe(new ColumnMeta(array(
"CountByMonth"=>array(
'type' => 'number',
"prefix"=>"$",
),
)));
$node->pipe(new Cube(array(
"row" => "ShipperID",
"column" => "OpenedDateYM",
"sum" => "CountByMonth",
)))->pipe($this->dataStore('salesYearMonth'));
Table::create(array(
"dataSource" => $this->dataStore("salesYearMonth"),
"columns" => "OpenedDateYM",
));