Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Store outcome of an expression in a variable

Dear all,

I have the following dataset:

LOAD * INLINE [
ACTIVITY_ID2
1
2
3
]
;

Right now I have a text box that shows the number of ACTIVITY_ID. This works fine but now I would like to store the value in a variable. So I create a variable called varTest with the following:

=count(ACTIVITY_ID2)

But if I want to insert this variable in a textbox now like this:

=$(varTest)

I do get anything. Any thoughts on where this goes wrong?

3 Replies
lakshmikandh
Specialist II
Specialist II

sunny_talwar

Try just varTest without the dollar sign expansion

robert_mika
Master III
Master III

or do not use '=' when creating variable.

I