<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Dave's Adventures in Business Intelligence</title>
	<atom:link href="http://www.dagira.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagira.com</link>
	<description>...you are in a twisty maze of passageways, all different...</description>
	<lastBuildDate>Tue, 31 Aug 2010 01:40:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>blogmaster@dagira.com ()</managingEditor>
		<webMaster>blogmaster@dagira.com()</webMaster>
		<category></category>
		<ttl>1440</ttl>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>...you are in a twisty maze of passageways, all different...</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>blogmaster@dagira.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.dagira.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.dagira.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Dave's Adventures in Business Intelligence</title>
			<link>http://www.dagira.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>What does personal grooming have to do with business intelligence?</title>
		<link>http://www.dagira.com/2010/08/30/what-does-personal-grooming-have-to-do-with-business-intelligence/</link>
		<comments>http://www.dagira.com/2010/08/30/what-does-personal-grooming-have-to-do-with-business-intelligence/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 01:40:55 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=315</guid>
		<description><![CDATA[This post is a bit outside of my normal technical content. I was struck by something on the way home today and can&#8217;t get it out of my head until I write it down. For the past several years (since 2005, I think) I have had a beard. A few weeks ago, I shaved it [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a bit outside of my normal technical content. I was struck by something on the way home today and can&#8217;t get it out of my head until I write it down. For the past several years (since 2005, I think) I have had a beard. A few weeks ago, I shaved it off. Guys that have worn then removed beards will probably be able to answer this next question: What is the most common comment I receive from people that are seeing me for the first time without my long-time beard? <span id="more-315"></span></p>
<p>The number one comment is, &#8220;Nice haircut.&#8221; <img src='http://www.dagira.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>The same thing seems to happen every time I switch from bearded to beardless. The fact is that I didn&#8217;t get a haircut. I shaved my beard. But people are creatures of habit. When something is different but not &#8220;different enough&#8221; it seems to be hard to properly discern the true change. People correctly identify that I have less hair. They incorrectly identify the source of the change.</p>
<p>Can the same thing happen with our reports? Sure. The correct result can be right in front of us, but we&#8217;re so accustomed to seeing things in a particular way that we can still derive the wrong conclusion even with correct data. What does this say about our ability to be successful in our attempts to convey critical information via our various business intelligence tools? How effective can a message be (even if it&#8217;s the correct message) if it is interpreted incorrectly?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/08/30/what-does-personal-grooming-have-to-do-with-business-intelligence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Handling Conditions on Outer Joins</title>
		<link>http://www.dagira.com/2010/08/17/handling-conditions-on-outer-joins/</link>
		<comments>http://www.dagira.com/2010/08/17/handling-conditions-on-outer-joins/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 21:25:44 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Join Techniques]]></category>
		<category><![CDATA[Universe Design]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=310</guid>
		<description><![CDATA[I don&#8217;t like outer joins in my reporting universes. Never have. Sure, if I am creating a universe against an application system I might consider using outer joins because of the normalized nature of the data. But if I am reporting against a warehouse schema of some kind, I really prefer to use inner joins. [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like outer joins in my reporting universes. Never have. Sure, if I am creating a universe against an application system I might consider using outer joins because of the normalized nature of the data. But if I am reporting against a warehouse schema of some kind, I really prefer to use inner joins. That way I avoid any potential performance issues caused by outer joins, but more importantly I avoid questions about report data. That being said, outer joins do have a specific purpose, and if I need to use them in my universe I certainly can.</p>
<p>One of the biggest challenges with outer joins (other than potential performance issues) is explaining to a user why their query results changed because they added a condition to their query. Remember that users don&#8217;t (typically) look at the SQL, so they won&#8217;t know that I have created an outer join. It can be confusing. Fortunately I have options as to how my outer joins are executed, so once I determine their usage requirements I can change the way my universe behaves.</p>
<h3>Defining the Problem</h3>
<p>For this post I will am going to use a very simple universe with only three tables, shown here.</p>
<p><img src="/tips/outer_join_filters/ssg_universe.png" width="496" height="218" border="0" alt="Summit Sporting Goods Universe screen shot" title="Summit Sporting Goods screen shot" /></p>
<p>This universe joins a customer to an order, and an order to order lines. In my database I have one customer that does not yet have any orders. If I run a query against the current universe structure, this new customer will not show up. My requirement is to show all customers, whether they have orders or not. This must be true even if I put a condition on the order table. That&#8217;s where it gets tricky. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <span id="more-310"></span></p>
<h3>ANSI_92 Parameter Setting</h3>
<p>In order to make this work, I have to make sure that my universe parameter setting for <code>ANSI_92</code> is set properly. From the <strong>File</strong> menu I will select <strong>Parameters</strong>, and on the tabbed dialog box that appears I will click on the <strong>Parameters</strong> tab. I need to set the <code>ANSI_92</code> parameter to &#8220;Yes&#8221; in order for this technique to work. Without this setting, my joins will be created using Oracle-specific syntax and that isn&#8217;t what I want here.</p>
<p><img src="/tips/outer_join_filters/parameters.png" width="517" height="366" border="0" alt="Universe parameters screen shot" title="Setting ANSI_92 parameter in a BusinessObjects universe" /></p>
<p>Once I have verified this setting I can close the parameter screen. Next I need to define my outer join.</p>
<h3>Defining an Outer Join</h3>
<p>The outer join definition is done the same way with all databases, but it&#8217;s not always done in the same direction. In some databases I have to check the primary table and in others I need to check the secondary or optional table. Rather than trying to remember which database does what, I will pick a side and check to make sure that the tiny &#8220;o&#8221; appears on the expected side of my join. For example, I want to reconfigure my existing inner join between customers and orders and make it an outer join as shown here.</p>
<p><img src="/tips/outer_join_filters/outer_join_checkbox.png" width="512" height="483" border="0" alt="Outer join checkbox screen shot" title="Marking an outer join in a BusinessObjects universe" /></p>
<p>The structure window looks a bit different now.</p>
<p><img src="/tips/outer_join_filters/outer_join_active.png" width="496" height="218" border="0" alt="Outer join screen shot" title="Outer join definition in a BusinessObjects universe" /></p>
<p>As mentioned earlier, the tiny &#8220;o&#8221; on the right side of the join denotes the optional side. If the &#8220;o&#8221; is on the wrong side, I will open the join properties window and select the other checkbox. </p>
<p>That&#8217;s how I create an outer join in my universe. Let me show how it works first, then I will show how I can break it.</p>
<h3>Outer Join Queries</h3>
<p>I have exported my outer join universe and created a very simple query. I have included the customer ID, name, and their order total. There is one customer (appropriately named &#8220;New Customer&#8221;) that has no orders and their order amount shows up blank because of the outer join setting.</p>
<p><img src="/tips/outer_join_filters/outer_join_results.png" width="491" height="265" border="0" alt="Query results from Web Intelligence using an outer join" title="Query results from Web Intelligence using an outer join" /></p>
<p>So far everything is working as I expected.</p>
<h3>Breaking an Outer Join</h3>
<p>An outer join is designed to allow rows that don&#8217;t completely match to still show up on my report. What happens if I apply a condition to the outer relationship? For example, I might want to add a condition to limit orders to a particular date range.</p>
<p><img src="/tips/outer_join_filters/query_conditions.png" width="452" height="266" border="0" alt="Query panel screen shot" title="Web Intelligence query panel with condition on outer join" /></p>
<p>Here are the results after running this query.</p>
<p><img src="/tips/outer_join_filters/condition_results.png" width="491" height="217" border="0" alt="Query results from conditions" title="Query results after placing a condition on an outer join object" /></p>
<p>What went wrong? (Answered on next page&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/08/17/handling-conditions-on-outer-joins/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Too Many Objects? Too Many Rows? Try Prompting For Level of Detail</title>
		<link>http://www.dagira.com/2010/08/04/too-many-objects-too-many-rows-try-prompting-for-level-of-detail/</link>
		<comments>http://www.dagira.com/2010/08/04/too-many-objects-too-many-rows-try-prompting-for-level-of-detail/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 23:06:39 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Prompts]]></category>
		<category><![CDATA[Universe Design]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=308</guid>
		<description><![CDATA[A while back I was on a project where the users wanted to set up reports that initially displayed about six different dimension objects and a bunch of measures. They also wanted to have the flexibility of dragging a different set of dimension objects on the report and either adding to or replacing an existing [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I was on a project where the users wanted to set up reports that initially displayed about six different dimension objects and a bunch of measures. They also wanted to have the flexibility of dragging a different set of dimension objects on the report and either adding to or replacing an existing dimension. The idea was good. The amount of data brought back was a problem. I was able to fix that with some interesting prompt objects in the universe.</p>
<h3>The Problem Definition</h3>
<p>For the example I will present in this post I will once again use my version of Island Resorts Marketing universe which I have converted to Oracle. I will create a report that initially shows the Resort and (for simplicity) a single measure (Revenue). The report will be designed to let the user drag on additional details like Service Line and Service. But I will design my objects in such a way that if the user doesn&#8217;t want to see the information at that level of detail they don&#8217;t incur the overhead (row count) simply because the object is present in the query. In order to accomplish this, I will prompt the user with a list that includes the tokens &#8216;Resort&#8217;, &#8216;Service Line&#8217;, and &#8216;Service.&#8217; The user will select the lowest level of detail they expect to use on the report. In this particular example the selections are hierarchical, meaning that selecting &#8216;Service Line&#8217; implies that the Resort data will also be present. There is another option &#8216;None&#8217; that can be selected if they want to deactivate the entire list.</p>
<p><em>Note that XI 3.1 offers a new feature called Query Stripping (in service pack 3) that works for BW and other OLAP queries and does this process automatically. It is not (yet) available for relational databases.</em> <span id="more-308"></span></p>
<p>My steps are:</p>
<ul>
<li>Create a derived table to provide values for my prompt</li>
<li>Create a custom LOV query to display the prompt values in the desired order</li>
<li>Create a prompt object that allows a user to select the desired level of detail</li>
<li>Create custom Level of Detail (LOD) versions of the impacted dimension objects</li>
<li>Build my report</li>
</ul>
<h3>Creating the Level of Detail Prompt</h3>
<p>First I have to create some data in my universe to feed my list of values (LOV) query. I have detailed this technique before. It&#8217;s quite simple to use a derived table and select against the DUAL table (in the case of Oracle) or equivalent and build any sort of list. Something like this will give me a list of values for the Resort level of detail (LOD) prompt.</p>
<pre>select 1 as LOD_Order, 'Resort'  as LOD_Resort from dual
union
select 2, 'Service Line' from dual
union
select 3, 'Service' from dual
union
select 4, 'None' from dual</pre>
<p>I have defined two columns for my derived table. The first is called LOD_Order and it will be used to order the prompt items in the way I expect to see them. The second column is the value that will populate my LOV. After creating this derived table I checked to see what the values were, and they came up as expected.</p>
<p><img src="/tips/level_of_detail/derived_table.png" width="224" height="198" border="0" alt="level of detail table rows" title="Level of Detail derived table rows" /></p>
<h3>Creating the Custom LOV Query</h3>
<p>The next step is to build the objects I need to create the list of values (LOV) that will appear in my prompt definition. I will create a class called &#8220;LOV&#8221; that includes objects for both the LOD_ORDER and the LOD_RESORT columns. Eventually these objects will be hidden, but I will need them to be visible in order to create my custom LOV query. The LOV will be built on the Resort LOD object, and initially it won&#8217;t look too special. It includes only the selected object. The trick is that I want to see the values in a specific order; that&#8217;s why I added the &#8220;order&#8221; column to my derived table. In order to create a sort on this object, I need to click on the Manage Sorts button shown here.</p>
<p><img src="/tips/level_of_detail/lov_query.png" width="542" height="163" border="0" alt="query panel screen shot" title="Sort Manager for the query panel definition of the custom LOV object" /></p>
<p>That button is only active if my database supports an order by clause that includes objects that do not appear in the select clause. If that button does <strong>not</strong> appear and I know that technique will work, I can update my designer parameter file as detailed in an earlier post titled, <a href="http://www.dagira.com/2010/03/04/sort_by_nono-very-confusing/">&#8220;SORT_BY_NO=NO? Very Confusing…&#8221;</a> which shows how to accomplish that. Clicking that button allows me to define a custom sort based on the LOD Order column.</p>
<p><img src="/tips/level_of_detail/lov_query_order.png" width="561" height="405" border="0" alt="Screen shot of Designer LOV screen" title="Adding a custom order object to my LOV query definition" /></p>
<p>When I run the query I see the rows in the order I expect.</p>
<p><img src="/tips/level_of_detail/lov_query_results.png" width="351" height="378" border="0" alt="Screen shot of Designer LOV results" title="Results of my custom LOV in the desired order" /></p>
<h3>Defining the Prompt</h3>
<p>I am going to reuse the prompt logic in multiple objects (Resort, Service Line and Service) so I am going to define it once and reference it using the @Select() function. Here&#8217;s the prompt:</p>
<pre>@Prompt('Please select desired Level of Detail','A','LOV\Resort LOD',mono,constrained)</pre>
<p>This is fairly standard syntax. The prompt text is defined, and the type of response is &#8216;A&#8217; for character data. The LOV definition points to the custom query I created in the last step. I only want to allow a user to select a single value, and because the data only works if it comes in as I expect I am constraining the user. They <strong>have</strong> to pick from my list in order to proceed.</p>
<h3>Building the Level of Detail Objects</h3>
<p>I will be able to save some effort by reusing the prompt definition using the @Select() function. Here&#8217;s what my new Resort object looks like:</p>
<pre>case @Select(Level of Detail\LOD Prompt)
when 'None' then 'Resort N/A'
else RESORT.resort
end</pre>
<p>Resort is the top of the list. That means if I pick Resort, Service Line, or Service, I want to see the resort values populated. This means I can take a shortcut. If the user selects &#8216;None&#8217; then I won&#8217;t show the resort values. If they pick anything else, I will.</p>
<p>The rest of my objects look very similar.</p>
<p>Service Line</p>
<pre>case @Select(Level of Detail\LOD Prompt)
when 'None' then 'Service Line N/A'
when 'Resort' then 'Service Line N/A'
else SERVICE_LINE.service_line
end</pre>
<p>Service</p>
<pre>case @Select(Level of Detail\LOD Prompt)
when 'None' then 'Service N/A'
when 'Resort' then 'Service N/A'
when 'Service Line' then 'Service N/A'
else SERVICE.service
end</pre>
<p>What I did was add a line of code to each of my objects, since each was at a lower level of detail. Note that I could have taken the opposite approach and defined my Service object like this:</p>
<pre>case @Select(Level of Detail\LOD Prompt)
when 'Service' then SERVICE.service
else 'Service N/A'
end</pre>
<h3>Building the Report</h3>
<p>I can now create a very simple report that includes all three of my new LOD objects and the Revenue. When I run the report at the Service level of detail it will show all of the detailed data, just as it would have before I created these custom objects. The results from Island Resorts end up being 27 rows of data.</p>
<p><img src="/tips/level_of_detail/report_detail.png" width="433" height="619" border="0" alt="Web Intelligence report at the lowest level of detail" title="Web Intelligence report at the lowest level of detail" /></p>
<p>If I rerun the exact same report at the Resort level of detail I get three rows. </p>
<p><img src="/tips/level_of_detail/report_summary.png" width="433" height="91" border="0" alt="Web Intelligence report at the resort level of detail" title="Web Intelligence report at the resort level of detail" /></p>
<p>The objects that I dropped from my level of detail are showing &#8220;N/A&#8221; values in the block. The prompt shows my four choices in the desired order because of the customizations I did for the LOV earlier.</p>
<p><img src="/tips/level_of_detail/report_prompt.png" width="511" height="444" border="0" alt="Report prompt screen" title="Web Intelligence report prompt screen" /></p>
<p>What is the true impact here? What have I really accomplished?</p>
<h3>Impact Analysis</h3>
<p>Sample databases like Island Resorts are great for fooling around because they&#8217;re small. They&#8217;re not so great for demonstrating techniques like this because the true impact is hard to determine. I went from 27 rows down to 3, not really a big deal, right? On a larger database with more combinations of dimension values, the impact could be far more significant. I might drop from 50,000 rows down to several hundred. And the beauty of it is that if the user doesn&#8217;t need the level of detail, they don&#8217;t pay the penalty of downloading 50,000 rows only to roll it up (via projection) on the report. If they later drag on one of the suppressed objects and see the &#8220;N/A&#8221; result, all the user has to do is refresh the report and select the new level of detail to get more rows.</p>
<p>My sample report screen shots included all of the objects at the same time in order to show what was really happening. When I used this technique for a real report, I only included objects that I wanted to see from the beginning. The other LOD objects were listed in the available objects. </p>
<h3>Alternate Solution</h3>
<p>The solution I outlined here works as desired if there is a rigorous hierarchy and the user is just selecting the lowest level of detail desired on the report. What I actually had to implement was a bit more complex and I will provide a sketch of the solution here. The actual requirement was based on different combinations of dimension objects. A matrix of choices might look like this:</p>
<pre>Resort (by itself)
Service Line (also by itself)
Service
Resort + Service Line
Resort + Service
Service Line + Service
Resort + Service Line + Service
None</pre>
<p>Instead of the simple case statement objects I showed earlier, I had to use a pattern matching function and look for the string &#8220;Resort&#8221; anywhere in the prompt result. If the user picked anything that included the Resort as an option, then the Resort object would return a value. Ultimately I created prompt &#8220;bit&#8221; objects in order to simplify the logic.</p>
<h3>Conclusion</h3>
<p>I thought this was an interesting technique to share at this point, what with the recent release of SP3 with the Query Stripping feature for cube data. It worked well for the project. In some cases this strategy allowed us to reduce the number of rows by an order of magnitude (10,000s of rows down to 1,000s or even hundreds) while retaining a large number of objects in the report. The biggest drawback of this solution is that my SQL code will still hit the requested tables, even if I am not really requesting any data. Going back to my earlier example, a true query stripping process would eliminate the resort, service line, and service tables if I selected &#8216;None&#8217; from the prompt. In my &#8220;level of detail&#8221; solution all of those tables are still present and therefore have an impact on the query performance. </p>
<p>The issue I was trying to solve in this case was related to the number of rows downloaded to the report. The queries ran fast enough that the query performance was not as big of a concern. It was my goal to provide a way to reduce the row counts without losing the flexibility to add more dimension objects to my report on the fly. This technique accomplished that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/08/04/too-many-objects-too-many-rows-try-prompting-for-level-of-detail/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Change Management Strategies For Universe Developers</title>
		<link>http://www.dagira.com/2010/07/28/change-management-strategies-for-universe-developers/</link>
		<comments>http://www.dagira.com/2010/07/28/change-management-strategies-for-universe-developers/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:13:17 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[2010 Fall Focus]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=304</guid>
		<description><![CDATA[Yesterday I mentioned my first talk that I will be giving at the fall BusinessObjects conference this year. Brian Durning and I are going to compare and contrast Crystal and Web Intelligence. But that&#8217;s not all. In the session immediately following that one I will be giving a talk about change management for BusinessObjects universes.
Session [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I mentioned my first talk that I will be giving at the fall BusinessObjects conference this year. Brian Durning and I are going to <a href="http://www.dagira.com/2010/07/26/dueling-reporting-tools/">compare and contrast Crystal and Web Intelligence</a>. But that&#8217;s not all. In the session immediately following that one I will be giving a talk about change management for BusinessObjects universes.</p>
<blockquote><p><strong>Session Code:</strong> 804<br />
<strong>Title:</strong> Don’t Lose Control: Change Management Strategies for Universe Designers<br />
<strong>Day and Time:</strong> Tuesday, October 05, 2010, 2:45PM &#8211; 3:45PM</p></blockquote>
<p>My final material is subject to change as I see how long each section gets, but here&#8217;s a brief overview of the areas I am considering covering.</p>
<ul>
<li><strong>Impact of database changes</strong><br />
What happens to my universe when my database changes? How can I address those issues in a way that causes the least impact on my reporting team?</li>
<li><strong>Impact of universe changes</strong><br />
What happens to reports when I change my universe?</li>
<li><strong>How can I compare two versions of a universe to see what is changing?</strong><br />
This is the big one&#8230; several years ago I started a script that allows me to <a href="http://www.dagira.com/2007/11/13/universe-diff-tool/">check two different versions of a universe</a> and see what is different. I have been using the script for a while now and it does most of what I need, but it isn&#8217;t complete. I plan to (hope to) get the code finished by October so I can distribute it at the conference, and of course here on my blog. The code will be released under the GNU GPL (open source license). Details of that license and what someone can (or cannot) do are found on the <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL home page</a>. I will demonstrate the code and how it works under various change scenarios during my presentation&#8230; assuming I get it all working the way I want it to, of course.</li>
<p>These were the ideas I had in mind when I submitted the abstract. Time will tell which of them make it into the final presentation. Anything that doesn&#8217;t make it will very likely show up here as blog posts.</p>
<p>At some point, anyway. I mean I only started working on my universe change script in 2007&#8230; <img src='http://www.dagira.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/07/28/change-management-strategies-for-universe-developers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>iPad Keyboard &#8230; Feature?</title>
		<link>http://www.dagira.com/2010/07/27/ipad-keyboard-feature/</link>
		<comments>http://www.dagira.com/2010/07/27/ipad-keyboard-feature/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 04:16:09 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=305</guid>
		<description><![CDATA[I had to laugh today as I noticed a particular feature on my iPad.   I was getting ready to log in to BOB. Here&#8217;s the screen shot. If you examine it closely you might see what amused me&#8230;

I will give you a few moments to look over the screen shot. Pay careful attention [...]]]></description>
			<content:encoded><![CDATA[<p>I had to laugh today as I noticed a particular feature on my iPad. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  I was getting ready to log in to BOB. Here&#8217;s the screen shot. If you examine it closely you might see what amused me&#8230;</p>
<p><img src="/tips/ipad_keys/bob_login.png" border="0" alt="BOB Login Screen" title="BOB Login Screen" width="550" height="412" /></p>
<p>I will give you a few moments to look over the screen shot. Pay careful attention to the keyboard&#8230; when you are ready for the answer, click &#8230;. <span id="more-305"></span></p>
<p>Did you get it? Here&#8217;s a closeup view of the area I noticed.</p>
<p><img src="/tips/ipad_keys/keys_closeup.png" border="0" alt="Closeup view of iPad keyboard" title="Closeup view of iPad keyboard" width="550" height="363" /></p>
<p>Get it yet?</p>
<p>If not, take a quick look at your own physical keyboard. If it&#8217;s like every keyboard I have used, you will see a tiny dot or raised ridge or marker of some kind on the &#8220;F&#8221; and &#8220;J&#8221; keys. I am a touch-typist, meaning I put my hands on the &#8220;home row&#8221; and go to town. I am a fairly quick typist because of years of piano lessons before I even started working on computers. The point of those two little marks is they denote where my index fingers rest on the keyboard if I am in the proper position for typing. Makes sense, right?</p>
<p>But not on an iPad. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  The keys are all virtual! There&#8217;s no way I am going to be able to &#8220;feel&#8221; on the keyboard and know that my fingers are in the proper location for touch typing&#8230; That remains, in fact, one of my biggest complaints about the iPad is the lack of a physical keyboard. I plan to get a bluetooth keyboard when it&#8217;s convenient to address this.</p>
<p>But for now, I will chuckle a little bit every time I pull up the virtual keyboard and see the home row clearly (and pointlessly) marked. There is another lesson to be shared here that will be addressed by a blog post from a friend of mine. Once it&#8217;s up, I will post a link. Until then, I think I&#8217;ll have to write Steve a quick note asking him why we have virtual bumps on a virtual keyboard. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/07/27/ipad-keyboard-feature/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Dueling Reporting Tools</title>
		<link>http://www.dagira.com/2010/07/26/dueling-reporting-tools/</link>
		<comments>http://www.dagira.com/2010/07/26/dueling-reporting-tools/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 14:53:08 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[2010 Fall Focus]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=303</guid>
		<description><![CDATA[I submitted several abstracts for consideration for the fall conference this year. The one I was the most excited about got accepted into the Webi/Deski track, and is called, &#8220;Discovery Versus Delivery: A Comparison of Client Reporting Tools.&#8221; Here is the formal track designation information.
Session Code: 603
Title: Discovery Versus Delivery: A Comparison of Client Reporting [...]]]></description>
			<content:encoded><![CDATA[<p>I submitted several abstracts for consideration for the fall conference this year. The one I was the most excited about got accepted into the Webi/Deski track, and is called, &#8220;Discovery Versus Delivery: A Comparison of Client Reporting Tools.&#8221; Here is the formal track designation information.</p>
<blockquote><p><strong>Session Code:</strong> 603<br />
<strong>Title:</strong> Discovery Versus Delivery: A Comparison of Client Reporting Tools<br />
<strong>Day and Time:</strong> Tuesday, October 05, 2010, 1:30PM &#8211; 2:30PM</p></blockquote>
<p>What is this talk about? A while back I wrote a post about a very short (single page) slide from SAP that shows how to pick which tool for a particular problem. For this presentation, Brian Durning and I will be doing a demonstration of strengths of two of the most important tools from BusinessObjects: Crystal and Web Intelligence. We plan to cover (and demonstrate!) several scenarios that should help show where the strengths of each tool lie. I will be covering Web Intelligence, and <a href="http://www.linkedin.com/pub/brian-durning/4/a79/aa3">Brian Durning</a> will be covering the Crystal side of the house.</p>
<p>It should be fun. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p><strong>Related Links</strong></p>
<ul>
<li>Related Blog Post: <a href="http://www.dagira.com/2010/05/24/delivery-versus-discovery/">Delivery Versus Discover</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/07/26/dueling-reporting-tools/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>October Conference Season Heats Up</title>
		<link>http://www.dagira.com/2010/07/23/october-conference-season-heats-up/</link>
		<comments>http://www.dagira.com/2010/07/23/october-conference-season-heats-up/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 19:09:05 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[2010 Fall Focus]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=302</guid>
		<description><![CDATA[A few weeks back I got an acceptance notice for an abstract I had submitted to TechEd this year. TechEd is in Las Vegas and I will be speaking about universe design to SAP folks that want to learn more about how to use BusinessObjects tools outside of their ERP/BW environment. It should be fun.
Earlier [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks back I got an acceptance notice for an abstract I had submitted to TechEd this year. TechEd is in Las Vegas and I will be speaking about universe design to SAP folks that want to learn more about how to use BusinessObjects tools outside of their ERP/BW environment. It should be fun.</p>
<p>Earlier today I got notified that I have also been accepted to speak at the ASUG fall conference in Orlando. This is the conference that replace the Insight conferences put on by BusinessObjects these past few years, which were then followed by the two GBN conferences in Dallas. Since GBN has been folded into ASUG now our fall conference is now under their umbrella. If you are a &#8220;classic&#8221; BusinessObjects customer who wants to continue to see new and exciting things that you can do with your tools, this is the conference to attend. There will be some great stuff coming from SAP employees about XI 4 that you won&#8217;t want to miss, as well as (I am sure) a number of &#8220;can&#8217;t miss&#8221; sessions related to XI 3.x (and perhaps even earlier versions) that will help you make the most of your current environment while we all wait for XI 4 to be generally available.</p>
<p>In a few days I will post more details about my abstracts. I look forward to seeing everyone in Las Vegas or Orlando or perhaps even Both. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/07/23/october-conference-season-heats-up/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Want To Remove Drill Indicators? Use A Variable&#8230;</title>
		<link>http://www.dagira.com/2010/07/07/want-to-remove-drill-indicators-use-a-variable/</link>
		<comments>http://www.dagira.com/2010/07/07/want-to-remove-drill-indicators-use-a-variable/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 12:38:54 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[Report Techniques]]></category>
		<category><![CDATA[Variables!]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=298</guid>
		<description><![CDATA[In some cases I have created reports that were in drill mode that were not really drillable. For example, I showed a technique a few years back that would let a report developer swap measures out on a chart using a drill filter. It has been working great for quite a few years now. However, [...]]]></description>
			<content:encoded><![CDATA[<p>In some cases I have created reports that were in drill mode that were not really drillable. For example, I showed a technique a few years back that would let a report developer swap measures out on a chart using a drill filter. It has been working great for quite a few years now. However, as a side effect any dimension on the report blocks that participates in a hierarchy becomes drillable. Sometimes I don&#8217;t want that, and there is an easy fix. <span id="more-298"></span></p>
<h3>Problem Definition</h3>
<p>When building a universe there are three types of result objects that I can build: dimensions, details, and measures. All dimensions are by default drillable, and the order of the objects in the class determines the default hierarchy. (That&#8217;s one of many reasons why trying to order objects in alphabetical order just does not work.) I can eliminate the default hierarchies (and allow my objects to be ordered alphabetically if I really need to) by creating custom hierarchies. That&#8217;s a subject for another blog post.</p>
<p>What I want to talk about today is how to eliminate all drill opportunities on a report, no matter whether I have used default or custom hierarchies. I want to be able to include dimension objects, put my report into drill mode, but not be able to drill on every possible dimension. Here&#8217;s how to do that.</p>
<h3>Demote the Dimension Using a Variable</h3>
<p>When I use a dimension object in my block and that dimension participates in a drill hierarchy and my report is in drill mode I will see the drill indicators. In the Web Intelligence Rich Client they look like this:</p>
<p><img src="/tips/drill_variable/drill_filter.png" width="325" height="100" border="0" alt="Screen shot showing drillable block in Web Intelligence" title="Indicators that a block is drillable in a Web Intelligence document" /></p>
<p>The &#8220;up arrow&#8221; implies that I can drill up. The underline format on the resort names implies that I can drill down. Here is a very simple fix if I don&#8217;t want either of those interface elements to appear. Create a variable that references the dimension, and use the variable instead. For this example, I will create a variable called Resort Name that has the simple formula <code>=[Resort]</code>. Once I do that, and I replace the original Resort object with my new variable, here is what the block looks like when the report is in drill mode:</p>
<p><img src="/tips/drill_variable/no_drill.png" width="325" height="100" border="0" alt="Screen shot showing non-drillable block in Web Intelligence" title="After demotion the column (variable) is no longer drillable" /></p>
<p>Problem solved. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> The reason this works is that variables &#8211; even simple ones like this &#8211; are not drillable. Only dimension objects that come from the universe can be drilled. By converting a dimension to a variable it will no longer show any drill indicators when a report block is in drill mode. Why would I want to do that? As mentioned in the first paragraph of this post, I showed a trick several years ago that allows me to switch measures on a block by changing a selection in a drill filter. In order to do that, the report has to be in drill mode. I will write up that one soon, or you can read about it in Tales of a Universe Ninja, Part II, found on my <a href="http://www.dagira.com/conference-presentations/">conference presentations page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/07/07/want-to-remove-drill-indicators-use-a-variable/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Universe Models For Recursive Data Part III: Alias Versus Flattened</title>
		<link>http://www.dagira.com/2010/07/02/universe-models-for-recursive-data-part-iii-alias-versus-flattened/</link>
		<comments>http://www.dagira.com/2010/07/02/universe-models-for-recursive-data-part-iii-alias-versus-flattened/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 11:45:03 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[2009 GBN - Dallas]]></category>
		<category><![CDATA[2010 Mastering ... Melbourne]]></category>
		<category><![CDATA[Recursive Data]]></category>
		<category><![CDATA[Universe Design]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=284</guid>
		<description><![CDATA[This is the third of several posts that will review my presentation “Universe Models For Recursive Data” which was originally presented at the 2009 GBN conference, then at the North Texas / Oklahoma ASUG chapter meeting, and finally at the Mastering BusinessObjects conference in Melbourne. As with my other presentations there is a PDF file [...]]]></description>
			<content:encoded><![CDATA[<p>This is the third of several posts that will review my presentation “Universe Models For Recursive Data” which was originally presented at the 2009 GBN conference, then at the North Texas / Oklahoma ASUG chapter meeting, and finally at the Mastering BusinessObjects conference in Melbourne. As with my other presentations there is a PDF file that can be downloaded from my <a href="http://www.dagira.com/conference-presentations/">conference presentations page</a>. The first post introduced the concepts of recursive (as opposed to hierarchical) data and provided a couple of examples. The second post reviewed some of the different design challenges that I have seen in working with recursive data models. In this post I will introduce four different possible solutions and present a scorecard for each, showing how well it solves the issues presented in the prior post in this series. Links to both prior posts are presented at the end of this entry. I have also included Oracle SQL scripts that can be used to create and populate the tables used in this post.</p>
<p><em>This post will cover slides 22 through 30 from the presentation and will describe the first two solutions (one with two variations) outlined in the presentation.</em> <span id="more-284"></span></p>
<h3>Solution Options</h3>
<p>The four different solutions that I included in my presentation were: Universe aliases, Flattened structures (column or snowflake), Ancestor Model, and Depth First Tree Traversal. All of them work fine on a clean recursive hierarchy. Each of them partially works for at least some of the other challenges. Some of them present unique challenges (extra disk space requirements or lack of native drilling functionality) that will also be addressed. I am presenting the solutions in increasing order of complexity. This post will cover aliases and flattened structures (both versions). In the next post I plan to cover the ancestor model, and finally I will cover the depth first tree traversal in its own post. </p>
<h3>Universe Aliases</h3>
<p>This solution is the only one that can be completely self-contained within the universe. No DBA or ETL work is required. There are any number of ways to create an alias. I can:</p>
<ul>
<li>Right-click on a table and select Insert Alias</li>
<li>Select an existing table in my structure, then select Insert + Alias from the menu</li>
<li>Open my table browser and insert an existing table. An alias will automatically be created for me.</li>
<li>Select an existing table in my structure and click the &#8220;Insert Alias&#8221; toolbar button</li>
</ul>
<p>&#8230; and there are other ways to get aliases in my universe, especially if I have loops to resolve. The bottom line is that the process is quite simple.</p>
<p>Here&#8217;s what an alias looks like after it has been created and joined to an existing table in my structure.</p>
<p><img src="/tips/recursive_data/part_03_alias_flat/alias_implementation.png" border="0" width="443" height="324" alt="screen shot of alias implementation in a BusinessObjects universe" title="Alias implementation in a BusinessObjects universe" /></p>
<p>The join can be a bit tricky. In this case, the employee row MGR_ID is joined to the manager row EMP_ID in order to make the relationship work. It might help to look at the raw data again from an earlier post.</p>
<p><img src="/tips/recursive_data/part_01_recursion_definition/pm_data.png" width="286" height="250" border="0" alt="raw data used to demonstrate recursion in a BusinessObjects universe" title="Raw data used to demonstrate recursion in a BusinessObjects universe" /></p>
<p>See how the recursive relationship is going to work after establishing this join? Field works for Ferrerez, and Ferrerez works for Noakes. Who does Noakes work for? His MGR_ID column is empty (NULL) implying that he does not have a manager. He owns the company. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Pros of Alias Solution</h3>
<p>The primary advantage of this solution is that it is completely self-contained in the universe. No DBA or ETL work is required. That&#8217;s about it.</p>
<h3>Cons of Alias Solution</h3>
<p>There are several cons to this solution. It does not represent lateral relationships at all. I have to use outer joins in order to preserve those rows with missing keys (Noakes in this example). Both of these are important, but the most substantial drawback to this solution is that the depth is determined by the number of aliases that the universe designer creates. In the image shown above there is only one link: from manager to direct employee. How can I &mdash; in one step &mdash; determine my indirect reports? With only one level of alias, I can only report one level of my hierarchy. How many can I report with this structure?</p>
<p><img src="/tips/recursive_data/part_03_alias_flat/multi_level_aliases.png" width="530" height="138" border="0" alt="screen shot of multi-level alias implementation in a BusinessObjects universe" title="Multi-level alias implementation in a BusinessObjects universe" /></p>
<p>With that structure I now have two outer joins, but I can report on three levels instead of just two.</p>
<p>How many alias levels do I create? Generally when I have seen this solution used (or used it myself) we resort to asking how many levels are required and then creating some number above that. If I need five, I will create seven. If I need seven, I will create ten.</p>
<p>That means, of course, if I have created ten levels and all of a sudden we have twelve I have to update my universe. That&#8217;s not a problem (as long as I keep up with things) but it&#8217;s certainly not desirable.</p>
<h3>Alias Scorecard</h3>
<p>Here&#8217;s the scorecard for the alias solution for each of the four scenarios I outlined earlier.</p>
<p><img src="/tips/recursive_data/scorecard_alias.png" width="600" height="297" border="0" alt="alias scorecard for handling recursive data" title="Alias scorecard for handling recursive data challenges in a BusinessObjects universe" /></p>
<p>Aliases are the easiest solution to implement but they don&#8217;t score well. Let&#8217;s move on to the next solution.</p>
<h3>Flattened Structure &#8211; Single Table Columns</h3>
<p>The next solution involves running either a SQL script or some form of ETL. I need to take the recursive table relationship and flatten it out much like I did with aliases, but this time in the database itself. The net result is that I will take data going down in rows:</p>
<p><img src="/tips/recursive_data/part_03_alias_flat/table_rows.png" width="432" height="146" border="0" alt="data in tables is presented as rows" title="Data in relational tables consists of rows" /></p>
<p>and pivot it into columns in a table.</p>
<p><img src="/tips/recursive_data/part_03_alias_flat/table_columns.png" width="456" height="144" border="0" alt="data for a hierarchy can be pivoted into columns" title="Data in a hierarchy can be pivoted into columns" /></p>
<p>The net result is all of my recursion is done during the script process and I end up with one table that contains everything (or every person in my case) stored at their specific level in the hierarchy. It easily allows me to drill because it creates a very natural hierarchy.</p>
<h3>Pros of Flattened Table Solution</h3>
<p>It handles unbalanced hierarchies much better than aliases because missing lower nodes are simply NULL in the table. That&#8217;s fine. This solution can also handle ragged hierarchies with a proper &#8220;plug node&#8221; strategy. If I have a lower level value (Divisional Director) that reports directly to the president (top level) then level 2 (Vice President) will be empty. I need to fill something in so I can drill properly. More important, that plug node has to tell me what the path is or else I cannot drill up properly. Suppose I had a director named Smith who reported directly to Noakes. The first column in my table would include Noakes. The third column would include Smith. The second column (the missing value due to the raggedness of my data) would contain Smith VP Not Assigned or something like that.</p>
<p>Flattened tables cannot handle lateral hierarchies at all because I can&#8217;t store two values in a single column.</p>
<h3>Cons of Flattened Table Solution</h3>
<p>As already mentioned, this solution cannot handle lateral hierarchies at all. It also requires DBA or ETL work if the number of hierarchy levels changes. My column names should reflect the position (node type) in the hierarchy. That&#8217;s not a problem unless my hierarchy levels change, then I might want to update my structures.</p>
<p>But by far the most critical issue with this solution is the fact that it requires DBA or ETL work if my levels ever change. Much like aliases when I have seen this solution implemented I generally see extra columns at the end of my table just to allow for future expansion.</p>
<h3>Flattened Table Scorecard</h3>
<p>Here is my scorecard for the Flattened Table solution.</p>
<p><img src="/tips/recursive_data/scorecard_flat_columns.png" width="600" height="297" border="0" alt="flattened columns scorecard for handling recursive data" title="Flattened columns scorecard for handling recursive data challenges in a BusinessObjects universe" /></p>
<h3>Flattened Structure &#8211; Snowflake Tables</h3>
<p>One thing that I noticed about the data for the flattened structure is that I repeat a lot of values. For example, Noakes is the &#8220;level 1 mgr&#8221; for every person in the company. It might seem to be more efficient to use a structure like this:</p>
<p><img src="/tips/recursive_data/part_03_alias_flat/snowflake_structure.png" width="529" height="67" border="0" alt="screen shot of snowflake structure in a BusinessObjects universe" title="Snowflake structure for handling recursive data in a BusinessObjects universe" /></p>
<p>This would reduce my overall storage requirements because I would end up with a single row for the highest level table.</p>
<p>However, it also reintroduces the need for outer joins, which the initial flattened structure avoided. </p>
<h3>Pros of Flattened Snowflake Solution</h3>
<p>Because the tables get smaller as I get further up the tree (ultimately to a single-row table in my simple example) my overall storage requirement should be smaller as well. If I only need the top one or two levels, my queries should be very efficient. Finally, I think it would be easier to maintain as well. If a new level appears, I add a new table to my chain with the proper restrictions on the ETL for proper table population. </p>
<h3>Cons of Flattened Snowflake Solution</h3>
<p>Each of the solutions defined so far suffers from some form of this issue: I have to define a table (or column) for every possible level of my hierarchy. If I do not know what the total number of levels will be, I can try to anticipate and create extra tables to support future expansion. But that is not the best solution. Because these tables are maintained in the database, I have to talk to my DBA or ETL team when changes are required. Because the tables are joined I have to consider whether to use outer join to preserve depth on unbalanced hierarchies. And finally, the &#8220;plug node&#8221; strategy I outlined earlier becomes a &#8220;plug row&#8221; strategy in this case, and that&#8217;s substantially more complicated.</p>
<h3>Flattened Snowflake Scorecard</h3>
<p>Here is the scorecard for the flattened snowflake solution. In my opinion, it&#8217;s a slightly worse solution than the flattened table solution simply because of the join issue and the plug row concern.</p>
<p><img src="/tips/recursive_data/scorecard_flat_snowflake.png" width="600" height="297" border="0" alt="snowflake scorecard for handling recursive data" title="Snowflake scorecard for handling recursive data challenges in a BusinessObjects universe" /></p>
<h3>Next Time</h3>
<p>The solutions covered in this post are the least complex and therefore offer the least flexibility. They are easy to set up; in the case of aliases the entire solution can be built within the universe designer application. All of the other solutions require some sort of database scripting. In the next post I will talk about the ancestor model and how we used it at a manufacturing client. It has some definite advantages, and it handles just about all of the different challenges I have outlined. I don&#8217;t have to worry about plug nodes, and it handles both ragged and unbalanced hierarchies quite well. However it has an impact on disk usage and it can&#8217;t be drilled using the native functionality provided by BusinessObjects. Do the pros outweigh the cons? Come back soon and see for yourself. <img src='http://www.dagira.com/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p><strong>Related Links</strong></p>
<ul>
<li><a href="http://www.dagira.com/2010/06/16/universe-models-for-recursive-data-part-i-introduction/">Universe Models for Recursive Data Part I: Introduction</a></li>
<li><a href="http://www.dagira.com/2010/06/25/universe-models-for-recursive-data-part-ii-design-challenges/">Universe Models for Recursive Data Part II: Design Challenges</a></li>
</ul>
<p><strong>Supplemental Material</strong><br />
Scripts to create and populate the basic HR table used for this presentation.</p>
<ul>
<li>Create table</p>
<pre>create table employee
(emp_id number(5) not null
,emp_lastname varchar(20)
,emp_firstname varchar(15)
,emp_dob date
,emp_address varchar(40)
,emp_area_code varchar(7)
,emp_town varchar(15)
,emp_phone varchar(18)
,showroom_id number(4)
,emp_start date
,emp_mgr_id number(5)
,emp_sex varchar(1)
,job_id number(4));

alter table employee add constraint emp_pk primary key (emp_id);
create index emp_dept on employee(dept_id);
create index emp_showroom on employee(showroom_id);
create index emp_mgr on employee(emp_mgr_id);
</pre>
</li>
<li>Populate table
<pre>
insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (101, 'Noakes', 'Nicholas', '12-MAR-48', '2356, Melrose Street', '30190', 'San Jose', '12-00-00-01', '01-JAN-91', NULL, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (102, 'Ferrerez', 'Ferdinand', '10-FEB-64', '25 Arcadia Avenue', '75897', 'Los Angeles', '22-55-56-32', '30-MAR-96', 101, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (103, 'Field', 'Felicity', '15-DEC-60', '12 Brasilia Street', '12014', 'Santa Barabara', '14-46-54-22', '26-MAR-95', 102, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (104, 'Fraser', 'Frank', '13-MAR-67', '45 Seaside Avenue', '75016', 'Los Angeles', '22-55-18-33', '13-DEC-91', 101, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (105, 'Snow', 'Sara', '03-OCT-65', 'Square Woodstock', '18000', 'San Jose', '14-34-34-30', '01-MAY-93', 101, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (106, 'Speed', 'Sonya', '03-DEC-70', '5, The Vale', '22000', 'San Jose', '14-32-39-43', '04-JUL-96', 105, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (107, 'Spencer', 'Steve', '01-NOV-64', 'Square Osaka', '33010', 'Los Angeles', '22-24-25-89', '16-APR-91', 105, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (108, 'Helen', 'Harrison', '01-AUG-66', 'Via Firenze', '38200', 'Los Angeles', '22-34-31-11', '13-MAY-94', 101, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (109, 'Thomas', 'Tom', '01-DEC-68', '11 Over Way', '24000', 'San Jose', '22-45-67-45', '20-DEC-95', 101, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (110, 'Thatcher', 'Terry', '03-OCT-50', 'Stars Parkway', '21000', 'San Jose', '12-11-11-09', '06-DEC-92', 109, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (111, 'Davis', 'Diana', '12-AUG-64', 'Rue Opera Sauvage', '92100', 'Los Angeles', '14-54-11-10', '22-SEP-92', 101, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (201, 'Pickworth', 'Paul', '12-FEB-51', '23 Las palmas road', '00316', 'New York', '12-24-26-44', '12-JAN-93', 101, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (202, 'Forest', 'Florence', '10-OCT-32', 'Rue des Lombards', '75100', 'New York', '22-54-11-10', '23-DEC-94', 201, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (203, 'Brown', 'Bella', '12-APR-59', 'Hollywood Blv', '36020', 'New York', '22-36-25-50', '03-FEB-92', 202, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (204, 'Porter', 'Pete', '15-NOV-57', 'Avd Torre De Embarra', '34100', 'New York', '14-44-11-66', '13-APR-92', 201, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (205, 'Irving', 'Ira', '12-FEB-64', '44 Beach avenue', '13000', 'New York', '12-56-55-20', '18-JUN-95', 204, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (206, 'Bailey', 'Ben', '12-JUN-57', '4 Palisades Drive', '75090', 'Long Island', '12-33-51-29', '01-DEC-90', 204, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (207, 'Duckworth', 'Dave', '09-SEP-66', 'Rue du grand temps', '75018', 'New York', '12-85-01-61', '04-NOV-93', 201, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (208, 'Ince', 'Ian', '10-AUG-53', 'Sunset Blvd', '31061', 'New York', '22-52-22-00', '04-DEC-95', 207, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (209, 'Hilary', 'Hibbs', '01-FEB-60', 'Sand Hill Road', '92800', 'New York', '12-54-11-10', '08-JUN-95', 202, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (301, 'Dagmar', 'Davinda', '12-APR-58', '12, The Crescent', 'SL1 1HG', 'Slough', '01628-764234', '24-JUN-95', 101, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (302, 'Presley', 'Percy', '30-OCT-62', '1 Jubilee Close', 'SL5 23F', 'Maidenhead', '01628-834582', '15-JUL-95', 301, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (303, 'Perry', 'Philippa', '24-FEB-71', '23 Rice Hill', 'SL3 12S', 'Maidenhead', '01628-567231', '28-SEP-96', 302, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (304, 'Hubert', 'Henri', '13-DEC-69', '5 Grand Lane', 'SL3 12S', 'Maidenhead', '01628-243535', '17-APR-96', 302, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (305, 'Adamson', 'Anita', '12-OCT-69', '24 Loose Lane', 'SL4 23D', 'Cookham', '01628-782364', '15-FEB-96', 301, 'F');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (306, 'Beaver', 'Bertie', '12-MAR-72', '223 Grange Hill', 'SL2 67E', 'Windsor', '01628-187632', '13-JAN-96', 305, 'M');

insert into employee (emp_id, emp_lastname, emp_firstname, emp_dob, emp_address, emp_area_code, emp_town, emp_phone, emp_start, emp_mgr_id, emp_sex)
values (307, 'Motson', 'Mervin', '22-DEC-74', '67 Blows Down', 'SL5 45G', 'Cookham', '01628-198371', '17-JUN-96', 305, 'M');
</pre>
</li>
</ul>
<p>Scripts to create and populate the flattened version of the HR table, Oracle syntax</p>
<ul>
<li>Create flattened table</p>
<pre>create table emp_flat
(emp_lvl_1 varchar2(20)
,emp_lvl_2 varchar2(20)
,emp_lvl_3 varchar2(20)
,emp_lvl_4 varchar2(20)
);</pre>
</li>
<li>Populate flattened table.<br />
Only four levels are supported.<br />
Starting point (Noakes) is hard-coded.</p>
<pre>insert into emp_flag (emp_lvl_1, emp_lvl_2, emp_lvl_3, emp_lvl_4)
select a.emp_lastname
,      b.emp_lastname
,      c.emp_lastname
,      d.emp_lastname
from employee a
,    employee b
,    employee c
,    employee d
where a.emp_id = b.emp_mgr_id(+)
and b.emp_id = c.emp_mgr_id(+)
and c.emp_id = d.emp_mgr_id(+)
and a.emp_id = 101;</pre>
</li>
<li>Create Snowflake Tables
<pre>create table emp_level_01
(emp_id number(5)
,emp_lvl_1 varchar2(20));

create table emp_level_02
(emp_id number(5)
,emp_mgr_id number(5)
,emp_lvl_2 varchar2(20));

create table emp_level_03
(emp_id number(5)
,emp_mgr_id number(5)
,emp_lvl_3 varchar2(20));

create table emp_level_04
(emp_id number(5)
,emp_mgr_id number(5)
,emp_lvl_4 varchar2(20));</pre>
</li>
<li>Populate snowflake tables<br />
Only four levels are built, each starting from the prior table.<br />
Starting point (Noakes) is hard-coded.</p>
<pre>insert into emp_level_01 (emp_id, emp_lvl_1)
select emp_id, emp_lastname
from employee
where emp_id = 101;

insert into emp_level_02 (emp_id, emp_mgr_id, emp_lvl_2)
select e.emp_id, e.emp_mgr_id, e.emp_lastname
from employee e, emp_level_01 e1
where e.emp_mgr_id = e1.emp_id;

insert into emp_level_03 (emp_id, emp_mgr_id, emp_lvl_3)
select e.emp_id, e.emp_mgr_id, e.emp_lastname
from employee e, emp_level_02 e2
where e.emp_mgr_id = e2.emp_id;

insert into emp_level_04 (emp_id, emp_mgr_id, emp_lvl_4)
select e.emp_id, e.emp_mgr_id, e.emp_lastname
from employee e, emp_level_03 e3
where e.emp_mgr_id = e3.emp_id;
</pre>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/07/02/universe-models-for-recursive-data-part-iii-alias-versus-flattened/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Universe Models For Recursive Data Part II: Design Challenges</title>
		<link>http://www.dagira.com/2010/06/25/universe-models-for-recursive-data-part-ii-design-challenges/</link>
		<comments>http://www.dagira.com/2010/06/25/universe-models-for-recursive-data-part-ii-design-challenges/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 00:38:35 +0000</pubDate>
		<dc:creator>Dave Rathbun</dc:creator>
				<category><![CDATA[2009 GBN - Dallas]]></category>
		<category><![CDATA[2010 Mastering ... Melbourne]]></category>
		<category><![CDATA[Recursive Data]]></category>
		<category><![CDATA[Universe Design]]></category>

		<guid isPermaLink="false">http://www.dagira.com/?p=283</guid>
		<description><![CDATA[This is the second of several posts that will review my presentation “Universe Models For Recursive Data” which was originally presented at the 2009 GBN conference, then at the North Texas / Oklahoma ASUG chapter meeting, and finally at the Mastering BusinessObjects conference in Melbourne. As with my other presentations there is a PDF file [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second of several posts that will review my presentation “Universe Models For Recursive Data” which was originally presented at the 2009 GBN conference, then at the North Texas / Oklahoma ASUG chapter meeting, and finally at the Mastering BusinessObjects conference in Melbourne. As with my other presentations there is a PDF file that can be downloaded from my <a href="http://www.dagira.com/conference-presentations/">conference presentations page</a>. The first post introduced the concepts of recursive (as opposed to hierarchical) data and provided a couple of examples. In this post I will review some of the different design challenges that I have seen in working with recursive data. </p>
<p>I decided to identify and cover four different examples of recursive data configurations. These included Clean, Unbalanced, Ragged, and Lateral. As I mentioned in the first post, I am going to use some basic human resources (HR) data for my examples. For this post, in order to show samples of each of the four challenges, I am going to represent my recursive data using a tree. The branches of the tree show the relationships between people. The nodes of the tree contain the information about each person. The data might include their name, hire date, and position (title) within the company. In order to properly interact with my recursive data I have to be able to work with both types of information: relationships and node data as well. If you are not sure what I mean, please continue reading, this will make more sense later on.</p>
<p><em>This post will cover slides 14 through 21 from the presentation and will describe each of the different recursive challenges that I identified.</em> <span id="more-283"></span></p>
<h3>Clean Hierarchy</h3>
<p>In my first example everything is very clean. Each branch of the tree has the same depth. Each branch follows the same path. There are no real challenges encountered in this hierarchy, pictured below.</p>
<p><img src="/tips/recursive_data/part_02_design_challenges/tree_clean.png" width="537" height="320" border="0" alt="image of clean recursive hierarchy" title="Clean recursive hierarchy" /></p>
<p>Imagine that the top of the tree is the company president. The second level (the &#8220;B&#8221; nodes) represent vice presidents, and the third level (&#8221;C&#8221; nodes) represents divisional directors. When a hierarchy definition is very rigorous this is the type of tree I expect. For a very simple example let me suggest a product hierarchy instead of an HR chart for the moment. A product hierarchy for a food company might include a Brand Owner, the Brand, the Size, and finally the Flavor. The brand owner could be Beverages-R-Us, the brand could be Super Sports Drinks, the size is two liter bottle, and finally the flavor is Orange. Every product in the system is guaranteed to have all four of these attributes assigned, and they will all be in that exact order. </p>
<p>On the other hand, a human resources hierarchy is rarely as clean. Let me move on to some more interesting examples.</p>
<h3>Unbalanced Hierarchy</h3>
<p>An unbalanced hierarchy is one where the nodes are at inconsistent depths. Please review the tree shown below. </p>
<p><img src="/tips/recursive_data/part_02_design_challenges/tree_unbalanced.png" width="455" height="320" border="0" alt="image of an unbalanced recursive hierarchy" title="Unbalanced recursive hierarchy with nodes at inconsistent depths" /></p>
<p>In the example shown above, there is one node (B1 in this case) that does not have any children while the rest of the nodes at that level (B2) do. If the A node is the company president, and the B nodes are vice presidents, it is entirely possible to have a position (perhaps &#8220;VP of Special Projects&#8221;) that does not have any additional people that report up to him or her. In that case the tree stops at the VP level and does not go down to the Divisional Director position.</p>
<p>Why is this a challenge? As will be seen later, one of the possible solutions to a recursive data scenario is to pivot the data (flatten) it into different columns. What happens to the missing nodes in this case?</p>
<h3>Ragged Hierarchy</h3>
<p>In the last example I suggested that there could be a VP of the company that does not have any direct employees. In the case of a Ragged hierarchy it&#8217;s slightly different. In this case I might see a Divisional Director who is reporting straight up to the company president without going through a VP.</p>
<p><img src="/tips/recursive_data/part_02_design_challenges/tree_ragged.png" width="455" height="320" border="0" alt="image of a ragged recursive hierarchy" title="Ragged recursive hierarchy with nodes of inconsistent paths" /></p>
<p>Note that in the image above I am showing both an unbalanced node (B1) and a ragged node (C2). Let me focus on C2 for a moment. As I already mentioned, there is a relationship from that director position straight up to the president. It does not go through a vice president position. Why is this a challenge? Remember that earlier I mentioned there are two parts that I need to account for: the relationship and the position or node type. In this case the relationship only goes one step, but descends two levels (from president to director). I need to be able to represent both parts properly in whatever data model I come up with.</p>
<h3>Lateral Hierarchy</h3>
<p>If you have spent any time reviewing company organization charts you may have seen this type of relationship before: I am calling it a lateral (sideways) relationship.</p>
<p><img src="/tips/recursive_data/part_02_design_challenges/tree_lateral.png" width="537" height="320" border="0" alt="image of a recursive hierarchy with lateral relationships" title="Recursive hierarchy with lateral relationships" /></p>
<p>It&#8217;s not uncommon to see a lateral relationship from one director to another director (C2 reporting to C1 in this example). This is one of the biggest challenges to most of the design ideas I will be sharing in my next post, because there are two things (people) occupying the same space (node type) on the tree).</p>
<h3>Merge / Diverge</h3>
<p>As I mentioned toward the beginning of the post that some scenarios are inherently cleaner than others because the relationships all have to exist. Unfortunately, it is quite likely to see a combination of issues. I have even seen challenges where a hierarchy does a merge / diverge relationship such as this:</p>
<p><img src="/tips/recursive_data/part_02_design_challenges/tree_merge_diverge.png" width="455" height="443" border="0" alt="image of a recursive hierarchy with merge diverge relationships" title="Recursive hierarchy with relationships that merge and then diverge" /></p>
<p>SAP and other ERP vendors generally allow this sort of hierarchy to be built in order to provide the maximum flexibility to the client company. I have never tried to implement this in BusinessObjects because it simply does not work. There is no clear drill path. Suppose I drill from node B2 to C3, and then from C3 to D2. Now when I drill up, which path do I take? I can drill from D2 up to C3, and then from C3 I can drill up to either node A1 or B2. It&#8217;s ambiguous, and therefore our project team decided that we would not attempt to handle this at all. We instituted a business rule (an exception) that would kick out any hierarchy that included this sort of path.</p>
<p><em>This particular example was dropped from the presentation in the interest of time but I wanted to mention it here.</em></p>
<h3>Combinations</h3>
<p>Even without the merge / diverge issue, there are plenty of still challenges. For our project, a typical tree was both ragged and unbalanced. That meant that the solutions we discussed had to be able to handle both. We also had a number of lateral relationships that we needed to address. Our users wanted to be able to enter the tree by node type and drill by level. They wanted to see the entire tree presented as part of a prompt. And they wanted to be able to multi-select from those prompts&#8230; for any node at any level.</p>
<h3>Next Time</h3>
<p>Which solutions work the best? Do any solutions work for all of these different scenarios? My next post in this series will review each of the four solutions I outlined in my presentation and present a scorecard for each.</p>
<p><strong>Related Links</strong></p>
<ul>
<li><a href="http://www.dagira.com/2010/06/16/universe-models-for-recursive-data-part-i-introduction/">Universe Models for Recursive Data Part I: Introduction</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dagira.com/2010/06/25/universe-models-for-recursive-data-part-ii-design-challenges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
