<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tail -f findings.out &#187; Dataviz</title>
	<atom:link href="http://dancingpenguinsoflight.com/category/dataviz/feed/" rel="self" type="application/rss+xml" />
	<link>http://dancingpenguinsoflight.com</link>
	<description></description>
	<lastBuildDate>Sun, 21 Aug 2011 14:33:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Excel web query URLs with dynamic parameters</title>
		<link>http://dancingpenguinsoflight.com/2010/07/excel-web-query-urls-with-dynamic-parameters/</link>
		<comments>http://dancingpenguinsoflight.com/2010/07/excel-web-query-urls-with-dynamic-parameters/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 01:01:32 +0000</pubDate>
		<dc:creator>Samuel Huckins</dc:creator>
				<category><![CDATA[Dataviz]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://dancingpenguinsoflight.com/?p=1476</guid>
		<description><![CDATA[Last year I wrote about the ease and utility of pulling data into Excel via web queries. This mechanism has served me well in the interim and has proven to be an effective tool in collecting data for certain kinds &#8230; <a href="http://dancingpenguinsoflight.com/2010/07/excel-web-query-urls-with-dynamic-parameters/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last year I wrote about the ease and utility of <a title="Pulling data into Excel from web queries" href="http://dancingpenguinsoflight.com/2009/07/pulling-data-into-excel-from-web-queries/" target="_blank">pulling data into Excel via web queries</a>. This mechanism has served me well in the interim and has proven to be an effective tool in collecting data for certain kinds of analysis. It&#8217;s not suited for every application, but if the data you are interested in consists of thousands to tens of thousands of rows, it&#8217;s a simple and workable option.</p>
<p>In a recent effort to pull data into an  Excel spreadsheet for further analysis, I needed more flexibility than a static report URL could  provide. The back end could accept parameterized values (e.g. the  desired date range) in the report URLs. I just needed to be able to set these values (initially or through user input) from within the  spreadsheet, then request the needed data. Seems generally simple and useful enough, so I&#8217;ll share what I did.<br />
<span id="more-1476"></span></p>
<h2>Sample Report</h2>
<p>Ignoring most of the particularities of the reporting back end, say the report in question consists of an SQL query:</p>
<div class="codecolorer-container sql blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/* Use defaults if no params sent */</span><br />
<span style="color: #993333; font-weight: bold;">SET</span> @beginmonth <span style="color: #66cc66;">=</span> IFNULL<span style="color: #66cc66;">&#40;</span>@begin_month<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">&quot;2000-01-01&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">SET</span> @endmonth <span style="color: #66cc66;">=</span> IFNULL<span style="color: #66cc66;">&#40;</span>@end_month<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">&quot;2010-12-31&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">SELECT</span> date_format<span style="color: #66cc66;">&#40;</span>date_entered<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'%Y-%m'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #993333; font-weight: bold;">DATE</span><span style="color: #66cc66;">,</span> profit_dollars<br />
<span style="color: #993333; font-weight: bold;">FROM</span> main_db<span style="color: #66cc66;">.</span>monthly_profits<br />
<span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #993333; font-weight: bold;">DATE</span><span style="color: #66cc66;">&#40;</span>date_entered<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">BETWEEN</span> @beginmonth <span style="color: #993333; font-weight: bold;">AND</span> @endmonth<br />
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">DATE</span> <span style="color: #993333; font-weight: bold;">DESC</span>;</div></td></tr></tbody></table></div>
<p>The URL to access it is http://initech.com/reports/total_profits. Using the query above, this would return data from the beginning of 2000 to the end of 2010. To pass in values for the start and end date parameters you would use the URL http://initech.com/reports/total_profits?begin_month=2000-03-01&amp;end_month=2000-06-31. This would limit the data returned to the second quarter of 2000.</p>
<h2>Use in Excel</h2>
<p>So what if you want to use dynamic parameters like these when pulling data into Excel? Let&#8217;s assume you have a spreadsheet already pulling data from the static report URL and displaying results. If you run into trouble, check out <a title="Pulling data into Excel from web queries" href="http://dancingpenguinsoflight.com/2009/07/pulling-data-into-excel-from-web-queries/" target="_blank">my earlier article on the subject</a>. Once that&#8217;s working, right-click the resultant data table in Excel, select Edit Query, and add the parameter names and values in the format ["FieldName"]:</p>
<p><a href="http://dancingpenguinsoflight.com/wp-content/uploads/2010/05/params.png"><img class="aligncenter size-full wp-image-1631" title="params" src="http://dancingpenguinsoflight.com/wp-content/uploads/2010/05/params.png" alt="" width="359" height="304" /></a></p>
<p>FieldName in this case can be whatever you want to call the variable for the user&#8217;s convenience. This format is recognized by Excel and you&#8217;ll be prompted to enter a value. You can enter it yourself of course, or you can select a cell from which to pull the value. You can also specify whether to use the cell for future data refreshes and whether to refresh automatically. These features are key for our intended use. You can set a parameter value in a single cell and have it effect any number of web  queries, across various sheets!</p>
<p><a href="http://dancingpenguinsoflight.com/wp-content/uploads/2010/05/params-selected.png"><img class="aligncenter size-full wp-image-1632" title="params-selected" src="http://dancingpenguinsoflight.com/wp-content/uploads/2010/05/params-selected.png" alt="" width="283" height="166" /></a></p>
<p>Note: This last feature only partially works in Mac Office 2008. A cell&#8217;s value can be selected as a parameter value but after updating it you have to manually refresh all related web queries. In Windows Office 2007, updating the specified cell updates all queries that have this property set, which is great for easing administrative load caused by having to update reports!</p>
<h2>Date format annoyance</h2>
<p>Your backend reporting system might likely expect dates in proper ISO format (YYYY-MM-DD). Excel, in its infinite wisdom, allows &#8220;Date&#8221; typed fields to be one of a myriad of formats, not one of which is proper ISO. So you need to make your date fields Text type and enter the dates as ISO format yourself.</p>
<p><a title="Artlcle on Excel web queries" href="http://www.jkp-ads.com/Articles/WebQuery.asp" target="_blank">This article </a>has additional information on the above approach as well as more screenshots of the various steps.</p>
    ]]></content:encoded>
			<wfw:commentRss>http://dancingpenguinsoflight.com/2010/07/excel-web-query-urls-with-dynamic-parameters/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Data visualization for everyone: Many Eyes</title>
		<link>http://dancingpenguinsoflight.com/2009/05/data-visualization-for-everyone-many-eyes/</link>
		<comments>http://dancingpenguinsoflight.com/2009/05/data-visualization-for-everyone-many-eyes/#comments</comments>
		<pubDate>Fri, 08 May 2009 06:17:51 +0000</pubDate>
		<dc:creator>Samuel Huckins</dc:creator>
				<category><![CDATA[Dataviz]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://dancingpenguinsoflight.com/?p=856</guid>
		<description><![CDATA[Organizations and projects of all sizes have been dealing with more and more massively large datasets. Even &#8220;massively large&#8221; doesn&#8217;t mean a lot anymore. It might have meant a few hundred gigabytes five to ten years ago, and a few &#8230; <a href="http://dancingpenguinsoflight.com/2009/05/data-visualization-for-everyone-many-eyes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Organizations and projects of all sizes have been dealing with more and more massively large datasets. Even &#8220;massively large&#8221; doesn&#8217;t mean a lot anymore. It might have meant a few hundred gigabytes five to ten years ago, and a few hundred megabytes not long before that. Now the large cutting-edge data-centric projects are working with multi-terrabyte datasets routinely. We have entered <a title="Wired article on the Petabyte Age" href="http://www.wired.com/science/discoveries/magazine/16-07/pb_intro" target="_blank">the Petabyte Age</a>. <span id="more-856"></span></p>
<p>But what&#8217;s even more interesting than the fact that we now have the ability to work at such a scale at all is that datasets of this magnitude, and tools to begin to approach understanding them, are becoming available to the (at least technically-minded) community at large. And more and more instances of attempting to push such approaches to problem solving to the general public are appearing as well. I found <a title="Big data and dataviz talk by Jeffrey Veen" href="http://www.veen.com/jeff/archives/001000.html" target="_blank">this talk</a> by <a title="Jeffrey Veen homepage" href="http://www.veen.com/jeff/index.html" target="_blank">Jeffrey Veen</a> on &#8220;Designing for Big Data&#8221; to be quite thought-provoking. He discusses the novel shifts in the last few decades from data consumption to data production. This, along with the contemporary developments in storage and processing technology, has produced the unique time in which we live: a time in which people are beginning to be able to quickly and easy utilize large quantities of recent, relevant data to make everyday decisions. Sites such as <a target="_blank" alt="EveryBlock.com" href="http://www.everyblock.com/">EveryBlock</a>, services like <a target="_blank" href="http://aws.amazon.com/publicdatasets/">AWS&#8217; Public Datasets</a>, and countless other endeavors are changing the way we learn and live.</p>
<p>So what&#8217;s this Many Eyes business? <a title="Many Eyes home" href="http://manyeyes.alphaworks.ibm.com/manyeyes/" target="_blank">Many Eyes</a> is an IBM project, from the <a title="CUE homepage" href="http://domino.watson.ibm.com/cambridge/research.nsf/pages/cue.html?Open" target="_blank">Collaborative User Experience</a> group. I&#8217;ll appropriate one of their more poignant expressions as a <a title="About Many Eyes" href="http://manyeyes.alphaworks.ibm.com/manyeyes/page/About.html" target="_blank">description of purpose</a>:</p>
<blockquote><p><em><span class="lotsOfText">We  believe that visualizations gain power when multiple people           use them to communicate, and that communication gains power when multiple people can           visualize and explore information together.</span></em></p></blockquote>
<p>On the site, anyone can upload new datasets (or use the <a title="Many Eyes datasets" target="_blank" href="http://manyeyes.alphaworks.ibm.com/manyeyes/datasets">wide range</a> already available; beware, there are plenty of junk ones, but more complete reliable ones as well), and try out any of a number of <a target="_blank" title="Many Eyes visualization styles" href="http://manyeyes.alphaworks.ibm.com/manyeyes/page/Visualization_Options.html">visualization styles</a>. Once a style is selected and applied, you customize, name, tag, describe and publish your new creation! Each visualization is permanently available, allowing for embedded uses as well. Here&#8217;s a bubble chart of the percentage of population penetration in internet use that I made in two minutes:</p>
<p><script type="text/javascript" src="http://manyeyes.alphaworks.ibm.com/manyeyes/visualizations/ad805c3e3b9411de9552000255111976/comments/adacdcaa3b9411de9552000255111976.js"></script></p>
<p>Or check out <a target="_blank" title="Map of life expectancy" href="http://manyeyes.alphaworks.ibm.com/manyeyes/visualizations/world-map-for-life-expectancy">this world map</a> showing life expectancies. The graph interactions are quite interesting in themselves. I encourage you to try your hand at <a target="_blank" title="Create Many Eyes visualization" href="http://manyeyes.alphaworks.ibm.com/manyeyes/page/create_visualization.html">creating and sharing new visualizations</a>. Such new forms of information accessibility will continue to provide benefits to more and more people. Not to mention they are quite fun to make!  </p>
    ]]></content:encoded>
			<wfw:commentRss>http://dancingpenguinsoflight.com/2009/05/data-visualization-for-everyone-many-eyes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

