Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

creating an investment data warehouse Expand / Collapse
Author
Message
Posted Monday, May 13, 2013 1:33 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, March 21, 2014 10:22 AM
Points: 166, Visits: 387
Looking for some help designing a small prototype for investments. Ideally, what I'm trying to show is a position of a portfolio as it changes over time. A position is simply what value is attached to a portfolio at a given point in time, and a portfolio is the securities (stocks, bonds, etc) that are included in the measurement.

So if I have 5 shares of IBM that are worth 100$, 10 shares of Microsoft worth 200$, my position right now is $300.

I'm wondering how to track this. Do I have a fact table to track each individual investment, with a DimInvestment to tell me more about it, and a DimDate to allow me to slice and dice by date/time. If I did this, how would I track the positions? I was thinking I would have a DimPosition table that receives an entry each time the position changes as well as a new set of rows for my Fact table.

Am I headed in the right direction?
Post #1452294
Posted Monday, May 13, 2013 1:45 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:14 AM
Points: 1,909, Visits: 19,092
Matthew Cushing (5/13/2013)

So if I have 5 shares of IBM that are worth 100$, 10 shares of Microsoft worth 200$, my position right now is $300.



is this a typo ?
if not please explain how you get to $300


______________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
Post #1452297
Posted Monday, May 13, 2013 1:49 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, March 21, 2014 10:22 AM
Points: 166, Visits: 387
J Livingston SQL (5/13/2013)
Matthew Cushing (5/13/2013)

So if I have 5 shares of IBM that are worth 100$, 10 shares of Microsoft worth 200$, my position right now is $300.



is this a typo ?
if not please explain how you get to $300


5 shares worth 20$ a piece, totalling $100
10 shares worth 20$ a piece, totalling $200

Sorry, that was a bit misleading.
Post #1452300
Posted Monday, May 13, 2013 1:55 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:14 AM
Points: 1,909, Visits: 19,092
Matthew Cushing (5/13/2013)
J Livingston SQL (5/13/2013)
Matthew Cushing (5/13/2013)

So if I have 5 shares of IBM that are worth 100$, 10 shares of Microsoft worth 200$, my position right now is $300.



is this a typo ?
if not please explain how you get to $300


5 shares worth 20$ a piece, totalling $100
10 shares worth 20$ a piece, totalling $200

Sorry, that was a bit misleading.


fair dos...should have realised

personally I would model this in excel and pivot tables first.....easy enough to create sample data.
start planning on what you really want to analyse / kpis / change over time etc

when you know what you want then start looking at a DW......but are you really sure you need a DW?
how many clients / porfolios / stocks / dated etc....A DW may be overkill...only you know


______________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
Post #1452302
Posted Monday, May 13, 2013 2:00 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, March 21, 2014 10:22 AM
Points: 166, Visits: 387
J Livingston SQL (5/13/2013)
personally I would model this in excel and pivot tables first.....easy enough to create sample data.
start planning on what you really want to analyse / kpis / change over time etc

when you know what you want then start looking at a DW......but are you really sure you need a DW?
how many clients / porfolios / stocks / dated etc....A DW may be overkill...only you know


It may be overkill, I'm trying to crack back into BI, and I'm looking for something that will help me wrap my brain around things and maybe turn into a small prototype for work as well :)

thanks for the advice.
Post #1452305
Posted Monday, May 13, 2013 2:08 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:14 AM
Points: 1,909, Visits: 19,092
Matthew Cushing (5/13/2013)
J Livingston SQL (5/13/2013)
personally I would model this in excel and pivot tables first.....easy enough to create sample data.
start planning on what you really want to analyse / kpis / change over time etc

when you know what you want then start looking at a DW......but are you really sure you need a DW?
how many clients / porfolios / stocks / dated etc....A DW may be overkill...only you know


It may be overkill, I'm trying to crack back into BI, and I'm looking for something that will help me wrap my brain around things and maybe turn into a small prototype for work as well :)

thanks for the advice.


maybe overkill...maybe not....but still a good learning experience.
are you able to set yourself up with some sensible size test data sets (eg 1M rows plus) to get the creative juices flowing

my initial thoughts are that each individual daily closing position is a "fact" and work from there

good luck


______________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
Post #1452310
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse