Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "Referencing Previous Month's Data"
Log in to post new messages or reply to existing messages.
 
Author Message
Ms. Arfa Saleem

Subject: Referencing Previous Month's Data   
Posted: 6/30/2019 Viewed: 10100 times
I am trying to calculate surplus water level in tank, which would be equal to previous month's total data added up with the current month's data.

e.g. Tank level (month) = surplus water (month) + Tank level (month-1))
i.e. Tank level (Feb) = surplus water (Feb) + Tank level (Jan)


how can I do that in WEAP?
Thanks
Mr. Doug Chalmers

Subject: Re: Referencing Previous Month's Data   
Posted: 2/6/2025 Viewed: 483 times
To reference a previous month's data-

You can do this using Expression Builder when creating an expression. In Expression Builder, go to Functions, and you can use the function for PrevTSValue. Then, go to Branches within the Expression Builder and you can reference the model object with you want to pull the PrevTSValue for from.
Topic "Referencing Previous Month's Data"