Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Yes it is possible, you always can retrieve data from data store by calling $this->dataStore("name")->data()
, you will receive array of associate array. Getting the sales
and transaction
value from two datastore, you can divide them to get what you want. Make sure to check the transaction
if it has 0 value.
Hi,
I have tried the above using:
->pipe(new CalculatedColumn(array(
"salespertrans"=>function($data){
return $data["sales"]/($this->dataStore("reportB")->data()[0]["trans"]);
},
)))
->pipe($this->dataStore("reportA"));
However, this resulted in errors. Could you please show me how to solve this?
Appreciate your help.
Thanks a lot.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo