Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

How to sum a field that is inside a variable

Hi,

 

I would like to sum a field  that is different deppending on t he value of this Varible( that contains the name of the field)

I'm using 

sum($(Categoria_Label))

where Categoria_Label is the variable with the name of the field, but it doesn't work

 

Any idea what I'm doing wrong?

Thank's

Eduard 

1 Reply
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi Eduard

What is the value of your variable at the moment? Also, what does the expression analyser say at the bottom of your expression builder?

Maybe try:

 Sum('$(Categoria_Label)')

Or

Sum("$(Categoria_Label)")

 Regards,

Mauritz