Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
danosoft
Specialist
Specialist

Variable with field name inside

I have a variable in my load script that have a field name:

varOne = "fieldName"

i want use the values of that fieldName in my chart dimension, how can i do that?

if  i use in my dimension $(varOne) it write only the fieldName and not all values at that filedName have in my table....

1 Solution

Accepted Solutions
sunny_talwar

Try this

=$(='[' & $(varFirDimension) & ']')

View solution in original post

9 Replies
sunny_talwar

May be add an equal sign

$(=varOne)

danosoft
Specialist
Specialist
Author

no, it not work

sunny_talwar

Would you be able to share a sample to show your issue?

asinha1991
Creator III
Creator III

maybe this

[ $(varOne)

 

or " $(varOne)"

danosoft
Specialist
Specialist
Author

no it show the fieldName not the values
danosoft
Specialist
Specialist
Author

This is the example, i try to explain it:

- when in the Dimension table i select "AGENTE"

i want in the Chart table see on the rows:

agenteuno

agentedue

agentetre

and NOT the name of the field

sunny_talwar

Try this

=$(='[' & $(varFirDimension) & ']')
danosoft
Specialist
Specialist
Author

thanks it work!! can you explain the solutions? thanks
sunny_talwar

Dollar sign expansion converts a text into a field name... $(Variable) gives text, $(='[' & $(Variable) & ']') gives [FieldName]