Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pauldamen
Partner - Creator II
Partner - Creator II

Create a listbox with several variables

Dear all,

I want to create a listbox containing different variables I made which you can select.

So I have 5 variables created (5 formulas) which I  want to put in a listbox so that users can select 1 which is then put into a graph.

How can I put the 5 variables in 1 listbox? I can't make a group because it is nog cyclic or drill down, I want to display the five variables just in a row.

How someone can help me!

Kind regards,

Paul

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

Everything works fine in both versions.

You use alternative state so the selection you've made in listbox with formulas does'nt affect the pivot.

And remove '=' sign in front of your stored expressions.

View solution in original post

24 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Hi I am not sure but try like this.. goto the  properties of listbox

when u create list box for one field ,when u scroll down the fieldnames u will find a option expression for listbox,

then use the necesssary formulas  and create ur own list box..

whiteline
Master II
Master II

Hi.

Use inline sstatement in script to load your 5 formulas into one field. Then you could use this field in a listbox.

pauldamen
Partner - Creator II
Partner - Creator II
Author

How can I make 5 formulas loaded into 1 field using an inline statement?

Not applicable

load * inline [

     fieldname

     value1

     value2

     value3

     value4

     value5

];

and then use fieldname for your listbox

regards,

MT

pauldamen
Partner - Creator II
Partner - Creator II
Author

Hi,

Is not working, it doesn't take the formula, the formula format looks like this:

sum([Betrokken bij echtscheiding <18])/sum([Jongeren onder 18 jaar])*1000;

But after the second bracket (before the next sum) it stops the formula, if have tried to put " around it but that doesn't help either.

Any ideas?

Regards,

Paul

whiteline
Master II
Master II

Two things: the quotes  + dollar-sign expansion

pauldamen
Partner - Creator II
Partner - Creator II
Author

Also with the quotes and the $ sign it doesn't work

Not applicable

Have you tried single quotes?

Not applicable

if you want to see the result have you tried to put a = at the beginning?