﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Data Warehousing / Strategies and Ideas  / Does it make sense store measures in a dimension table? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 07:52:02 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>I think in most ways you've answered your own question.  Another name for "facts" is "measures" (this is the name that SSAS uses.)Personally, I would pull them out and create summary fact tables ("aggregations") that present the same data.</description><pubDate>Wed, 21 Nov 2012 11:44:43 GMT</pubDate><dc:creator>Bruce W Cassidy</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>Paul,In a case like this I would look towards chaining fact tables.  I don't know the proper term, I'm not a warehouse expert, I just build 'em.What it would look like is something like this:(Existing Fact Tables) -&amp;gt; CustomerData with only attributes (Dimension) -&amp;gt; FactTable storing the calculated measures for date of measure taken.You'd have to be careful about including only the most recent fact for each customer when treating it like a continuation of the dimension, but it will both allow you to monitor changes to the measures being delivered as well as separate out the concern of modifying attributes on a dimension when indeed your measures are mobile.From there, you can have a discussion about 'better ways to achieve the same result' with your developers.</description><pubDate>Fri, 02 Nov 2012 16:32:35 GMT</pubDate><dc:creator>Evil Kraig F</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>"But something like "amount of purchases last 12 Month" &amp;lt; 6 might be useful, and categories might mess this up "A good point but it still all fits. If the amount of people that bought 3,4,5 items is of reporting importance, then call just these categories cat3, cat4, cat5, etc.. As the number of purchases increase you can increase the span of each category in a mathematical fashion.</description><pubDate>Fri, 02 Nov 2012 12:08:05 GMT</pubDate><dc:creator>mmartin1</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>Given the use case ("amount of purchases last 12 Month"), I'd consider unlikely a user query like "amount of purchases last 12 Month" = 37, so the suggestion of categories seems adequate. But something like "amount of purchases last 12 Month" &amp;lt; 6 might be useful, and categories might mess this up :-DBut it's always the matter of understanding the need for this information and how it'll be used.</description><pubDate>Fri, 02 Nov 2012 05:53:41 GMT</pubDate><dc:creator>PMwar</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>One reason I think this is not a good practice is that the cardinality can be quite high. This can be valid to do if business regards this as important. A better solution is to build categories into the dimension,  So those customers that purchased between 0 and n are type 1, etc...etc...As long as you dont forsee these categories changing. You can even base an attribute on if a customer is one of your top ten purchasers. I dont see an issue with reprocessing the dimension often as needed.</description><pubDate>Thu, 01 Nov 2012 16:30:52 GMT</pubDate><dc:creator>mmartin1</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>[quote]I think that storing the value " amount of purchases last 12 Month" in the dimension table is valid.[/quote]I agree.  If the information is there, it must be valuable to your business users.  You should make that information available in the dimension.</description><pubDate>Thu, 01 Nov 2012 13:52:18 GMT</pubDate><dc:creator>RonKyle</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>[quote][b]prakashsa2709 (11/1/2012)[/b][hr]Hi Paul,I think that storing the value " amount of purchases last 12 Month" in the dimension table is valid.Let me explain one scenario where it would be usefull.Suppose If the user has to answer the business question the top ten customers in terms of purchases for the last twelve months then in such a scenario instead of calculating those figures from the fact it would be easier to query if they are stored in the dimension table.Hope it gives a valid reason for having it in the dim table[/quote]So you would recalculate your entire customer dimension each month?What if you want history on that? Duplcate your entire customer dimension each month?</description><pubDate>Thu, 01 Nov 2012 13:51:46 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>Hi Paul,I think that storing the value " amount of purchases last 12 Month" in the dimension table is valid.Let me explain one scenario where it would be usefull.Suppose If the user has to answer the business question the top ten customers in terms of purchases for the last twelve months then in such a scenario instead of calculating those figures from the fact it would be easier to query if they are stored in the dimension table.Hope it gives a valid reason for having it in the dim table</description><pubDate>Thu, 01 Nov 2012 01:23:21 GMT</pubDate><dc:creator>prakashsa2709</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>Thanks for your quick answer. That's exactly what I thought. I think aCRM guys are a little bit lazy and don't want to make joins. Anyway, there are a couple of values that we received from an external provider inside the Customer table that I cannot change. What I do is to create new tables and store aggregated measures in a new fact table and create also a new Customer table with the appropriate fields. Now I'll try the SCD Transfomation (SSIS 2008) that lets me treat some fields as type 1 and others as type 2.Kind Regards,</description><pubDate>Wed, 31 Oct 2012 08:41:19 GMT</pubDate><dc:creator>Paul Hernández</dc:creator></item><item><title>RE: Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>I wouldn't store those in a dimension table. These are measures (albeit calculated), not attributes. These measures are facts that you should be able to calculate from the fact table (at the top of my head, the two examples you gave are very easy to calculate with TSQL).Furthermore, these measures are very prone to change, so that would mean that you would have to update your customer dimension too often.</description><pubDate>Wed, 31 Oct 2012 08:14:18 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>Does it make sense store measures in a dimension table?</title><link>http://www.sqlservercentral.com/Forums/Topic1379230-363-1.aspx</link><description>Hi everybody:Right now I´m working in a BI solution and I received a set of tables with a multidimensional structure. I have a Fact table with transaction from customers and several dimensional tables. One of them is the KUNDE or customer table, in which the typical customer information is stored, like customer key, a key to another table (contact details), customer since date, etc. I also found numeric values in this table like "amount of purchases last 12 Month" or "Total shopping days" inside this table. That makes me wonder if it makes sense or not to store this measures inside the table, moreover, I'm building another table to store the customer data as a type II SCD and I´m not able to persuade the analyst to not include measures in this table. What is your opinion about that? Any comment would be appreciated.Kind Regards,</description><pubDate>Wed, 31 Oct 2012 04:29:14 GMT</pubDate><dc:creator>Paul Hernández</dc:creator></item></channel></rss>