on ‎2019 Apr 12 8:35 AM
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Sorry, but your script is restricting nothing!
You really have to read some basic documents about script logic, not only copy-pasting code...
*SELECT(%START%,START_DATE,PO,ID=%PO_SET%)
*SELECT(%END%,END_DATE,PO,ID=%PO_SET%)
*SELECT(%STARTTID%,TIMEID,TIME,ID=%START%)
*SELECT(%ENDTID%,TIMEID,TIME,ID=%END%)
*SELECT(%PERIODS%,ID,TIME,TIMEID>=%STARTTID% AND TIMEID<=%ENDTID%)
*XDIM_MEMBERSET TIME=%PERIODS% //Scoping periods between start and end
*XDIM_MEMBERSET ACCOUNT=Total_Area //Scope ACCOUNT to SINGLE member!
*WHEN ACCOUNT
*IS * //already scoped
*REC(EXPRESSION=%VALUE%*[ACCOUNT].[Rate_Sqft],ACCOUNT=Base_Rent,AUDITTRAIL=Input_BR)
*ENDWHENAbsolutely simple script!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
vadim.kalinin
Ex: selecting *XDIM_MEMBERSET Time =2014.04,2014.12
script is working only for two periods 2015 APR and 2015 DEC only
But I want to make script to work Between periods also. (FROM 2015.APR to 2015 DEC). Appreciate you help
*XDIM_MEMBERSET TIME=%PERIODS% //Scoping periods between start and end
"Ex: selecting *XDIM_MEMBERSET Time =2014.04,2014.12 ..." - is it a joke???
SELECTS:
*SELECT(%START%,START_DATE,PO,ID=%PO_SET%)
*SELECT(%END%,END_DATE,PO,ID=%PO_SET%)
*SELECT(%STARTTID%,TIMEID,TIME,ID=%START%)
*SELECT(%ENDTID%,TIMEID,TIME,ID=%END%)
*SELECT(%PERIODS%,ID,TIME,TIMEID>=%STARTTID% AND TIMEID<=%ENDTID%)in my code are performing calculation of periods between dates (including)!
vadim.kalinin
Sorry its typo *Time 2014.04,2014.12 ( Correct : 2015.04,2015.12)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 41 | |
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.