dbTalk Databases Forums  

Handling slow changing dimension

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Handling slow changing dimension in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
darkeagle
 
Posts: n/a

Default Handling slow changing dimension - 09-14-2005 , 05:48 AM






Hi,
Anyone know how handle a SCD dimension type 2?
I have implemented the dimension over an old Analisys Services Father-Child
dimension. Now, when I process the cube I obtaing an error (name duplicate).
I handle the dimension table inserting a new record (with a different sk
key) but with the same name, in the fact table I link new facts with the new
surrogate dimension key.
Analisys services can automatically handle this kind of dimension?
Anyone have a sample or a tutorial for me?
Thank you and exuse my english.
D



Reply With Quote
  #2  
Old   
darkeagle
 
Posts: n/a

Default Re: Handling slow changing dimension - 09-14-2005 , 05:52 AM






I forgotten, I must do this with analisys services 2000.
Thank you.

"darkeagle" <darkeagle@nospam> ha scritto nel messaggio
news:4327ff44_2 (AT) x-privat (DOT) org...
Quote:
Hi,
Anyone know how handle a SCD dimension type 2?
I have implemented the dimension over an old Analisys Services
Father-Child dimension. Now, when I process the cube I obtaing an error
(name duplicate).
I handle the dimension table inserting a new record (with a different sk
key) but with the same name, in the fact table I link new facts with the
new surrogate dimension key.
Analisys services can automatically handle this kind of dimension?
Anyone have a sample or a tutorial for me?
Thank you and exuse my english.
D




Reply With Quote
  #3  
Old   
Jéjé
 
Posts: n/a

Default Re: Handling slow changing dimension - 09-14-2005 , 08:00 AM



SCD dimension are not handled by AS himself, you have to manage this
dimension in your RDBMS.

To avoid the error in AS authorize duplicated names in the dimension.

Due to the possible replication of the member you could have 2 times the
same member:

Key Name parent name start date end date
1 Paul John 01/01/2000 01/01/2001
2 Paul Mary 01/01/2001 01/01/2002
3 Paul John 01/01/2002 01/01/2003
.....

So "paul" will appeared 2 times under "John" in the dimension and 1 time
under "Mary"

If your dimension don't use any properties, then you could use the "Name"
column as the member key and you have to authorized duplicated keys. in this
case :
"Paul" will appeared only 1 time under "John" instead-of 2 times.
(solution not tested, just a theorical suggestion)


"darkeagle" <darkeagle@nospam> wrote

Quote:
I forgotten, I must do this with analisys services 2000.
Thank you.

"darkeagle" <darkeagle@nospam> ha scritto nel messaggio
news:4327ff44_2 (AT) x-privat (DOT) org...
Hi,
Anyone know how handle a SCD dimension type 2?
I have implemented the dimension over an old Analisys Services
Father-Child dimension. Now, when I process the cube I obtaing an error
(name duplicate).
I handle the dimension table inserting a new record (with a different sk
key) but with the same name, in the fact table I link new facts with the
new surrogate dimension key.
Analisys services can automatically handle this kind of dimension?
Anyone have a sample or a tutorial for me?
Thank you and exuse my english.
D






Reply With Quote
  #4  
Old   
darkeagle
 
Posts: n/a

Default Re: Handling slow changing dimension - 09-14-2005 , 08:32 AM



Thank you,
There is a problem:
How I can refer from MDX the first "Paul" or the Second "Paul" under "John"?
My tests show that in an example expression: Customer.John.Paul I refer the
last Paul inserted into RDBMS...
How I can refer the first?
Which impact of enabling duplicate keys in parent members (like aggregation,
member calculation etc)?
Thank you

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> ha scritto nel messaggio
news:uxzkLxSuFHA.1472 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Quote:
SCD dimension are not handled by AS himself, you have to manage this
dimension in your RDBMS.

To avoid the error in AS authorize duplicated names in the dimension.

Due to the possible replication of the member you could have 2 times the
same member:

Key Name parent name start date end date
1 Paul John 01/01/2000 01/01/2001
2 Paul Mary 01/01/2001 01/01/2002
3 Paul John 01/01/2002 01/01/2003
....

So "paul" will appeared 2 times under "John" in the dimension and 1 time
under "Mary"

If your dimension don't use any properties, then you could use the "Name"
column as the member key and you have to authorized duplicated keys. in
this case :
"Paul" will appeared only 1 time under "John" instead-of 2 times.
(solution not tested, just a theorical suggestion)


"darkeagle" <darkeagle@nospam> wrote in message
news:43280018$1_1 (AT) x-privat (DOT) org...
I forgotten, I must do this with analisys services 2000.
Thank you.

"darkeagle" <darkeagle@nospam> ha scritto nel messaggio
news:4327ff44_2 (AT) x-privat (DOT) org...
Hi,
Anyone know how handle a SCD dimension type 2?
I have implemented the dimension over an old Analisys Services
Father-Child dimension. Now, when I process the cube I obtaing an error
(name duplicate).
I handle the dimension table inserting a new record (with a different sk
key) but with the same name, in the fact table I link new facts with the
new surrogate dimension key.
Analisys services can automatically handle this kind of dimension?
Anyone have a sample or a tutorial for me?
Thank you and exuse my english.
D








Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.