Hi,
I have a data source that have the following column (just a part) names out of my mysql database from a survey: id submitdate lastpage startlanguage seed 201005X5X27 201005X5X28 201005X5X29 201005X5X30 201005X5X31 201005X5X32 201005X1X1a 201005X1X1b 201005X1X2a 201005X1X2b 201005X1X3a 201005X1X3b 201005X1X25a 201005X1X25b
I would like to have an average and a count from that column. This would be possible be the Group Process. Because I want to use this report not only on this survey but others too, the column name will change.
I've tried to save the column names in a global variable but it doesn't work. At least not in the setup().
->pipe(new CalculatedColumn(array(
"qgid"=>function($row){
global $save_data;
$save_data[] = $row["c0"];
}
)))
->pipe(new Group(array(
"count"=> $save_data,
)))
Is there an other way to achieve that?
PS: Of Course I meant "Group all columns" in the title. Can't change it.