Cube Design
i have 2 fact tables - main , comments
fact main data in following format
videoid score
a 1
b 2
c 3 etc
fact_comments have videoid key fact_main , comments each video , score each comments ( fact_main had granularity of videos, video score and fact_comments has granularity of comments comments score)
fact_comments:
videoid commentid score
a aaa 2
a bbb 3
a ddd 1
b vvv 4
etc.
now want cube in see together. bascilly want integrate fact_main , fact_comments . tried having cube 2 measure groups. didnt work. instance, when select video id, instead of getting corresponding commentid, got comment id's. please let me know how dimension usage between these 2 tables be.
alos have many otehr dimensions shared across these 2 fact tables, dim_user. teh user id of dim_user mapped uploader of fact_main , [name of person made comment] in fact_comments. how supposed treat case?
thanks,
ck
in case, can create dimension table video id , comments associated each id. these can configured in cube 1 dimension 2 attributes. still keep 2 tables described above, each @ different level of granularity.
perhaps if create user hierarchy using: comments -> video
javier guillen
http://www.msbicentral.com/blogs/javierguillen.aspx
SQL Server > SQL Server Analysis Services
Comments
Post a Comment