Using group by together with format

85 views
Skip to first unread message

Toxin

unread,
Sep 21, 2008, 11:16:34 PM9/21/08
to Google Visualization API
I have data with the columns:

timestamp (e.g. 8/25/2008 10:00:00)
volume (e.g. 12)
type (e.g. mountain dew)

and I am trying to see what days of the week I drink the most soda..
so I started to write the following query

select timestamp, count(type) group by timestamp format timestamp
"EEE" options no_values

but I get the following javascript error:

this.e is undefined
[Break on this error] e+Pa);b[e]=true}},O=function(a,b,c)
{if(b...e=[];for(var b=0;b<this.g[u];b++){var c=

if I take out "options no_values", the query works, but then it doesnt
aggregate by day of the week like I want.

what gives? Any suggestions? Thanks!

Maksym Barbul

unread,
Sep 22, 2008, 1:25:49 AM9/22/08
to Google Visualization API
Hi, I think the problem can be with your column name.
In query reference http://code.google.com/apis/visualization/documentation/querylanguage.html#Reserved_Words
are listed reserved words and 'timestamp' is one of them. So you'd
better not use it as identifier.

Toxin

unread,
Sep 22, 2008, 7:50:50 AM9/22/08
to Google Visualization API
Good catch! Unfortunately, I have tried using the column letters from
the google spread sheet where the data exists. Example below...

select A, count(B) group by A format A "EEE" options no_values

still no luck

On Sep 22, 1:25 am, Maksym Barbul <maxbar...@gmail.com> wrote:
> Hi, I think the problem can be with your column name.
> In query referencehttp://code.google.com/apis/visualization/documentation/querylanguage...

Toxin

unread,
Sep 26, 2008, 10:49:06 AM9/26/08
to Google Visualization API
Has anyone been able to use the option no_values? no_format works for
me in the above query but not no_values. Any query examples with it
working?

Any ideas, suggestions? Thanks!
Reply all
Reply to author
Forward
0 new messages