relabelling columns

20 views
Skip to first unread message

Dan

unread,
Oct 23, 2011, 12:32:26 PM10/23/11
to google-visua...@googlegroups.com
Hi,

I'm using the query language and using the aggregation functions along with a pivot which then causes the column names to be labelled with the aggregation function.
Is there a simple way to relabel all the columns to remove the aggregation function from the name? I can see there is a label function for the query but that would require me having a full list of the columns in advance which I wouldn't unless I did two queries.
Is running a initial query to find out the distinct values that will be pivoted into columns or is there a simpler more efficient way to rename the columns. I know that the label name should always be 4 characters so if there is a easy way to rename then I can just do a substring.

Any advice for the best way to achieve this?

Thanks,
Dan

Dan

unread,
Oct 23, 2011, 12:57:40 PM10/23/11
to google-visua...@googlegroups.com
Already fixed using dataTable.setColumnLabel().
Thanks.
Reply all
Reply to author
Forward
0 new messages