I have a series of data, e.g.: 1 on day1; 2 on day2; 3 on day3....7 on day7
And this set repeats every day, which means the real input data would be like the sum of each repeat:
Is it possible to generate this as the input of a variable?
Many thanks!!
Please help! How to repeat a series of data
Re: Please help! How to repeat a series of data
Here's one option: http://www.ventanasystems.co.uk/forum/v ... f=2&t=5930
Your pic is ambiguous - if you indicate the desired output as well as input, it would help.
Your pic is ambiguous - if you indicate the desired output as well as input, it would help.
/*
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: Please help! How to repeat a series of data
Hi thanks for the reply!
I guess my problem is slight different, as the dataset doesn't repeat on the 8th day.
It repeats on the next day, so the result would be the sum of every rows.
hope I describe it clearly....
I guess my problem is slight different, as the dataset doesn't repeat on the 8th day.
It repeats on the next day, so the result would be the sum of every rows.
hope I describe it clearly....
Re: Please help! How to repeat a series of data
So for the example given, would the output be 1, 3, 6, ... ?
You haven't specified whether the blanks are 0s, or what happens after 7.
I'd recommend posting a spreadsheet (or screenshot of one) showing exactly what you want.
You haven't specified whether the blanks are 0s, or what happens after 7.
I'd recommend posting a spreadsheet (or screenshot of one) showing exactly what you want.
/*
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: Please help! How to repeat a series of data
Yes, that's exactly what I mean.
The set is just 7 number long, so blank means zero. Data would be like 1, 3, 6....
The set is just 7 number long, so blank means zero. Data would be like 1, 3, 6....
Re: Please help! How to repeat a series of data
Is there a reason you can't just use the sums 1, 3, 6 ... directly?
It's still not clear to me what we're trying to do here. Some context would help.
In general, when something repeats like this, it makes sense to use a lookup, with the input given by MODULO(time,repeat period) or something like that.
It's still not clear to me what we're trying to do here. Some context would help.
In general, when something repeats like this, it makes sense to use a lookup, with the input given by MODULO(time,repeat period) or something like that.
/*
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: Please help! How to repeat a series of data
Hi,
Thank you very much for your reply. You are always very helpful and give in-time replies.
As you suggested, I computed the output data and used it as the variable input, and it works! Thanks!
Thank you very much for your reply. You are always very helpful and give in-time replies.
As you suggested, I computed the output data and used it as the variable input, and it works! Thanks!