Posted on 12 February 2010
Staging area is place where we hold temporary tables on data warehouse server. We need staging area to hold the data , before loading the data into warehouse. For example if we collect data from 3 different sources we can store in staging area data from 2 databases and wait for data from third source. Continue Reading
Posted on 24 January 2010
Ako imate fact tabelu sa velikim brojem slogova (reda 100 miliona) moze vam se desiti da vam se sql server 2008 zaglupi prilikom procesiranja kocke. Distinct count je veoma zahtevna operacija koja postavlja select upit nad fact tabelom i koja na kraju radi order by. Kada pravimo distinct count meru najbolje je da nju stavimo [...] Continue Reading
Posted on 21 January 2010
Sometimes we need to count distinct number of bk values from dimension table in some period in fact table. One of possible solutions is to put that bk value from dimension table directly to fact table as a new measure in new column. Then make new distinct count measure from it. Continue Reading
Posted on 21 January 2010
Verovatno ste do sada imali slucaj kada ste trebali da prebrojite broj razlicitih proizvoda u fact tabeli za odredjeni vremenski period. Ovde se javlja problem kod dimenzija scd2 tipa. Uzmimo dimenziju DimProizvod kao primer. Ona ima svoj key i bk. Key kolona spusta kljuc na fact tabelu. Nama treba broj bk-ova (distinct count) proizvoda iz [...] Continue Reading
Posted on 24 December 2009
In this post I will write about my experience with indexes performance on data warehouse database. Question is quite simple. When, where and on which columns to create indexes on dimension and fact tables to speed up performance? I make several tests with my friends, and conclusion is next (continue to read). On every dimension table put index [...] Continue Reading
Posted on 22 December 2009
With this simple calculated member you can calculate distinct count of something where value is not zero. DISTINCTCOUNT(filter([Something].[Something].members, [Measures].[Value]<>0)) Continue Reading