Vision Portfolio Management FAQ: Range Groups
Goal
- To define a classification scheme that uses value ranges to group related instances.
Description
-
Three RangeGroup feeds are pre-defined with the Portfolio Management
Application Layer: MCapGroups,
PeGroups, and
PbGroups.
RangeGroups are used to define ranges of values for a particular attribute. For example, you may want to define market capitalization ranges that group securities into "less than $500 million", "$500 million - 1 billion", and "greater than $1 billion" based on the value of the security's marketCapUS. This FAQ illustrates how to define your own ranges for each of these groups.
DataFeed Assumptions
DataFeed | Fields |
---|---|
McapGroups | startValue, endValue, label |
DataItemFeed | id, shortName, sortCode, baseClass, accessPath, isGroup |
ClassSetup | ClassId, ParentId, Description |
PropertySetup | classId, property, defaultValue, description |
RangeGroupSetup | feedId, rangeClassId, updateClassId, updatePath, accessRule |
Topic 1: Using the McapGroups range group to define market capitalization ranges.
- Load the instances for the RangeGroup, McapGroups.
- Set up the spreadsheet to look like the following.
Note that the feed name MCapGroups is in the top left of the range.
MCapGroups startValue endValue label NA 250 less than $250M 250 500 $250M - $500 500 1000 $500M - $1B 1000 2500 $1B - $2.5B 2500 5000 $2.5B - $5B 5000 10000 $5B - $10B 10000 NA greater than $10B
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button
The McapGroups instances have been created.
- Set up the spreadsheet to look like the following.
Note that the feed name MCapGroups is in the top left of the range.
- Define MCap Group as a grouping choice.
- Set up the spreadsheet to look like the following.
Note that the feed name DataItemFeed is in the top left of the range.
DataItemFeed id shortName baseClass accessPath isGroup mcapGroup MCap Group Security marketCapGroup Y
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button.
MCap Group has been defined as a grouping choice.
- Set up the spreadsheet to look like the following.
Note that the feed name DataItemFeed is in the top left of the range.
- Test browser to confirm the addition of MCap Group as a grouping choice:
- Open the Vision Reporter in your web browser
- Select Account Reports.
- Select AccountBreakdown.
- Enter an account and run the report.
MCap Group should now appear in the group menu at the bottom of report.
Topic 2: Creating New RangeGroups
Create a new range group that will group securities by price ranges:
- Define a RangeClassification subclass PriceGroup:
- Set up the spreadsheet to look like the following.
Note that the feed name ClassSetup is in the top left of the range.
ClassSetup ClassId ParentId Description PriceGroup RangeClassification This class tracks security price range.
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button.
The RangeGroup class PriceGroup has been created.
- Set up the spreadsheet to look like the following.
Note that the feed name ClassSetup is in the top left of the range.
- Define a property at Security to hold priceGroup
- Set up the spreadsheet to look like the following.
Note that the feed name PropertySetup is in the top left of the range.
PropertySetup classId property defaultValue description Security priceGroup PriceGroup price group
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button.
The priceGroup property has been created for Security.
- Set up the spreadsheet to look like the following.
Note that the feed name PropertySetup is in the top left of the range.
- Define a new RangeGroup feed
- Set up the spreadsheet to look like the following.
Note that the feed name RangeGroupFeedSetup is in the top left of the range.
RangeGroupFeedSetup feedId rangeClassId updateClassId updatePath accessRule PriceGroups PriceGroup Security priceGroup price
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button.
The RangeGroup feed PriceGroups has been created. The updatePath name of the property is defined by the updateClassId which holds the group value. The accessRule defines the expression which accessed the basic data value grouped into the correct range.
- Set up the spreadsheet to look like the following.
Note that the feed name RangeGroupFeedSetup is in the top left of the range.
- Load the instances for the RangeGroup PriceGroups:
- Set up the spreadsheet to look like the following.
Note that the feed name PriceGroups is in the top left of the range.
PriceGroups startValue endValue label NA 8 less than 8 8 25 8 - 25 25 100 25 - 100 100 NA greater than 100
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button.
The PriceGroup ranges have been created.
- Set up the spreadsheet to look like the following.
Note that the feed name PriceGroups is in the top left of the range.
- Define Price Group as a grouping choice for a report:
- Set up the spreadsheet to look like the following.
Note that the feed name DataItemFeed is in the top left of the range.
DataItemFeed id shortName baseClass accessPath isGroup priceGroup Price Group Security priceGroup Y
- Select the entire range.
- Select Upload Data from the VUpload menu.
- Select the Range button.
Price Group has been defined as a grouping choice.
- Set up the spreadsheet to look like the following.
Note that the feed name DataItemFeed is in the top left of the range.
- Test that Price Group has been added as a grouping choice:
- Open the Vision Reporter in your web browser.
- Select Account Reports.
- Select AccountBreakdown.
- Enter an account and run the report.