Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Many-to-many relationship issues

$
0
0

Hello

I have the following model in a Data Warehouse:

FactDailyBalance --> DimProduct <-- FactProduct_GeneralLedgerBridge -->DimGeneralLedger <-- FactDailyGeneralLedgerBalances

i.e. there is a many-to-many relationship between DimProduct and DimGeneralLedger which has been "resolved" using a bridge table. Thebridge table is also being used to enable drill across from one set of facts (FactDailyBalance) to another (FactDailyGeneralLedgerBalances).

I have loaded the tables with test data and the relationships are working nicely inSQL.

In Analysis Services, I am seeing a completely different behaviour. Instead of seeing:

Product X
   Product X GL 1
   Product X GL 2

Product Y
   Product Y GL 1
   Product Y GL 2

I am seeing the following in the Cube (using Excel):

Product X
   Product X GL 1
   Product X GL 2
   Product Y GL 1
   Product Y GL 2

Product Y
   Product X GL 1
   Product X GL 2
   Product Y GL 1
   Product Y GL 2

In other words, it is "double counting" the General Ledgers and assigning all General Ledgers to each Product.

I am using the Many-to-Many relationship in my cube structure.

Can anyone tell me what is wrong?


Amir




Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>