on 2021 Jun 08 5:23 AM
Hello
I want to fill a number (usually 0 or 1, in this case zero) in a range of unbooked data.
the script I wrote is'
IF RESULTLOOKUP([d/ACCOUNT] = "QUANTITY")=NULL
THEN
DATA([d/ACCOUNT] ="QUANTITY") = 0
ENDIF
I have few IFs and Memberset that focus my data action of course, but this part of the formula just don't work.
I tried with "1" it didn't work either
is it possible to fill with a data action a NULL range???
thanks
Deb
Request clarification before answering.
Hi Deb,
for me it worked with a "1", but not with the "0".
Best regards
Hartmut
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deb,
in the meantime I have find out that this works as designed. Assigning 0 only works for booked data, not for unbooked.
There is a special handling for "0" in order to prevent the unnecessary creation of 0-records.
A simpler workaround might be the following, please try it out:
INTEGER @ZeroVariable
@ZeroVariable=0
IF RESULTLOOKUP([d/ACCOUNT]="QUANTITY")= NULL THEN
DATA([d/ACCOUNT]="QUANTITY") = @ZeroVariable
ENDIFBest regards
Hartmut
Hi,
Try
DATA([d/ACCOUNT] ="QUANTITY") = 1-1
For some reason we can't book 0 directly...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Might be more performant to use
MEMBERSET [d/ACCOUNT]="QUANTITY"
DATA.APPEND()=.00
Or perhaps you can set this config keyword to let RESULTLOOKUP() statements return zero values.
CONFIG.GENERATE_UNBOOKED_DATA = ON
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 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.