<?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>Rittman Mead Consulting &#187; Filters</title>
	<atom:link href="http://www.rittmanmead.com/tag/filters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rittmanmead.com</link>
	<description>Delivered Intelligence</description>
	<lastBuildDate>Fri, 30 Jul 2010 12:58:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OBIEE and The Use of Sub Query</title>
		<link>http://www.rittmanmead.com/2009/06/03/obiee-and-the-use-of-sub-query/</link>
		<comments>http://www.rittmanmead.com/2009/06/03/obiee-and-the-use-of-sub-query/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 08:14:51 +0000</pubDate>
		<dc:creator>Adrian Ward</dc:creator>
				<category><![CDATA[Oracle BI Suite EE]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Filters]]></category>
		<category><![CDATA[obiee]]></category>

		<guid isPermaLink="false">http://www.rittmanmead.com/2009/06/03/obiee-and-the-use-of-sub-query/</guid>
		<description><![CDATA[As a purist I would like every reporting database to have a perfect star, with the Fact tables containing all the relevant dimensions for reporting.  I would also like to see stars that contain everything you need for your report.
However, as a realist I am seeing many implementations of OBIEE / Siebel Analytics that have [...]]]></description>
			<content:encoded><![CDATA[<p>As a purist I would like every reporting database to have a perfect star, with the Fact tables containing all the relevant dimensions for reporting.  I would also like to see stars that contain everything you need for your report.</p>
<p>However, as a realist I am seeing many implementations of OBIEE / Siebel Analytics that have not set up as I want.  Short of re-writing the entire system from ETL to Reports I often have to find ways around &#8216;issues&#8217;.</p>
<p>There are three main issues that keep occurring:<br />
1. Fields not available in the Subject Area<br />
2. Dimension Attributes causing reporting problems.<br />
3. Dimensional Facts causing reporting problems.</p>
<p>The first one is simple to explain, you need to report on Customers who have Call Activity, but you want to see this in your report from the Finance Star.</p>
<p>The second may need explaining, unless you are faced with this issue right now!</p>
<blockquote><p>You have a list of Doctors, with Facts relating to call Activity.  Now you have a variable set of attributes which may be applicable to some of the doctors, such as, &#8220;Has Grey Hair &#8211; Yes&#8221;, &#8220;Private Patients &#8211; 6&#8243;, etc.  These can be listed in your application as &#8216;Specialities&#8217;, or &#8216;Categories&#8217; or simply &#8216;Attributes&#8217;.</p></blockquote>
<blockquote><p>Now, if you want to report Doctor based numeric facts, but include some of the attributes in the filter, there is a likelyhood that the facts can be double or triple counted.</p></blockquote>
<p>The third problem can appear in many ways, but my main example is:</p>
<blockquote><p>&#8220;Give me a list of Hospitals where the Doctors there have prescribed Product A more than 6 times.&#8221;</p></blockquote>
<p>Another example is:</p>
<blockquote><p>&#8220;Give me all the customers that buy high value products&#8221;.</p></blockquote>
<h3>The solution to all of these issue could be the use of a sub query.</h3>
<p>I&#8217;ll build a very simple example to show you how a sub query works, using the <em>Sample Sales</em> Subject Area.</p>
<p>Example is:</p>
<p>Give me a list of all Customers that have ordered High Value Products in the last three months.</p>
<p>This is made up of three queries.</p>
<blockquote><p>A.  list of Customers<br />
B.  list of High Value Products<br />
C.  list of recent sales</p></blockquote>
<p>I will start with B &#8211; List of High Value Products</p>
<blockquote><p><img src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_1.jpg" /></p></blockquote>
<p>This is a very simple design, and I have used a filter on the value so we can change the Value threshold.</p>
<p><img src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_2.jpg" alt="High Value Product report Definition" width="500" /></p>
<p>Now for C. a list of sales.</p>
<blockquote><p> <img src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_3.jpg" alt="Sales of High Value Product" /></p></blockquote>
<p>Another simple list report, but this time I have added a filter, which is an advanced filter based upon another request</p>
<blockquote><p><img src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_4.jpg" alt="Advanced Filter" width="500" /></p></blockquote>
<blockquote><p> <img src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_5.jpg" alt="Advanced Filter - Sub query" width="500" /></p></blockquote>
<p>For the final report I have just added a filter to base the customers on those from report C.</p>
<p><img src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_6a.jpg" alt="Filter Report C" width="500" /></p>
<p>and the final result on theh dashboard with a prompt is:</p>
<p><img width="500" src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_7.jpg" alt="Sub Query Result Report" /></p>
<p>and you can see changes to the prompts too</p>
<p><img width="500" src="http://www.rittmanmead.com/wp2/wp-content/uploads/2009/06/rm2_8.jpg" alt="Report params changed" /></p>
<p>Word of Warning &#8211; There are limitations to the number of elements in an IN CLAUSE.  Check what it is for your environment.</p>
<p>Note to the wise.<br />
I have seen some recommendations that you should denormalise the attributes in the warehouse, DO NOT DO THIS.  Any new attribute will take months to implement in the reporting.  If your consultancy recommends this they are lining work for years to come! Come to us and we&#8217;ll show you how to make your reports without big Db changes.</p>
<blockquote><p><font color="#0000ff">As a footnote to this.  In the recent BI Forum we were shown a reporting system based upon a fully relational database at the table level.  These tables were then used in Materialised queries to create &#8217;stars&#8217;.  These materialised queries can then be used in the physical layer in the rpd.  I actually think this approach looks good from a flexibility approach (you can add into you star very quickly).  I suspect that for most companies using Oracle that approach would be suitable, but for others, particularly where the fact tables grow to more than 100 million records it may not sustainable.  I look forward to an update at next years Forum.</font></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.rittmanmead.com/2009/06/03/obiee-and-the-use-of-sub-query/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
