dbTalk Databases Forums  

Calculating difference between measures (Analysis 2000)

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


Discuss Calculating difference between measures (Analysis 2000) in the microsoft.public.sqlserver.olap forum.



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

Default Calculating difference between measures (Analysis 2000) - 11-22-2005 , 01:18 AM






Heres the scenario:
I have two cubes joined in one virtual cube, one with 'contract' toher with
'payments'.
[Time].[Calendar] is present in all cubes. I also added dimension
[Contract].[Key] in all cubes. It basically has unique key of each contract.
Now, I have two measures, one from each cube. ContractValue and
PaymentValue. Both of them change over time. The problem I have is with
PaymentValue, since I must only use PaymentValues that are on the contracts
in the query. However, [Contract].[Key] does not have to be in the query.
Usually query would be something like 'give me ContractValue and payments
for partner xy for contracts signed in year 2004'.

Anything I came up with is extremely slow (10+ minutes for a couple of
contracts). Any ideas?


MC



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.