Dimension usage for multiple columns
Hi All,

How can i set the dimension usage between fact and dimension using multiple key?
I was able to create relationship(see the snapshot) in DSV. but dont know to do in dimension usage tab. 
July 1st, 2015 10:05am

Hi There,

I think this is what you are looking for

https://social.msdn.microsoft.com/Forums/en-US/cdfb8b7c-3908-4bee-824b-7b86e3705b32/dimension-usage?forum=sqlanalysisservices

HTH!

Prathy :)

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 11:25am

Hi,

Try like below,



Set the key column property of the key attributes to be Composite Key

July 2nd, 2015 2:37am

Hi,

Thanks for reply.

I have 2 fact table and one dimension. The first fact table has the relationship with dimension using single column.But for the second fact, i need to take another 3 column combination from the same dimension. is it possible to create composite key in this scenario?

Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2015 5:56am

Hi NikkRED,

According to your description, you want to create composite key with three columns. Right?

In Analysis Services, we should specify unique key as KeyColumns. Otherwise it will throw error like "A duplicate attribute key has been found when processing:.....". So in your dimension, if the combination of three columns are unique values in dim table, you have to specify all the three as KeyColumns. Please refer to an article below:

SSAS - Understanding KeyColumns Dimension Property

Regards,

July 2nd, 2015 7:25am

Hi,

Here, one fact table(FACT_1) is joining with one column(Col_1) of Dimension Dim_A and another fact(FACT_2) is joining with Dim_A with another 3 columns (Col_2,Col_3,Col_4). Actually the unique value in that dimension is Col_1 but ,i got another requirement to add another set of data(Fact_2) which has different set of granularity(Col_2+Col_3+Col_4). 

Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2015 9:27am

Hi NikkRED,

For this scenario you have to create two named queries on DSV using the Same Dimension A Table. For One Named Query Create Logical Primary Key on Col_1 and Map with your Fact_1. For Second Named Query create a Logical Primary Key on Col_2+Col_3+Col_4 and map with Fact_2

July 2nd, 2015 11:11am

Thanks, Let me try it out. But if we create new named query, we need to create one extra dimension right?
Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2015 2:18am

Yes . you have to create the extra Dimension.
July 3rd, 2015 2:34am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics