Get data xls with multiple subscripts

Use this forum to post Vensim related questions.
Post Reply
thifei
Junior Member
Posts: 11
Joined: Mon Dec 11, 2023 4:05 pm
Vensim version: DSS

Get data xls with multiple subscripts

Post by thifei »

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!
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Get data xls with multiple subscripts

Post by Administrator »

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
thifei
Junior Member
Posts: 11
Joined: Mon Dec 11, 2023 4:05 pm
Vensim version: DSS

Re: Get data xls with multiple subscripts

Post by thifei »

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 67 times
GET XLS DATA test.mdl
(1.63 KiB) Downloaded 71 times
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Get data xls with multiple subscripts

Post by tomfid »

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.
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Get data xls with multiple subscripts

Post by tomfid »

In a case like this, importing the data to vdf would be less error-prone.
Post Reply