Average in Cross-Tab
I made a report by Cross-Tab to show sales amount per shop per date. In Grand Total, I wish to show the average amount instead of sum total. But I found it often happens error, I guess it should be caused by Null value when some shops haven't sales amount the date. Any method to avoid that?
Thanks a lot!
Thanks a lot!
Comments
For Firebird it would be
SELECT COALESCE( ColumnValue, 0 ) FROM Table
returning 0 if ColumnValue is null.