Getting Data from Excel

Use this forum to post Vensim related questions.
Post Reply
impactdynamics
Junior Member
Posts: 16
Joined: Thu Mar 25, 2004 6:50 pm

Getting Data from Excel

Post by impactdynamics »

Challenge:

I am building a dynamics Balanced Scorecard for the telecoms sector of a global IT company. The model will be fed by over 200 variables each month via an Excel spreadsheet captured from a BI solution. Some time sreries data, most constants.

The model also has about 50 lookups which will also be fed from a spreadsheet but not via the BI system.

Later, I will need to duplicate views (to enable explicit relationships between products and customers , eg cross/up-selling) and Subsets (to denote geographic regions)

Questions:

What is the best mechanism for structuring and inputting data from the spreadsheet into the model, ensuring that the links are dynamic, ie update automatically?

Is is possible to capture the data by variable name rather than row and col references, which makes a much more elegant and practical solution? (Thanks to your great help with macros, this data is already structured by view and variable name and trial values are being compiled now.


Specific Problem:

I experimented with GET XLS DATA and GET XLS CONSTANTS with a very simple model and spreasheet in the same folder. Followed manual to the letter, included single quotes. Failed to run - dialog said spreadsheet does not exist - help!
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Can you post the simple model and spreadsheet so we can take a look?

Tony.
impactdynamics
Junior Member
Posts: 16
Joined: Thu Mar 25, 2004 6:50 pm

Post by impactdynamics »

Thanks Tony

Here are model and spreasheet
Attachments
data_input_test1.zip
(2.69 KiB) Downloaded 386 times
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Will reply in the Vensim forum.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Getting data from Excel

Post by bob@vensim.com »

Reply to thread started in the System Dynamics Forum

Chapter 16 of the User's guide shows an example of this. If you are having trouble with file names best guess is that you have left off .xls in the filename. eg 'MySpreadsheet' won't work you need to have 'MySpreadsheet.xls'

As far as using variable names in the spreadsheet. If you want to do this you would need to either explicitly import that .xls file which parses for variable names (again see Chapter 16) or create in excel a sheet that parses variable names and puts results in a fixed location for the GET XLS functions to use.
impactdynamics
Junior Member
Posts: 16
Joined: Thu Mar 25, 2004 6:50 pm

Post by impactdynamics »

Bob - this is great - you were right of course

Many thanks for such swift reply.

I like the sound ot this parsing idea - do you have a simple example?

Regards

Roger
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Sorry no examples on that - it is Excel macro editing so there may be useful stuff on the web someplace.
LAUJJL
Senior Member
Posts: 1426
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

getting data from excel

Post by LAUJJL »

Hi

About your first question, duplicating views to represent relationship between products and customers and geographical sectors. Normally if you have to duplicate views there is a risk that this duplication could be avoided by careful use of subscripts. Of course not knowing your application I cannot be sure of it.
I have been some times tempted to duplicate views instead of building subscripts: if is easier to do. One has to choose between complexity of the sketch and complexity of the equations. In the long run, I found always preferable to prefer the simplification of the sketch with more complex equations, because mainly your can easily add more segments in your products or customers or geographical sectors. The overall model is more simple to understand too and it is too much easier to aggregate partial results and analyse them.
Regards.
JJ
impactdynamics
Junior Member
Posts: 16
Joined: Thu Mar 25, 2004 6:50 pm

Post by impactdynamics »

Thanks so much for this JJ - I agree, subscripts offer a much more elegant and simpler solution. Can I try a scenario on you?

A key margin dynamic in the mobile telecoms market is switching customers from commodidy voice and text services to high value data services.

Take any customer segment and suppose we use subscripts to denote cust revenues by voice and data respectively (ie same customer segment, subdivided by service type)

As the level of voice revenue increases (say by aggressive recruiting of new customers) the propensity to use and/or switch to data services increases in some non-linear relationship, depending on the segment.

So we need to model an explicit relationship between the increase in data as a factor of voice (among other things).

Question:

Can explicit, visible relationships exist across subscripted variables in Vensim - in this case it would be a lookup?

Regards

Roger
LAUJJL
Senior Member
Posts: 1426
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

dynamics balance scordard

Post by LAUJJL »

Hi

I have not presently the time to answer your question, but I will do it as soon as possible, evnetually this week end.
Regards.
JJ
LAUJJL
Senior Member
Posts: 1426
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

dynamic balance scorecard

Post by LAUJJL »

Hi

Attached a simplistic model with cross influence between customers and type of communication.
There are three warnings for the unit control because the lookups are not normalized. It should be better to do it by using standard influence with standard revenue.
Regards.
JJ
Attachments
BAL_SCO_CAR.mdl
(4.8 KiB) Downloaded 390 times
impactdynamics
Junior Member
Posts: 16
Joined: Thu Mar 25, 2004 6:50 pm

Post by impactdynamics »

hi JJ

this really is much appreciated

Roger
Post Reply