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

Call Variables in Set Analysis

Hi everyone,

Need i little help here:

A create a variable that i called variable_a.

Then im trying to make Sum({$<id={'variable_a'}>} Costs).

It doesn't work.

Any suggestions for that?

Thanks,

Eliano

4 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

I can never quite remember the syntax without looking at my own previous uses (which I can't do now!) but try:

Sum({$<id={'$(variable_a)'}>} Costs)

or

Sum({$<id={"$(variable_a)"}>} Costs)

If neither works I'll go and look it up!

Jason

Not applicable
Author

Didn't work.

Anyother suggestions?

Thanks,

Eliano

Jason_Michaelides
Luminary Alumni
Luminary Alumni

I seem to remember an example being in the F1 help in Set Analysis. Have a look there.

Not applicable
Author

I solve it out.

thanks