<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dimensional modeling with Ranged Dimensions</title><link>http://sqlblog.com/blogs/alberto_ferrari/archive/2007/09/06/dimensional-modeling-with-ranged-dimensions.aspx</link><description>A ranged dimension is a dimension that is used to have a discrete view of a continuous measure. A good example of this is the analysis of amount sold per order. In AdventureWorks we have, for each line of an order, the amount and quantity sold. We would</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Patterns of dimensional modeling design</title><link>http://sqlblog.com/blogs/alberto_ferrari/archive/2007/09/06/dimensional-modeling-with-ranged-dimensions.aspx#2463</link><pubDate>Thu, 06 Sep 2007 08:48:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:2463</guid><dc:creator>SQLBI - Marco Russo</dc:creator><description>&lt;p&gt;Alberto posted one of the patterns we use designing a dimensional model (this one is about the discretization&lt;/p&gt;</description></item><item><title>re: Dimensional modeling with Ranged Dimensions</title><link>http://sqlblog.com/blogs/alberto_ferrari/archive/2007/09/06/dimensional-modeling-with-ranged-dimensions.aspx#2512</link><pubDate>Mon, 10 Sep 2007 17:39:37 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:2512</guid><dc:creator>Sqlgoof</dc:creator><description>&lt;p&gt;This is a nice approach when customers are unsure of their &amp;quot;ranges&amp;quot;, but i find normally they have very clear ideas on what they are. Still, good for exploratory BI. &lt;/p&gt;</description></item><item><title>re: Dimensional modeling with Ranged Dimensions</title><link>http://sqlblog.com/blogs/alberto_ferrari/archive/2007/09/06/dimensional-modeling-with-ranged-dimensions.aspx#5072</link><pubDate>Thu, 14 Feb 2008 08:40:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:5072</guid><dc:creator>ponzie</dc:creator><description>&lt;p&gt;We use something very similar.&lt;/p&gt;
&lt;p&gt;What we additionally do is have multiple ranges defined in the ranged dimension but all keyed with the same surrogate key.&lt;/p&gt;
&lt;p&gt;Thus we might have the value 9 in the fact keyed to a row with our first range attribute set to '&amp;#163;0 to &amp;#163;10' and to a second range attribute to '&amp;#163;5 to &amp;#163;10'.&lt;/p&gt;
&lt;p&gt;Its early days yet, but we think this will allow us to use the ranged dimension in several roles aand support several ranges. &amp;nbsp;If we decide we want different ranges defined, we add an extra column to the ranges dimension.&lt;/p&gt;
&lt;p&gt;The main limitation is getting the granularity reasonable at the start. &amp;nbsp;Changing the grain would require rebuilding the facts to pick up the revised surrogate keys.&lt;/p&gt;
&lt;p&gt;We also have applied the same technique to durations.&lt;/p&gt;</description></item></channel></rss>