Hello,
Is it possible to import data as in this exemple http://www.vensim.com/documentation/fn_ ... _data.html, but with multiple subscripts?
I only manage to import with one subscript.
Reffering to this example, is it possible to import all values from B5 to B10 directly in a variable Sales[shape,size] for instance, with autonomous differenciation of the shapes and the sizes?
thanks in advance!
Get data xls with multiple subscripts
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Get data xls with multiple subscripts
Can you get the sample models working? They should import more than 1 subscript.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Get data xls with multiple subscripts
I attached the files where I tried the example, can you tell me how to do pls?
- Attachments
-
- imp multiple subscripts.xlsx
- (9.2 KiB) Downloaded 392 times
-
- GET XLS DATA test.mdl
- (1.63 KiB) Downloaded 352 times
Re: Get data xls with multiple subscripts
The GET DATA calls are basically 1-dimensional because the spreadsheet is 2D, and one is taken by time.
One possible way to semi-automate a GET call with more dimensions is to put the sheet names or first-cell references in a string variable with the appropriate subscripting.
One possible way to semi-automate a GET call with more dimensions is to put the sheet names or first-cell references in a string variable with the appropriate subscripting.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: Get data xls with multiple subscripts
In a case like this, importing the data to vdf would be less error-prone.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/