If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > MDX Calculated Member SSAS - Can't Figure it out

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-09, 17:09
smithochris smithochris is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
MDX Calculated Member SSAS - Can't Figure it out

Hi,

I am new to MDX and cannot figure out how to create a particular calculated member (call it AmtScore). The data looks something like this:

Customer.......Account......Amount.....WeightingFa ctor
1..................1................ ...........1
1..................2...............$1000.........2
1..................3...............$2000.........0 .25

I want to create AmtScore by multiplying: [Amount] X [Weighting Factor]. But, I don't want the total for a customer to be [the sum of Amount] X [the sum of WeightingFactor]. I want it to be the sum of AmtScore.

No matter what I try, customer 1 ends up with an AmtScore = 9,750 ($3000 X 3.25), when I need it to be 2,500: (blank)*(1) = 0 + (1000) * (2) = 2000 + (2000)*(0.25) = 500.

Any help would be greatly appreciated. Thanks,

Chris
Reply With Quote
Reply

Tags
calculated member, mdx, sql server 2008, ssas

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On