Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Guys,
I've built a set analysis for a textbox but i'm having troubles in checking a variable lenght.
sum( {<'$(=vVariable)' = {"=len($(=vVariable)) =0"} >} DIMENSION)
Does anyone have an idea?
Thanks in advance.
Please add this formula as an expression to a straight table with no label on it
Mouse over the header and check how your expression is beeing evaluated
How you define here vVariable
Hi Anil,
The vVariable here is a number.
Everything seems right in this. but it is not working.
Would you mind posting a screenshot of your test?
vVariable returns a number?
'$(=vVariable)' = {} it´s supposed to be a fieldname so you can use as a Set Analysis expression
Is there a way of putting a number on it?
The function sum( {<'$(=vVariable)' = {"=len($(=vVariable)) =0"} >} DIMENSION)
returns =sum({<'' = {"len()"=0}>} DIMENSION) when I set the variable's value null.
I think the set analysis cannot retrieve a value because it cannot evaluate a null value in the left part of equation (=sum({<'' = ).
Do you have an idea to overcome that?
Thanks in advance.
Let´s start from the beginning...
What´s your intention? Maybe undestanding what you trying to do we can help a little better
A set analysis expression is supposed to have :
Sum({<aField={"Some search expression"}>}Value)
You can have a variable on left side of expression since this variable returns a fieldname