Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
thanks for any help on this,
the below is a snippet of a formula that isnt evaluating.
the issue seems to be the only segment because if i replace it with its value (1200) it works fine.
any suggestions?
=
avg(IF(RampDataFilteringOutput.Loopp1.sORLoopK > 35 and RampDataFilteringOutput.Loopp2.sORLoopK > 35 and
ArbitrationInput.Group.rOOk < only( {$< [/rec/parameter] = {'rOff'},[/#text] = {'CommonParameters'},[Config] = {Live}>}[/rec/parameter/curval])
,1,2))
If the Only statement is returning a correct value in a seperate text box, the easy solution would be to create a variable with the only expression like (e.g. vParameter)
= only( {$< [/rec/parameter] = {'rOff'},[/#text] = {'CommonParameters'},[Config] = {Live}>}[/rec/parameter/curval])
DO include the = sign, so it will evaluate at the variable level, in your expression replace the Only(..... with
$(vParameter)
hi
I think it does not know what to evaluate - try to add a brackets as follow:(RampDataFilteringOutput.Loopp1.sORLoopK > 35 and RampDataFilteringOutput.Loopp2.sORLoopK > 35 and ArbitrationInput.Group.rOOk)
avg(IF((RampDataFilteringOutput.Loopp1.sORLoopK > 35 and RampDataFilteringOutput.Loopp2.sORLoopK > 35 and
ArbitrationInput.Group.rOOk) < only( {$< [/rec/parameter] = {'rOff'},[/#text] = {'CommonParameters'},[Config] = {Live}>}[/rec/parameter/curval])
,1,2))
Hi, thanks for the quick response, I dont think the brackets are the issue as the value works and ive just tried with creating a variable in the script and that worked too.
have you tried put {'Live'} into a single quotes?
Again yup ive tried that, and ive also put the only statement in a text box to ensure that its actualy returning a number and it is. really quite annoying
Could you please explain what you are trying to do with your formula?
If the Only statement is returning a correct value in a seperate text box, the easy solution would be to create a variable with the only expression like (e.g. vParameter)
= only( {$< [/rec/parameter] = {'rOff'},[/#text] = {'CommonParameters'},[Config] = {Live}>}[/rec/parameter/curval])
DO include the = sign, so it will evaluate at the variable level, in your expression replace the Only(..... with
$(vParameter)
thanks this is the way Ive done it