Referencing a single or a few variables instead of all in a summary

8 views
Skip to first unread message

Mark Webb

unread,
Sep 20, 2013, 10:16:48 AM9/20/13
to bambo...@googlegroups.com
I use the following to get a full summary of who data base

How do I select say 1 or only a few variables?
I have looked at and tried a few examples with no luck.

Here is an extract of the "all" output - variables are "filter_q2_20" , etc

Thank you in advance
Mark



"filter_q2_20": {"summary": {"False": 6}}, "filter_q2_23": {"summary": {"False": 5, "True": 1}}, "filter_q2_22": {"summary": {"False": 6}}, "filter_q2_25": {"summary": {"False": 6}}, "filter_q2_24": {"summary": {"False": 5, "True": 1}}, "filter_q2_26": {"summary": {"False": 6}},

Peter Lubell-Doughtie

unread,
Sep 20, 2013, 11:52:37 AM9/20/13
to bambo...@googlegroups.com

Hi Mark,

To select a field you use MongoDB's select syntax, mentioned in the docs here, http://bamboo.io/docs/basic_commands.html#retrieve-summary-statistics-for-dataset

In the example you provided, to select the field "filter_q2_20", you would use the following query, http://bamboo.io/datasets/0efced1b693249e3935f14ff2240e33b/summary?select={"filter_q2_20": 1}

The syntax above is from MongoDB, with the left hand indicating the key (like a column) and the 1 indicating select the field to the left of the colon.

Here is another example, selecting the field "filter_price19", http://bamboo.io/datasets/0efced1b693249e3935f14ff2240e33b/summary?select={"filter_price19": 1}

Peter

--
You received this message because you are subscribed to the Google Groups "bamboo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bamboo-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Webb

unread,
Sep 20, 2013, 11:56:03 PM9/20/13
to bambo...@googlegroups.com
Thanks Peter - appreciated
Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946 

Skype       tomarkwebb 
Email       targetl...@gmail.com 
You received this message because you are subscribed to a topic in the Google Groups "bamboo-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bamboo-dev/cBO2ONWd9Bs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bamboo-dev+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages