Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good morning,
Can someone explain to me why this expression is not working? I have a 2020 QlikSense version
I created a variable with the expression:
ONLY({<LAB_DESCRIPTION = {'$(=V_PRIMER_LABORATORIO)'}>} $(=DIMENSIONS_LEVEL_FIELD))
If I replace $(=DIMENSIONS_LEVEL_FIELD) with just DIMENSIONS_LEVEL_FIELD, the expression works, but the original version is what I need.
Thank you all.
Hi!
Try with double quotes:
ONLY({<LAB_DESCRIPTION = {"$(=V_PRIMER_LABORATORIO)"}>} $(=DIMENSIONS_LEVEL_FIELD))
the variable must return the field name as a string
example
DIMENSIONS_LEVEL_FIELD = if(SomeCondition, 'FieldA', 'FieldB')
then in expression use $(DIMENSIONS_LEVEL_FIELD)