Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to create a weighted average Moody's rating?


How to create a weighted average Moody's rating?

Author
Message
dwelchman
dwelchman
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 83
I've gotten pretty far with this, but I'm falling one step short...
The basic data in my cube pertains to holdings of financial instruments in portfolios. An "asset" would be a security, and these securities are held in one or more portfolios. Each security is rated by Moody's, and these ratings are in alpha-numeric buckets. Examples of the possible ratings would be: Aa3, Aa2, Aa1, Baa3, Baa2, Baa1, Ba3, Ba2, Ba1, Caa3, Caa2, etc.
I'd like to create a calculated measure that is the weighted average Rating. (The weighting factor is the dollar Amount of each holding).
I've created a table that assigns each rating a numeric equivalent. In my fact table I've created a field (wgt Rating) that multiplies the Amount of the holding by the rating's numeric equivalent, and I've added this field as a measure in the cube, with the visibility set to False. Then I created a calculated measure that divides the wgt Rating by the Amount of the holding. This effectively gives me a weighted average Rating, but it is numeric. To get the alpha Rating, I have to go back to the table and interpolate.
Can anyone advise me on how to get SSAS to take that last step and return the alpha Rating?
Thanks,
Stumped.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search