Mysql aggregation in dreamfactory 2.1.0

I have created a virtual field vcol1 for SUM query as mentioned in wiki.dreamfactory.com.I want to use dreamfactory api to query.

SELECT col0,SUM(col1)
FROM tablename
WHERE col2=x
GROUP BY col3
I get a value 0 for all records.Any help?