Thanks. I have an issue where I am creating the same datastore twice. Here is the sql:
//create threeway title RA
        $sql="
        SELECT e.employee, e.employee_title, e.w2_wages, risk, 
             CASE 
                 WHEN risk='low' THEN  w2_wages
                 WHEN risk='medium' THEN  w2_wages*.5
                 ELSE 0
              END as qualified
        FROM employees as e, titles as t
        WHERE e.email='$email' AND e.campaign='$campaign' 
        AND t.email='$email' AND t.campaign='$campaign'
        AND e.employee_title=t.title
        ORDER BY e.employee
        ";
        $this->src('substantiator')
            ->query($sql)
            ->pipe($this->dataStore("Three Way Risk Analysis"));
This seems to work fine to export to Excel. But then when I run it again (in a separate setup), this time to create a table I get nothing:
Table::create(array(
"dataStore"=>$this->dataStore("Three Way Risk Analysis"),
"class"=>array(
    "table"=>"table table-hover"
)
));
Any obvious reason that this is not working?