Den Ben’s Blog

December 20, 2007

Why you should base your Facts Data Sources on Views

In SQL Server Analysis Services 2005 you can use different methods to map your source data into your Analysis Services Database’s Data Source Views. You can map your data source model one-on-one onto your physical tables in your (dimensional) database or you can map it on database views. Needless to say, the latter provides an extra level of abstraction. Which is almost always a good thing, imo. You could also use named queries to map your data (the queries reside in your SSAS project) but then you’d lose the abstraction layer again: If the underlying data model changes you’d have to change the SSAS database too while if you base your data sources on views you’d just have to alter those instead.

Now, if you want to enable partition write-backs (which I think is a very interesting feature for forecasting and what-if analysis scenarios) you can only do that on measure groups containing measures of which the AggregateFunction is set to SUM (additive measures). So this can be a problem when your fact table contains both additive and semi-additive measures. As I said, you won’t be able to use write-backs on the semi-additive ones but if you’ve mapped your facts one-on-one you cannot enable them on the additive ones either since they will be in the same measure group (nope, you can’t create multiple measure groups on the same fact table in your data source views).  Using database views or named queries you can easily get around this restriction.

But the views still provide a greater level of abstraction than the named queries…

December 19, 2007

Setting a one hour a day limit

Filed under: Propaganda — Tags: , — benpittoors @ 21:01

If you surf the web for a few minutes; type in a search query into your favorite search engine; then you’ll probably notice that millions of people enjoy their daily blog posting activities.  And I must admit, the thought of showing of my knowledge to the world through the same means – a blog – has crossed my mind more than once.  Well, the inevitable has happened: This is my first blog post!

The title of my first post indicates that I’m setting a limit however: I absolutely will not spend more than one hour a day on this blog. Most of the days I even won’t put any time in at all.

As a Software Architect I have to deal with a whole bunch of technologies every day.  So that’s what I’ll be posting about the most I guess.  So… what can you expect here (assuming you’d expect something that is)?

  • Business Intelligence related stuff.  This can go from dimensional modeling topics to SQL Server Analysis Services 2005 (2008?) cube design.  I’m still a novice in that field but I intend to become a true data warehouse guru ;)
  • C# and the .Net framework… and even Java if I happen to be in that camp at the moment of posting.
  • Agile development methodologies (Genesis)
  • I love my MacBook running Leopard so… who knows :)

And that’s not an all inclusive list!


Blog at WordPress.com.