SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


creating an investment data warehouse


creating an investment data warehouse

Author
Message
Matthew Cushing
Matthew Cushing
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 414
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?
J Livingston SQL
J Livingston SQL
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5382 Visits: 35269
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

Matthew Cushing
Matthew Cushing
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 414
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.
J Livingston SQL
J Livingston SQL
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5382 Visits: 35269
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

Matthew Cushing
Matthew Cushing
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 414
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 Smile

thanks for the advice.
J Livingston SQL
J Livingston SQL
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5382 Visits: 35269
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 Smile

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

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