<?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>Pharma BI &#187; BI Solutions</title>
	<atom:link href="http://pharma-bi.com/category/bi-solutions/feed/" rel="self" type="application/rss+xml" />
	<link>http://pharma-bi.com</link>
	<description>Business Intelligence Blog</description>
	<lastBuildDate>Thu, 15 Dec 2011 05:52:22 +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>A Short Exploration of Physician Practice EHR/EMR Adoption</title>
		<link>http://pharma-bi.com/2011/12/a-short-exploration-of-physician-practice-ehremr-adoption/</link>
		<comments>http://pharma-bi.com/2011/12/a-short-exploration-of-physician-practice-ehremr-adoption/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 07:38:33 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Current Topics]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Tableau]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=799</guid>
		<description><![CDATA[<p>According to recent estimates by the CDC, the use of electronic health and medical records in physician offices continues to climb.   According to data from the November 2011 NCHS Data Brief, around 57 percent of office based physicians report using some kind of electronic health/medical record system and around 34 percent report having a system [...]]]></description>
			<content:encoded><![CDATA[<p>According to recent estimates by the CDC, the use of electronic health and medical records in physician offices continues to climb.   According to data from the <a href="http://www.cdc.gov/nchs/data/databriefs/db79.htm" target="_blank">November 2011 NCHS Data Brief</a>, around 57 percent of office based physicians report using some kind of electronic health/medical record system and around 34 percent report having a system that meets <a href="http://www.cdc.gov/nchs/data/databriefs/db79.htm#definitions" target="_blank">basic performance criteria.</a>  However, EHR/EMR usage <a href="http://www.cdc.gov/nchs/data/databriefs/db79.htm#table" target="_blank">varies widely by state</a>, as can be seen in the graph below.</p>
<p>The graph shows states in descending order based on the usage of any type EHR/EMR system.  The series of dots illustrates usage of any system, while the bars illustrate usage of systems that meet basic criteria.  Median percentages are illustrated by dotted lines.  Colored shading indicates the percentage range into which most (68%) states fall.  The shaded area on the left applies to usage of basic systems, the shaded area to the right applies to usage of any EHR/EMR system.</p>
<p>As we can see from the jagged outline of the blue bars, adoption of systems that meet basic performance criteria is not necessarily consistent with overall usage of electronic record systems.  For example, Utah ranks number 2 in terms of overall EHR/EMR usage, but four states rank higher than Utah in terms of systems with basic functionality.  These four states are Minnesota, Wisconsin, Washington and Oregon.</p>
<p>North Dakota, Utah, Minnesota, Wisconsin, Washington, Oregon and Hawaii not only lead the nation in terms of overall EHR/EMR usage, but also in terms of having basic systems in place.  Looking toward the lower end of the list, we can see that states like Mississippi, South Carolina, Nevada, New Jersey and Louisiana have the lowest percentages of systems that meet basic criteria.</p>
<p>&nbsp;</p>
<div id="attachment_800" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/12/DB01_Any_Basic.jpg"><img class="size-medium wp-image-800" title="DB01_Any_Basic" src="http://pharma-bi.com/wp-content/uploads/2011/12/DB01_Any_Basic-300x224.jpg" alt="EHR/EMR Adoption by State" width="300" height="224" /></a><p class="wp-caption-text">click on the graph to enlarge it</p></div>
<p><a href="http://public.tableausoftware.com/views/eMR_Adoption_003/DB-any-basic?:embed=yes&amp;:toolbar=yes&amp;:tabs=yes" target="_blank">To look up specific EHR/EMR adoption values for each state or to download the data, go to this interactive Tableau Workbook.</a></p>
<p>Given the current state of the debate around health care reform, one might be tempted to ask whether the political climate at the state level plays a role.  Using information about <a href="http://en.wikipedia.org/wiki/Red_states_and_blue_states" target="_blank">“Red States and Blue States” from Wikipedia</a>, we can assign party affiliations to states based on results from the past five presidential elections (1992 to 2008).  At first glance, it appears that democratic states tend to be further along in terms of EHR/EMR system usage.  Their median percentages for overall usage (61%) and basic system usage (36%) are higher than those of republican states (57% and 31% respectively).</p>
<div id="attachment_803" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/12/DB02_Any_Basic_brp1.jpg"><img class="size-medium wp-image-803" title="DB02_Any_Basic_brp" src="http://pharma-bi.com/wp-content/uploads/2011/12/DB02_Any_Basic_brp1-300x224.jpg" alt="EHR/EMR Adoption by State and Prevailing Party" width="300" height="224" /></a><p class="wp-caption-text">click on the graph to enlarge it</p></div>
<p>However, reducing this question to simple partisan politics ignores the many factors influencing the adoption of complex systems. Issues like perceptions and attitudes, computer experience, workflow impact and concerns about patient-doctor relationships play a much bigger role in the day to day decisions doctors make.  These issues are beyond the scope of this writing, though a very small sampling of relevant academic research appears at the end of this post.</p>
<p>Even without delving into those issues, we can get a sense that there is more at play here by looking at socio-economic data from the <a href="http://www.census.gov/compendia/statab/rankings.html" target="_blank">US Census Bureau</a>. The graph below shows the usage of any type of EHR/EMR system, along with census data about poverty, annual pay, higher education, age, and number of physicians per capita.</p>
<div id="attachment_805" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/12/DB03_Any_Census.jpg"><img class="size-medium wp-image-805 " title="DB03_Any_Census" src="http://pharma-bi.com/wp-content/uploads/2011/12/DB03_Any_Census-300x209.jpg" alt="EHR/EMR Adoption by State - Including Census Data by State" width="300" height="209" /></a><p class="wp-caption-text">click on the graph to enlarge it</p></div>
<p>Using this graph, we notice that our breakout of Democratic and Republican states shows some significant differences.  The thick grey lines indicate the median value for each variable within each party category, while the grey shading shows the range into which the majority (68%) of states in each category fall.  Based on this data, residents in democratic states tend to be</p>
<ul>
<li>wealthier (lower percentage of people living below the poverty line)</li>
<li>earn higher incomes (higher average annual pay)</li>
<li>more educated (higher percentage of residents with a bachelor degree or higher)</li>
<li>able to choose among more doctors (higher rate of doctors per capita)</li>
</ul>
<p>&nbsp;</p>
<p>Since we are dealing with state level data we cannot say how much each of these factors influence EHR/EMR system adoption (see scatter plots at the end), except to say that higher levels of poverty appear to be linked to lower levels of EHR/EMR system usage – apparently more so if the state happens to lean republican.</p>
<p>Unfortunately this exploration suffers from the fact that we are dealing with high level data which hinders our ability to match up relevant details.  None the less, it provides some hints that socio-economic issues play at least an indirect role in the adoption and use of EHR/EMR systems.</p>
<div id="attachment_806" class="wp-caption aligncenter" style="width: 160px"><a href="http://pharma-bi.com/wp-content/uploads/2011/12/DB04_Any_Census_br.jpg"><img class="size-thumbnail wp-image-806" title="DB04_Any_Census_br" src="http://pharma-bi.com/wp-content/uploads/2011/12/DB04_Any_Census_br-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">click on the graph to enlarge it</p></div>
<div id="attachment_809" class="wp-caption aligncenter" style="width: 160px"><a href="http://pharma-bi.com/wp-content/uploads/2011/12/DB05_Basic_Census_br1.jpg"><img class="size-thumbnail wp-image-809" title="DB05_Basic_Census_br" src="http://pharma-bi.com/wp-content/uploads/2011/12/DB05_Basic_Census_br1-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">click on the graph to enlarge it</p></div>
<p><strong>Resources:</strong></p>
<p>Explore the data details behind the graphs in this post via this interactive <a href="http://public.tableausoftware.com/views/eMR_Adoption_003/DB-any-basic?:embed=yes&amp;:toolbar=yes&amp;:tabs=yes">Tableau Workbook</a>.</p>
<p><strong> </strong></p>
<p><strong>Electronic Health Record Systems and Intent to Apply for Meaningful Use Incentives Among Office-based Physician Practices: United States, 2001–2011</strong></p>
<p>NCHS Data Brief, Number 79, November 2011</p>
<p><a href="http://www.cdc.gov/nchs/data/databriefs/db79.htm">http://www.cdc.gov/nchs/data/databriefs/db79.htm</a></p>
<p>&nbsp;</p>
<p>Definitions used in this report (direct quote from the NCHS Data Brief):</p>
<p style="padding-left: 30px;"> <span style="text-decoration: underline;">“Physician office</span>: A place where nonfederally employed physicians provide direct patient care in the 50 states and the District of Columbia; excludes radiologists, anesthesiologists, and pathologists.</p>
<p style="padding-left: 30px;"><span style="text-decoration: underline;">Any EMR/EHR system</span>: Obtained from “yes” responses to the question, “Does this practice use electronic medical records or electronic health records (not including billing records)?”</p>
<p style="padding-left: 30px;"><span style="text-decoration: underline;"> </span></p>
<p style="padding-left: 30px;"><span style="text-decoration: underline;">Basic EMR/EHR system</span>: A system that has of all of the following functionalities: patient history and demographics, patient problem list, physician clinical notes, comprehensive list of patient’s medications and allergies, computerized orders for prescriptions, and ability to view laboratory and imaging results electronically (4). Having a comprehensive list of patient’s medications and allergies was asked as two separate questions in 2010 (one about medications and the other about allergies); the questions were collapsed into one question in 2011 (5).”</p>
<p><strong>The 2012 Statistical Abstract:  State Rankings</strong></p>
<p>U.S. Census Bureau</p>
<p><a href="http://www.census.gov/compendia/statab/rankings.html">http://www.census.gov/compendia/statab/rankings.html</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Red states and blue states</strong></p>
<p><a href="http://en.wikipedia.org/wiki/Red_states_and_blue_states">http://en.wikipedia.org/wiki/Red_states_and_blue_states</a></p>
<p>Direct quote from the wiki article:</p>
<p style="padding-left: 30px;"><strong>“Current classification</strong></p>
<p style="padding-left: 30px;">The following classification of red and blue states (as well as purple/battleground states) was determined by compiling the average margins of victory in the five presidential elections between 1992 and 2008. Three of these past elections were won by Democrats, <a title="Bill Clinton" href="http://en.wikipedia.org/wiki/Bill_Clinton">Bill Clinton</a> in 1992 and 1996, and <a title="Barack Obama" href="http://en.wikipedia.org/wiki/Barack_Obama">Barack Obama</a> in 2008, while two were won by Republican <a title="George W. Bush" href="http://en.wikipedia.org/wiki/George_W._Bush">George W. Bush</a> in 2000 and 2004.”</p>
<p><strong>A Framework for Predicting EHR Adoption Attitudes: A Physician Survey </strong></p>
<p>by Mary E. Morton, PhD, RHIA, and Susan Wiedenbeck, PhD</p>
<p><a href="http://perspectives.ahima.org/index.php?option=com_content&amp;view=article&amp;id=162&amp;Itemid=56">http://perspectives.ahima.org/index.php?option=com_content&amp;view=article&amp;id=162&amp;Itemid=56</a><br />
<strong></strong></p>
<p><strong>The influence of payer mix on electronic health record adoption by physicians</strong></p>
<p>Menachemi, Nir; Matthews, Michael C.; Ford, Eric W.; Brooks, Robert G.</p>
<p><a href="http://journals.lww.com/hcmrjournal/Abstract/2007/04000/The_influence_of_payer_mix_on_electronic_health.4.aspx">http://journals.lww.com/hcmrjournal/Abstract/2007/04000/The_influence_of_payer_mix_on_electronic_health.4.aspx</a></p>
<p>&nbsp;</p>
<p><strong> Predicting the Adoption of Electronic Health Records by Physicians: When Will Health Care be Paperless?</strong></p>
<p>Eric W. Ford, PhD, MPH, Nir Menachemi, PhD, MPH, and M. Thad Phillips, MSHA, MSHI, MBA</p>
<p><a href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1380189/">http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1380189/</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/12/a-short-exploration-of-physician-practice-ehremr-adoption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bridging the Dashboard Communication Gap</title>
		<link>http://pharma-bi.com/2011/09/bridging-the-dashboard-communication-gap/</link>
		<comments>http://pharma-bi.com/2011/09/bridging-the-dashboard-communication-gap/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 06:41:16 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[BI Solutions]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Sales]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=765</guid>
		<description><![CDATA[<p>The term “dashboard” provides a convenient metaphor because everyone has at least some idea of what a dashboard looks like – and therein lies the problem: our own idea of a dashboard may differ wildly from someone else&#8217;s idea of a dashboard.  When people talk about dashboards, there may be a huge communications gap and [...]]]></description>
			<content:encoded><![CDATA[<p>The term “dashboard” provides a convenient metaphor because everyone has at least some idea of what a dashboard looks like – and therein lies the problem: our own idea of a dashboard may differ wildly from someone else&#8217;s idea of a dashboard.  When people talk about dashboards, there may be a huge communications gap and it pays to build a bridge across that gap before taking any action toward developing a dashboard.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="295">There’s a big difference between the dashboard of a car and that of a passenger jet!  For one thing, understanding a car dashboard requires significantly less training and experience than a cockpit dashboard.  Of course each is designed to meet different needs: a pilot has to worry about many more things than a car driver when ferrying passengers safely from Point A to Point B.</p>
<p>When developing information dashboards for a business we also need to keep user needs in mind: a VP of Marketing will need a much more high-level overview than a Product Director, who in turn has quite different requirements from a sales rep preparing an action plan.  In practical terms this means that we first have to figure out who will use the dashboard and how.</td>
<td valign="top" width="295">
<div id="attachment_766" class="wp-caption aligncenter" style="width: 260px"><a href="http://pharma-bi.com/wp-content/uploads/2011/09/Jet_Cockpit.jpg"><img class="size-thumbnail wp-image-766 " title="Jet_Cockpit" src="http://pharma-bi.com/wp-content/uploads/2011/09/Jet_Cockpit-150x150.jpg" alt="Image of a Jet Cockpit" width="250" height="250" /></a><p class="wp-caption-text">Image of a Jet Cockpit</p></div>
<p>Image credit: <a href="http://flysusan.com/cockpits.htm">http://flysusan.com/cockpits.htm</a></td>
</tr>
<tr>
<td valign="top" width="295">A dashboard is only useful when it can become an integral part of decision making.  Some decisions need to be made on a daily basis, such as which prospects to call or how to follow-up with a client.  Other decisions take more time.  Those decisions tend to be more organizational and strategic in nature.  They require input from many people and data sources, they require observation and a longer term perspective.</p>
<p>The implication here is that a dashboard needs to be capable of providing information at the speed with which decisions are made.  A dashboard also needs to provide the appropriate amount of summary and detail.  Before we can build anything, we need to define what information is actionable and how soon it needs to be available.</td>
<td valign="top" width="295"><a href="http://pharma-bi.com/wp-content/uploads/2011/09/Data_Audience.jpg"><img class="aligncenter size-thumbnail wp-image-772" title="Data_Audience" src="http://pharma-bi.com/wp-content/uploads/2011/09/Data_Audience-150x150.jpg" alt="Illustration showing four audiences for data: Senior Leadership, Management, Analyst, Transaction Worker" width="250" height="250" /></a></td>
</tr>
</tbody>
</table>
<p>From a technical standpoint, this initial exploration provides the framework for determining how the dashboard should be build.  The following questions are just a starting point:</p>
<ul>
<li>What information is required?</li>
<li>How will the information be used?</li>
<li>What kinds of summaries and calculations make the most sense?</li>
<li>How much detail should be included?</li>
<li>How can we best present the information?</li>
<li>How often does data need to be refreshed?</li>
<li>Which databases and information sources are necessary?</li>
<li>Which software/hardware best meets our needs?</li>
</ul>
<p>The answers to these questions always involve tradeoffs.  Which tradeoffs make sense depends on the impact the dashboard will have and whether we can demonstrate a positive ROI.  At some point, the dashboard has to help improve the bottom line.</p>
<p><a href="http://pharma-bi.com/wp-content/uploads/2011/09/ROI_TradeOffs21.jpg"><img class="aligncenter size-medium wp-image-786" title="ROI_TradeOffs2" src="http://pharma-bi.com/wp-content/uploads/2011/09/ROI_TradeOffs21-300x165.jpg" alt="Illustration of ROI tradeoffs for dashboards" width="300" height="165" /></a></p>
<p>Drawing a direct line between dashboard and bottom line dollars can be complicated.  Dashboard benefits tend to be intangible.  To measure ROI, we have to think about how the dashboard enables better decisions, how it helps users focus on profitable actions and whether it helps to save time or other resources.  Often we need to offset these intangible benefits against very real budgets and real money that needs to be spent on development, training, software, hardware, and so on.</p>
<p>As we can see, if we are serious about building a dashboard, we also have to be serious about spending some time upfront to map out a plan for getting from the <em>Basic Idea</em> to an <em>Actual Dashboard</em>.  To get there, everyone involved needs to develop a common language, that is, a set of common definitions and goals.  For instance, if our dashboard is supposed to track progress following a product launch we need a common understanding of what market penetration means.  Does it mean “number of actual customers vs. potential customers” or “number of actual customers vs. number of targets” or “number of customers who bought at least X number of widgets.”  How we define our key metrics has a direct impact on the usefulness of our dashboard and on the effort required to build it.</p>
<p>Developing common definitions and goals is a key step toward building a bridge across the communication gap.  Just because we are using terminology that seems to be well defined doesn&#8217;t mean we really are talking about the same thing. For example, we might be talking about lighthouses and we might even have the same general idea of what a light house is and how a typical lighthouse looks.  But when it comes to actually building the lighthouse we need something more concrete.  </p>
<p>What’s a lighthouse?</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="103">
<p align="center"><strong>The Idea</strong></p>
</td>
<td valign="top" width="232">
<p align="center"><strong>An Actual Lighthouse</strong></p>
</td>
<td valign="top" width="255">
<p align="center"><strong>Another Actual Lighthouse</strong></p>
</td>
</tr>
<tr>
<td valign="top" width="103"> <a href="http://pharma-bi.com/wp-content/uploads/2011/09/Lighthouse_Idea.jpg"><img class="aligncenter size-full wp-image-779" title="Lighthouse_Idea" src="http://pharma-bi.com/wp-content/uploads/2011/09/Lighthouse_Idea.jpg" alt="Lighthouse_Idea" width="85" height="197" /></a></td>
<td valign="top" width="232"> <a href="http://pharma-bi.com/wp-content/uploads/2011/09/Lighthouse_A.jpg"><img class="aligncenter size-thumbnail wp-image-781" title="Lighthouse_A" src="http://pharma-bi.com/wp-content/uploads/2011/09/Lighthouse_A-150x150.jpg" alt="Image of  a typical Lighthouse" width="150" height="150" /></a></td>
<td valign="top" width="255"> <a href="http://pharma-bi.com/wp-content/uploads/2011/09/Lighthouse_C.jpg"><img class="aligncenter size-thumbnail wp-image-783" title="Lighthouse_C" src="http://pharma-bi.com/wp-content/uploads/2011/09/Lighthouse_C-150x150.jpg" alt="Image of a lighhouse boat" width="150" height="150" /></a></td>
</tr>
<tr>
<td valign="top" width="103">
<p align="center">When discussing the concept of a lighthouse, usually this type of image comes to mind.</p>
</td>
<td valign="top" width="232">
<p align="center">Most of us would expect an actual lighthouse to look something like this.  It meets the typical expectations for a lighthouse.</p>
</td>
<td valign="top" width="255">
<p align="center">Sometimes a lighthouse needs to address special situations: when a client needs a special lighthouse and the developer thinks of building a typical lighthouse, the project is in trouble.</p>
</td>
</tr>
</tbody>
</table>
<p>Image credits (L to R):</p>
<p><a href="http://www.freeclipartnow.com/buildings/lighthouses/">http://www.freeclipartnow.com/buildings/lighthouses/</a></p>
<p><a href="http://www.destination360.com/north-america/us/maine/images/s/maine-lighthouses.jpg">http://www.destination360.com/north-america/us/maine/images/s/maine-lighthouses.jpg</a></p>
<p><a href="http://www.longislandlighthouses.com/lv112.htm">http://www.longislandlighthouses.com/lv112.htm</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/09/bridging-the-dashboard-communication-gap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fiscal Period Calculations in Tableau</title>
		<link>http://pharma-bi.com/2011/04/fiscal-period-calculations-in-tableau-2/</link>
		<comments>http://pharma-bi.com/2011/04/fiscal-period-calculations-in-tableau-2/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 23:45:03 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Case Studies]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Tableau]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=752</guid>
		<description><![CDATA[<p>For the most part it’s fairly easy to calculate fiscal periods in Tableau. Here is one approach that requires two parameters and two date functions. This approach allows us to create custom Fiscal Periods on the fly – which can be useful for building what-if scenarios or for working with data that trickles in over [...]]]></description>
			<content:encoded><![CDATA[<p>For the most part it’s fairly easy to calculate fiscal periods in Tableau. Here is one approach that requires two parameters and two date functions. This approach allows us to create custom Fiscal Periods on the fly – which can be useful for building what-if scenarios or for working with data that trickles in over a long period of time, such as rebates or claims, where we may need to exclude a chunk of the most current data because it’s incomplete.</p>
<p>To get started we need to indicate when the Fiscal Period starts and when it ends, hence the two parameters: [CFY Start] and [CFYTD End]. Then we need to determine which data to include in our calculation. The DATEDIFF and DATEADD functions will come in handy for that.</p>
<p>Let’s assume we want to create a Fiscal Year summary for a measure called [Sales] based on the [Order Date]:</p>
<p>FYTD Sales Current =<br />
IF [Order Date] &lt; [CFY Start] THEN Null<br />
ELSEIF [Order Date] &gt; [CFYTD End] THEN Null<br />
ELSE [Sales]<br />
END</p>
<p>To compare the current fiscal year sales with the same period during the previous year, we need to shift everything back by 12 months using the DATEADD function:</p>
<p>FYTD Sales Previous =<br />
IF [Order Date] &lt; DATEADD(&#8216;month&#8217;,-12,[CFY Start]) THEN Null<br />
ELSEIF [Order Date] &gt; DATEADD(&#8216;month&#8217;,-12,[CFYTD End]) THEN Null<br />
ELSE [Sales]<br />
END</p>
<p>Note: when using the DATEADD function to add or subtract months, we don’t have to worry about leap days – pretty nifty.</p>
<p>A similar approach works for Month to Date calculations. With the DATEDIFF function we get rid of all the data that doesn’t fall into the current month, then we just add up the days we want to include:</p>
<p>FMTD Sales Curent =<br />
IF DATEDIFF(&#8216;month&#8217;,[Order Date],[CFYTD End]) &lt;&gt; 0 THEN NULL<br />
ELSEIF [Order Date] &gt; [CFYTD End] THEN NULL<br />
ELSE [Sales]<br />
END</p>
<p>When comparing to the same month a year ago, we can use the same trick of shifting time as we used for our Year to Date Previous calculation:</p>
<p>FMTD Sales Previous =<br />
IF DATEDIFF(&#8216;month&#8217;,[CFYTD End],[Order Date]) &lt;&gt; -12 THEN NULL<br />
ELSEIF [Order Date] &gt; DATEADD(&#8216;month&#8217;,-12,[CFYTD End]) THEN NULL<br />
ELSE [Sales]<br />
END</p>
<p>Bonus Calculation:</p>
<p>If you need to calculate the number of days in a year, here’s a way that considers Leap Years:</p>
<p>IF (datepart(&#8216;year&#8217;,[Order Date]) % 400) = 0 then 366<br />
ELSEIF (datepart(&#8216;year&#8217;,[Order Date]) % 100) = 0 then 365<br />
ELSEIF (datepart(&#8216;year&#8217;,[Order Date]) % 4) = 0 then 366<br />
ELSE 365<br />
END</p>
<p>The % sign is Tableau’s syntax for modulo calculations.</p>
<p>Enjoy!</p>
<p>Here&#8217;s a workbook with examples:</p>
<p><script src="http://public.tableausoftware.com/javascripts/api/viz_v1.js" type="text/javascript"></script></p>
<p><object class="tableauViz" style="display: none;" width="675" height="523"><param name="host_url" value="http%3A%2F%2Fpublic.tableausoftware.com%2F" /><param name="name" value="YTD_CalculationsPublic/FiscalYear" /><param name="tabs" value="yes" /><param name="toolbar" value="yes" /><param name="animate_transition" value="yes" /><param name="display_static_image" value="yes" /><param name="display_spinner" value="yes" /><param name="display_overlay" value="yes" /></object><noscript>Fiscal Year Example<br />
<a href="#"><img alt="Fiscal Year Example " src="http:&#47;&#47;public.tableausoftware.com&#47;static&#47;images&#47;YT&#47;YTD_Calcula tionsPublic&#47;FiscalYear&#47;1_rss.png" height="100%" /></a></noscript></p>
<div style="width: 675px; height: 22px; padding: 0px 10px 0px 0px; color: black; font: normal 8pt  verdana,helvetica,arial,sans-serif;">
<div style="float: right; padding-right: 8px;"><a href="http://www.tableausoftware.com/public?ref=http://public.tableausoftware.com/views/YTD_C alculationsPublic/FiscalYear" target="_blank">Powered by Tableau</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/04/fiscal-period-calculations-in-tableau-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Double Take on Dual Axis Graphs: Part III</title>
		<link>http://pharma-bi.com/2011/03/double-take-on-dual-axis-graphs-part-iii/</link>
		<comments>http://pharma-bi.com/2011/03/double-take-on-dual-axis-graphs-part-iii/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 18:11:39 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[BI Solutions]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Tableau]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=740</guid>
		<description><![CDATA[<p>This quick follow-up on dual axis graphs shows another take on their potential use.  The first suggestion comes from Naomi Robbins in her book “Creating More Effective Graphs.” 1 She suggests that dual axis graphs may be useful to represent data in different – but equivalent – measurement units such as Centigrade (Celsius) and Fahrenheit.  [...]]]></description>
			<content:encoded><![CDATA[<p>This quick <a href="http://pharma-bi.com/2011/03/dual-axis-graphs-are-they-useful">follow-up on dual axis graphs</a> shows another take on their potential use.  The first suggestion comes from Naomi Robbins in her book “Creating More Effective Graphs.” <sup>1</sup> She suggests that dual axis graphs may be useful to represent data in different – but equivalent – measurement units such as Centigrade (Celsius) and Fahrenheit.  Some of us can understand temperature better when it is expressed in Fahrenheit, while others relate better to temperatures on a Celsius scale.  This example works because we are graphing the same thing, we’re just expressing it in different units and provide the two scales as an easy reference.</p>
<p>When doing this, however, we have to ensure that both scales are synched up as illustrated below.</p>
<p><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_CF3.jpg"><img class="aligncenter size-medium wp-image-744" title="Temperatures in Celsius and Fahrenheit" src="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_CF11-300x271.jpg" alt="Temperatures in Celsius and Fahrenheit" width="300" height="271" /></a><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_CF21.jpg"><img class="aligncenter size-medium wp-image-745" title="Synch up Celsius and Fahrenheit - Step 1" src="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_CF21-300x275.jpg" alt="Synch up Celsius and Fahrenheit - Step 1" width="300" height="275" /></a><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_CF31.jpg"><img class="aligncenter size-medium wp-image-746" title="Synch up Celsius and Fahrenheit - Step 2" src="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_CF31-300x272.jpg" alt="Synch up Celsius and Fahrenheit - Step 2" width="300" height="272" /></a></p>
<p>The other example comes from Dona Wong’s recent Wall Street Journal. Guide to Information Graphics. <sup>2</sup> In it she suggests using dual axis graphs to “ … help show how two directly related series move together.”   The picture below – courtesy of <a href="http://junkcharts.typepad.com/about.html">Kaiser Fung’s Junk Charts blog</a> – shows the example from her book. <sup>3</sup></p>
<p><img class="aligncenter" title="Dual Axis Chart Example" src=" http://junkcharts.typepad.com/.a/6a00d8341e992c53ef01310f717cc1970c-pi" alt="Dual Axis Chart Example" width="393" height="295" /></p>
<p>I am somewhat ambivalent about this chart since we have to be careful in selecting each scale in order avoid distorting the data (note that the Market Share scale starts at 30% and that the increments for both scales line up).</p>
<p>When done properly, both examples help us when we need to make a point with a single  picture:  we can save space and keep two related pieces of information within easy view.   This works best when illustrating a specific issue and when we can use a static picture  in a newspaper, printed report or a presentation.   We&#8217;re asking for trouble when using this approach in a dynamic environment, like a dashboard, where scales need to adapt to the latest data.</p>
<p>&nbsp;</p>
<p>Acknowledgements:</p>
<p>1. Naomi B. Robbins, <em><span style="text-decoration: underline;">Creating More Effective Graphs</span></em> (New   Jersey: John Wiley &amp; Sons, Inc., 2005), page 262</p>
<p>2. Dona M. Wong, <em><span style="text-decoration: underline;">The Wall Street Journal. Guide to Information Graphics</span></em> (New York: W.W. Norton &amp; Company, Inc.), page 59</p>
<p>3. <a href="http://junkcharts.typepad.com/junk_charts/2010/03/reading-wsj-guide-to-information-graphics.html">Reading: WSJ Guide to Information Graphics</a>, Posted on Mar 06, 2010 at 02:59 PM, Junk Charts: Infographics</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/03/double-take-on-dual-axis-graphs-part-iii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dual Axis Graphs: Are They Useful?</title>
		<link>http://pharma-bi.com/2011/03/dual-axis-graphs-are-they-useful/</link>
		<comments>http://pharma-bi.com/2011/03/dual-axis-graphs-are-they-useful/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 03:11:31 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[BI Solutions]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Tableau]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=731</guid>
		<description><![CDATA[<p>I have to admit that even after reading Stephen Few’s article on dual axis graphs, I am not quite ready to rule them out entirely.  As is so often the case with data visualization, what we use depends on what we’re trying to do.  I agree with Joe Mako and Stephen Few that, when used [...]]]></description>
			<content:encoded><![CDATA[<p>I have to admit that even after reading Stephen Few’s article on dual axis graphs, I am not quite ready to rule them out entirely.  As is so often the case with data visualization, what we use depends on what we’re trying to do.  I agree with <a href="http://makometrics.com/">Joe Mako</a> and <a href="http://www.perceptualedge.com/">Stephen Few</a> that, when used as a communication tool, dual axis graphs often confuse rather than communicate. Therefore it makes little sense to use them in dashboards and other situations where we need to communicate information quickly and at a glance.</p>
<p>But I do find dual axis graphs useful as a shortcut when exploring data – precisely because I can more clearly see the shape of the two curves in relation to each other.  Below is an example that looks at Dollars and Units.  When graphing them separately, the lines look somewhat similar and it takes a second look to notice that Units are declining while Dollars are increasing.</p>
<div id="attachment_732" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Separate_Graphs.jpg"><img class="size-medium wp-image-732" title="Separate_Graphs" src="http://pharma-bi.com/wp-content/uploads/2011/03/Separate_Graphs-300x235.jpg" alt="Two graphs, one showing Dollars the other showing Units" width="300" height="235" /></a><p class="wp-caption-text">Two graphs, one showing Dollars the other showing Units</p></div>
<p>In the dual axis graph below, I got that message without needing a second look:</p>
<div id="attachment_733" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_Dollars_Units.jpg"><img class="size-medium wp-image-733" title="Dual_Axis_Dollars_Units" src="http://pharma-bi.com/wp-content/uploads/2011/03/Dual_Axis_Dollars_Units-300x262.jpg" alt="Dual axis graph showing Dollars and Units" width="300" height="262" /></a><p class="wp-caption-text">Dual axis graph showing Dollars and Units</p></div>
<p>When exploring data with visual analytics tools like Tableau, a dual axis graph can help me compare metrics quickly to see whether something jumps out.  Are the curves moving in synch with each other? Are they trending in a similar direction?  Do the curves indicate anything useful from a business point of view?   For instance, in this example it looks like our margin might be improving.  If the curves moved in the opposite direction, we may need to ask whether we’re discounting too much.</p>
<p>As <a href="../../../../../2011/03/mixed-metaphor-line-graph-bar-chart/comment-page-1/#comment-8112">Joe Mako</a> and <a href="http://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf">Stephen Few</a> point out, in a dual axis graph we cannot compare the magnitude of change, but we can get a general feel for the direction and whether there are further questions we need to ask.  In this example, a simple ratio calculation of Dollars per Unit helps to confirm whether we’re onto something.  When we report results from our analysis, a graph of this ratio will do a better job showing the relationship between Dollars and Units than the dual axis graph shown above.</p>
<div id="attachment_734" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Dollars_per_Unit.jpg"><img class="size-medium wp-image-734" title="Dollars_per_Unit" src="http://pharma-bi.com/wp-content/uploads/2011/03/Dollars_per_Unit-300x248.jpg" alt="Line graph showing Dollars per Unit" width="300" height="248" /></a><p class="wp-caption-text">Line graph showing Dollars per Unit</p></div>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/03/dual-axis-graphs-are-they-useful/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mixed Metaphor: Line Graph + Bar Chart</title>
		<link>http://pharma-bi.com/2011/03/mixed-metaphor-line-graph-bar-chart/</link>
		<comments>http://pharma-bi.com/2011/03/mixed-metaphor-line-graph-bar-chart/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 08:46:44 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Tableau]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=718</guid>
		<description><![CDATA[<p>Many charting tools allow us to combine bar charts and line graphs in the same graphic – but should we?  This question came up when I did a double take the other day while reading a market research report.  In order to focus on function rather than content, I have re-created a similar graph below:</p>
<p [...]]]></description>
			<content:encoded><![CDATA[<p>Many charting tools allow us to combine bar charts and line graphs in the same graphic – but should we?  This question came up when I did a double take the other day while reading a market research report.  In order to focus on function rather than content, I have re-created a similar graph below:</p>
<div id="attachment_719" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/02/Bar_and_Line_01.jpg"><img class="size-medium wp-image-719 " title="Bar Chart and Line Graph Combined (Click to enlarge)" src="http://pharma-bi.com/wp-content/uploads/2011/02/Bar_and_Line_01-300x138.jpg" alt="" width="300" height="138" /></a><p class="wp-caption-text">Click the image to enlarge it</p></div>
<p style="text-align: center;">
<p>If the author’s intent was to induce a double take, it worked for me – in a confusing sort of way:</p>
<ul>
<li>It      caught my eye that the line graph is trending down while the bars are      going up</li>
<li>But it      took a few moments to realize what the line graph actually represents</li>
<li>And      it took a few more moments to realize the message behind the graph: Widget      volume is going up, but the rate of growth has turned from “healthy” to “anemic”</li>
</ul>
<p>That was way too much work to get the gist of this graph!  Why was this so difficult to get?</p>
<p>Instead of providing a scale, the individual data points are labeled – this clutters up the picture and distracts the eye.  Not only that, it is difficult to get a ballpark idea for the maximum values unless one scans each data point – a scale for each data series would have provided that contextual information much more quickly.</p>
<p>When I re-created the graph I realized something else: in order to display the line graph within the colored bars, I had to set the maximum value for the percentage scale higher than what would be expected: instead of setting the top percentage value to 10% I had to use 15% to push the line graph down far enough to completely overlap with the bars.</p>
<p>Also, fewer words in the legend labels would have been better (the original had even more text!) – and it would have helped to spell out the word “percent” instead of hiding the percent symbol amongst all that text.  Better yet: be consistent and stick with the same nomenclature: the chart title says “Volume and Growth” so the series labels should say the same.</p>
<p>Maybe this is a nit pick, but I prefer legends at the bottom or the side of a graph.  The top  should be reserved for the title – IMHO.</p>
<p>Finally, the question of whether we should mix bar charts with line graphs: I don’t think so.  The bars overpower the picture and clutter things up.  Call me a minimalist, but it’s much easier to see how volume and rate of growth relate to each other when we draw two clean lines like so:</p>
<div id="attachment_721" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2011/03/Bar_and_Line_02.jpg"><img class="size-medium wp-image-721 " title="A Dual Axis Line Graph (Click to enlarge)" src="http://pharma-bi.com/wp-content/uploads/2011/03/Bar_and_Line_02-300x224.jpg" alt="" width="300" height="224" /></a><p class="wp-caption-text">Click the image to enlarge it</p></div>
<p style="text-align: center;">
<p>With less clutter, the eye can very quickly take in the overall picture and focus on what matters:</p>
<ul>
<li>Number      of Widgets is going up,</li>
<li>Percent      Growth is going down.</li>
</ul>
<p>If the data values really matter to us, we can look them up in the table below the graph.</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/03/mixed-metaphor-line-graph-bar-chart/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dashboards vs. Scorecards: Technical Hair Splitting?</title>
		<link>http://pharma-bi.com/2011/02/dashboards-vs-scorecards-technical-hair-splitting/</link>
		<comments>http://pharma-bi.com/2011/02/dashboards-vs-scorecards-technical-hair-splitting/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 19:54:51 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[BI Solutions]]></category>
		<category><![CDATA[Dashboards & Scorecards]]></category>
		<category><![CDATA[Modelling]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=711</guid>
		<description><![CDATA[Many people use the terms "dashboard" and "scorecard" interchangeably.  This post explores one critical difference between the [...]]]></description>
			<content:encoded><![CDATA[<p>Years ago my Communications 101 professor told us in class that we should care about the proper definition of words and use words properly “lest we confuse the people who actually do know the difference.”   Sage advice, of course, and also tricky to implement in real life since many words represent something specific to experts and aficionados, while they are mere buzzwords to everyone else.</p>
<p>So, why should we care whether we call something a “dashboard” or a “scorecard?” After all, they both use visual gadgets and graphs, don’t they?  Both provide information about what’s going on in the business, right?  In my experience, most end users really don’t care about the difference in nomenclature: what matters to them is whether the information they get enables profitable business decisions.</p>
<p>Yet, there is a critical difference we need to ferret out during requirements gathering: are we measuring performance or are we monitoring progress?  Measuring performance simply means keeping track of things – like fuel consumption or engine temperature in a car.  Monitoring progress implies that some thresholds and goals have been established: when the needle on the gas gauge nears “Empty” we need to start looking for a gas station.</p>
<p>Ergo, the critical difference is this: measuring things just provides information – what we do with that information is open to interpretation.  Unlike progress monitoring, measuring things doesn’t tell us <strong><span style="text-decoration: underline;">when</span></strong> to do something nor does it provide information on <strong><span style="text-decoration: underline;">what</span></strong> needs to get done.   In order to measure progress, though, we have to set goals and determine acceptable performance standards – in essence, we have to figure out what needs to get done and when to do it.  To stick with the car dash metaphor: someone has to determine how low the gasoline level can sink before the “fuel empty” warning light turns on.</p>
<p>Much has been written about scorecards and dashboards and their respective differences.  As a practical matter, I like this short hand definition from <a href="http://www.b-eye-network.com/blogs/eckerson/">Wayne Eckerson</a>, formerly the director of research and services at the Data Warehousing Institute (<a href="http://tdwi.org/">TDWI</a>):</p>
<table border="0" cellspacing="0" cellpadding="0" width="576">
<tbody>
<tr>
<td width="144"><strong> </strong></td>
<td width="216"><strong>Dashboard</strong></td>
<td width="216"><strong>Scorecard</strong></td>
</tr>
<tr>
<td width="144">Purpose</td>
<td width="216">Measures performance</td>
<td width="216">Charts progress</td>
</tr>
<tr>
<td width="144">Users</td>
<td width="216">Managers, staff</td>
<td width="216">Executives, managers, staff</td>
</tr>
<tr>
<td width="144">Updates</td>
<td width="216">Real-time to right-time</td>
<td width="216">Periodic snapshots</td>
</tr>
<tr>
<td width="144">Data</td>
<td width="216">Events</td>
<td width="216">Summaries</td>
</tr>
<tr>
<td width="144">Top-Level Display</td>
<td width="216">Charts and tables</td>
<td width="216">Symbols and icons</td>
</tr>
</tbody>
</table>
<p>This chart provides a good starting point from which to explore requirements.  Often a dashboard becomes the starting point for a scorecard: while building a dashboard, the organization discusses what needs to be measured and how.  With measurements in place it’s now easier to set thresholds and develop SMART goals for a scorecard.</p>
<p>So, does it matter whether we call something a “dashboard” or a “scorecard”?  Yes – but not as much as one might think.  What matters more is that everyone is on the same page about the <strong><span style="text-decoration: underline;">main</span></strong> purpose of the tool: are we measuring performance or are we monitoring progress?</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2011/02/dashboards-vs-scorecards-technical-hair-splitting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Power of In-House Analytics</title>
		<link>http://pharma-bi.com/2010/07/the-power-of-in-house-analytics/</link>
		<comments>http://pharma-bi.com/2010/07/the-power-of-in-house-analytics/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 22:40:06 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[BI Solutions]]></category>
		<category><![CDATA[Know Your Data]]></category>
		<category><![CDATA[Modelling]]></category>
		<category><![CDATA[Sales]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=695</guid>
		<description><![CDATA[<p>A business associate recently forwarded a white paper by one of the global BI software companies with the comment “… it all sounds so simple, yet we both know the complexities are just under the table.”  Like all good marketing materials, this white paper talked about the current pain of the target audience and provided [...]]]></description>
			<content:encoded><![CDATA[<p>A business associate recently forwarded a white paper by one of the global BI software companies with the comment “… it all sounds so simple, yet we both know the complexities are just under the table.”  Like all good marketing materials, this white paper talked about the current pain of the target audience and provided glowing examples of a possible solution.  Part of the proposed solution included this: free yourself from expensive consultants by bringing the power of predictive analytics in-house.</p>
<p>Coincidentally, this white paper arrived while I was working through the intricacies of sales transactions for a client who is looking for quick – and accurate – ways to answer questions like “What happened to my sales?” and “What happened to my margin?”  Both are high level questions that require a thorough understanding of “low level data” in order to provide meaningful answers.  This got me thinking about the complexities of performing predictive analytics.</p>
<p>Complexities lurking under the predictive analytics table include issues such as data quality.  For instance,</p>
<ul>
<li>Customer      IDs and customer names not always matching</li>
<li>Customer      ratings changing over time</li>
<li>Master      invoices being used to track transactions over an extended period of time</li>
<li>Inconsistent      data entry – for instance, credits sometimes showing up as negative      numbers and sometimes as positive numbers – depending on how the data      entry person coded the transaction.</li>
</ul>
<p>More important than data quality is the question of “how do we interpret what we see?”  Statistical outliers serve as an example here, since they do not require a lot of explanation and their meaning is open to interpretation.  They could be the first sign of a new trend, a fluke, a data error, or the result of factors beyond our control.  How we deal with outliers when building our predictive model depends on what caused them.</p>
<p>Non-repeatable exceptions, a.k.a. flukes, are meaningless when we are trying to build a model of the future.  Usually they are noise and become part of our margin for error rather than a factor we would include in our model. In order to separate meaningful facts from flukes, we need to dig further into the details and determine their influence on the big picture.</p>
<p>For example, the chart below shows an “Outlier Territory” that performed particularly well in terms of achieving sales goals.</p>
<div id="attachment_697" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2010/07/Outlier_Terr.jpg"><img class="size-medium wp-image-697" title="Outlier Territory" src="http://pharma-bi.com/wp-content/uploads/2010/07/Outlier_Terr-300x260.jpg" alt="Graph showing territory performance, including a statistical outlier." width="300" height="260" /></a><p class="wp-caption-text">Graph showing territory performance, including a statistical outlier.</p></div>
<p>As we refine our bonus plan for the next pay period, how should we proceed?  Should we assume this territory will continue to have high sales and therefore raise its quota?  The answer depends in part on whether we are dealing with</p>
<ul>
<li>A      real issue, such as our bonus model not working for that territory, or</li>
<li>A      fluke, like a one-time-only buy in by a major customer, or</li>
<li>Data      errors, as in “somehow we summed up the sales data incorrectly,” or</li>
<li>Factors      beyond our control, like an uptick in demand because of an unexpected and      short-lived emergency.</li>
</ul>
<p>Sometimes the sales rep can provide the insight we need to understand what caused the outlier.  Usually, though, we need to look for likely causes using the data we already have and relating it to information from other sources.</p>
<p>As we can see, our crystal ball is only as good as the answers we derive from data collected in the past.  Building it also requires us to make assumptions about how pieces fit together, how they influence each other and how important they are in shaping the future.  We can improve our assumptions using statistical tools like t-Tests, ANOVAs and various regression models.  We can look to proxies and draw on our understanding of the market place.  No matter how we develop our assumptions, we need to understand their limitations or they might turn us into <a href="http://en.wikipedia.org/wiki/Donkey">Jacks and Jennys</a> down the road.</p>
<p>Long story short: to build a crystal ball we need more than powerful tools.  We need skilled and experienced people, good data and the commitment to adapt over time.</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2010/07/the-power-of-in-house-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Three Graphs Can Tell Us Where to Focus our Attention</title>
		<link>http://pharma-bi.com/2010/05/how-three-graphs-can-tell-us-where-to-focus-our-attention/</link>
		<comments>http://pharma-bi.com/2010/05/how-three-graphs-can-tell-us-where-to-focus-our-attention/#comments</comments>
		<pubDate>Tue, 04 May 2010 22:22:00 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Tableau]]></category>
		<category><![CDATA[Visualization]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=644</guid>
		<description><![CDATA[<p>A while back, SEO guru Glenn Crocker and I were talking about how visual analytics can help with search engine optimization.   Getting useful SEO information usually requires crunching data for thousands of links, so it’s quite useful to have something that takes us from a quick overview to the interesting details.</p>
<p>To illustrate how visual analytics [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, SEO guru <a href="http://www.glenncrocker.com/">Glenn Crocker</a> and I were talking about how visual analytics can help with search engine optimization.   Getting useful SEO information usually requires crunching data for thousands of links, so it’s quite useful to have something that takes us from a quick overview to the interesting details.</p>
<p>To illustrate how visual analytics can help with this, we decided to look at the web sites for two of our favorite charities: <a href="http://feedingamerica.org/">Feeding America</a>, formerly known as Second Harvest, and an affiliated organization called the <a href="http://harvesters.org/">Harvesters Community Food Network</a> in Kansas City.</p>
<p>Using data from <a href="http://www.seomoz.org/">SEOmoz</a>, we combined the links for both sites into one database and compared their link performance.  A quick glance at the graph below tells us that Feeding America has the better SEO profile: more links in general and also more high quality links.   This shouldn’t be too surprising since Feeding America is a national organization, while Harvesters serves the greater Kansas City area.  But comparing the two sites provided some interesting data for us to review.</p>
<p>Two things are worth noting here:</p>
<ul>
<li>Some      domains linking to Feeding America are very highly ranked – up to a rank      of 10, while the domains linked to the Harvester’s site top out at 8.  This is also reflected in the overall average for the domain      ranks &#8211;  5.5 and 4.5 respectively.</li>
<li>When      looking at the color near the peak of each curve, we notice that the rank      for domains with the most links to Feeding America is higher than for      highly linked domains at Harvesters.</li>
</ul>
<div id="attachment_645" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2010/05/mozRank01.jpg"><img class="size-medium wp-image-645" title="Comparing mozRank for Feeding America and the Harvesters Food Network" src="http://pharma-bi.com/wp-content/uploads/2010/05/mozRank01-300x246.jpg" alt="Comparing mozRank for Feeding America and the Harvesters Food Network" width="300" height="246" /></a><p class="wp-caption-text">The quality of the links is indicated by the color (green is better) and the Domain mozRank (10 is best).  The number of links is indicated by the height of each curve.</p></div>
<p style="text-align: center;">
<p>Next we tried to figure out which sites contributed the most to the SEO performance.  Below I have highlighted a few of them.  These scatter plots show domains that have 5 or more links across both sites.  In the interactive version we can hover over data points to see more details about each domain.  I am not sure that the folks at SEOmoz would be happy about me uploading their data, so I am showing just this picture to get the general idea across.</p>
<p><a href="http://pharma-bi.com/wp-content/uploads/2010/05/AvgDmTR5B.jpg"><img class="aligncenter size-medium wp-image-646" title="Domains With High Impact on SEO Performance" src="http://pharma-bi.com/wp-content/uploads/2010/05/AvgDmTR5B-300x188.jpg" alt="Domains With High Impact on SEO Performance" width="300" height="188" /></a></p>
<p>Depending on time and interest, we can perform even more fine grained analysis.  For example, just because a highly ranked domain sends us links doesn’t mean the links rank equally well.  The graph below shows that only two highly ranked domains send links of a similarly high rank.</p>
<p><a href="http://pharma-bi.com/wp-content/uploads/2010/05/HarvesterTop15.jpg"><img class="aligncenter size-medium wp-image-647" title="Top 15 Domains Linking to Harvesters" src="http://pharma-bi.com/wp-content/uploads/2010/05/HarvesterTop15-249x300.jpg" alt="Top 15 Domains Linking to Harvesters" width="249" height="300" /></a></p>
<p>Let’s pretend we are Harvesters and we want to reach an audience beyond the Kansas City area. By looking at these three graphs, we now know that</p>
<ul>
<li>we      need more and better links</li>
<li>we      need web content that attracts more highly trusted domains</li>
<li>we      have plenty of links from the local community (many of the Top 15 Domains      are from Kansas City      based organizations).  Maybe we      should broaden our horizons and reach out to the owners of more nationally      focused, highly trusted domains.</li>
</ul>
<p>P.S.:  Just in case anyone is curious: at least in the Kansas City area, Harvesters does rank at top for the search term “Harvesters”</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2010/05/how-three-graphs-can-tell-us-where-to-focus-our-attention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Decision Making During Turmoil: Are We Prepared?</title>
		<link>http://pharma-bi.com/2010/03/decision-making-during-turmoil-how-well-are-we-prepared/</link>
		<comments>http://pharma-bi.com/2010/03/decision-making-during-turmoil-how-well-are-we-prepared/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 00:34:56 +0000</pubDate>
		<dc:creator>Christine Muser</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Know Your Data]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Modelling]]></category>
		<category><![CDATA[Sales]]></category>
		<category><![CDATA[Six Sigma]]></category>

		<guid isPermaLink="false">http://pharma-bi.com/?p=528</guid>
		<description><![CDATA[<p>In order to make profitable decisions, we need good information.  Whether we base our decisions on sales, customer perceptions or the number of widgets we shipped last month, our information comes from some system that collects and measures relevant data for us.</p>
<p>In my Six Sigma Black Belt class we recently discussed the challenges of developing [...]]]></description>
			<content:encoded><![CDATA[<p>In order to make profitable decisions, we need good information.  Whether we base our decisions on sales, customer perceptions or the number of widgets we shipped last month, our information comes from some system that collects and measures relevant data for us.</p>
<p>In my Six Sigma Black Belt class we recently discussed the challenges of developing a meaningful measurement system.  As usual, the theory sounds easy &#8211; until it hits the road of reality.  A very simple class room exercise illustrated that point neatly: our instructor had gone through the effort of individually placing twenty M&amp;M candies into twenty numbered plastic bags and then asked us to “accept” or “reject” each M&amp;M based on three criteria.  The criteria were written down and no additional verbal cues were given nor did we have a “master” M&amp;M on which to base our judgment.</p>
<p>We realized very quickly that these criteria were not nearly as clear cut as they appeared to be.  For example, one criterion specified that the letter “<strong>m”</strong> on the candy should be “100% visible.”   Sounds clear cut, right?  After all, is has a numeric qualifier to help us make our decision!  Reality check: have you ever looked at an M&amp;M up close? The next time you do, look for tiny spots where the white ink is thin enough for the underlying color of the candy to bleed through the letter “<strong>m</strong>.”  Question: if the entire outline of the letter “<strong>m</strong>” appears on the candy but these little flecks of color are bleeding through, does this mean that the “<strong>m</strong>” is no longer 100% visible?</p>
<p>The graph below shows the result of the M&amp;M exercise. It illustrates just how far apart the judgment of perfectly reasonable people can be when they are asked to interpret someone else’s instructions.  The left hand graph shows how much each team agreed with itself after reviewing all 20 candies twice in a row.  The right hand graph shows how much each team agreed with an external standard for evaluating the candies.  The fact that the two red lines barely line up with each other illustrates just how far apart the two teams were with their assessment of the same group of M&amp;Ms.</p>
<div id="attachment_529" class="wp-caption aligncenter" style="width: 310px"><a href="http://pharma-bi.com/wp-content/uploads/2010/03/MSA_Exercise_SSBB2010.jpg"><img class="size-medium wp-image-529 " title="MSA_Exercise_SSBB2010" src="http://pharma-bi.com/wp-content/uploads/2010/03/MSA_Exercise_SSBB2010-300x200.jpg" alt="M&amp;M Attribute Agreement Analysis" width="300" height="200" /></a><p class="wp-caption-text">M&amp;M Attribute Agreement Analysis - click the picture to enlarge it.</p></div>
<p>The real issue, of course, has nothing to do with the candy and how it looks.  The bigger point lies in something the Six Sigma folks call “operational definitions” and how we use them.  The M&amp;M example illustrates just how unpredictable individual judgments can be and how much training and feedback may be required before team members reach similar conclusions – which, in turn, will allow the team to work toward a common goal.</p>
<p>As the M&amp;M example shows, developing operational definitions can be tricky.  Definitions may be less clear cut than we think.  We have a limited amount of time in which to develop them.  In group settings, we also have to figure in personalities and hidden agendas. Good leadership and negotiation skills are needed to keep everyone focused without suppressing critical input.  In the world of sales and marketing we have the additional challenge of dealing with missing and incomplete data.  While statistical models go a long way toward filling in the picture, they are difficult to explain and are not always accepted by those whose paycheck depends on them or by those whose experience seems to indicate something else.</p>
<p>Some ideas for dealing with all this will be the subject of future posts.  For today I simply want to ask these questions: with so many changes in the health care marketplace, how well are we prepared to make decisions?  Which operational definitions do we need to add, update or toss out in order to ensure good decisions for the future?</p>
<p><strong>P.S.:  Additional Information About The M&amp;M Graph</strong></p>
<p>This data mimics the results from a Measuring System Audit (MSA) project with M&amp;M candies.  The assignment was to inspect 20 pieces of candy and to determine whether each met these three criteria:</p>
<p>1: the letter &#8216;m&#8217; is 100% visible<br />
2: the ink for the letter &#8216;m&#8217; is not smudged<br />
3: there are no chips</p>
<p>Only these written criteria were given. Neither team received additional instructions nor a &#8220;Master&#8221; against which to evaluate the candy.  Each team was asked to review the candies in two rounds.  During the first round, Team 2 decided to fail all 20 pieces of candy, hence that team&#8217;s low rate of agreement.</p>
<p>Conclusion: gaining agreement about operational definitions is critical.  Make sure that everyone has the same training and verify that everyone in a decision making role can reach decisions that support the established goal.  Repeat training and offer opportunities for feedback &amp; refinement of criteria.</p>
]]></content:encoded>
			<wfw:commentRss>http://pharma-bi.com/2010/03/decision-making-during-turmoil-how-well-are-we-prepared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

