olap - Specify a particular foreign key field as a link between two tables in the SSAS data source -


i quite new sql server analysis services , try build first cube (the first except adventure works tutorial)

the problem how specify particular field in table serve link table, when several options (several keys pointing same second table) present.

in data source have department table: (irrelevant fields omitted)

| department_key (pk) | ... 

and discipline table this:

| discipline_key (pk) | title | department_for_key (fk) | department_of_key (fk) | ... 

both foreign keys in discipline table point department table , both constraints specified in db. still meaning quite different.

when constructing discipline dimension in sql server data tools specify of foreign keys should used link between levels of particular hierarchy in dimension (or in whole dimension), haven't found way explicitly.

interestingly, happens ssdt (or ssas) uses column want ( department_of_key ) relate levels. nevertheless, use second key in separate dimension (or in new hierarchy in same dimension) in future, it'll better know how control process.

although, suppose question simple one, have failed find solution far. have feeling there relevant in tutorial devoted ssas, couldn't find there.

thank response!

(i appreciate recommendations regarding better title question =) )

i avoid relying on relationship definitions in ssas - results obscure , difficult debug ref post.

i build sql view (ideally ssas use only) covers entire scope of each dimension. can tested independantly , fed ssas predictable results.

using sql views has advantage of insulating cube schema changes , data issues (e.g. nulls).


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -