Note also that the string '0' evaluates as false.
In reply to Re: Excel::Writer::XLSX::add_table omits zeros by AnomalousMonk in thread Excel::Writer::XLSX::add_table omits zeros by david2008