Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

String replacement with variable

Hi,

How is it possible that I have some results with :

Sum({<NOM_PERIODE={'20160412-0025-24 chauffe'}>}VALEUR_METRIQUE))

but when I put the string '20160412-0025-24 chauffe' in a variable SELECTION I don't have any result with :

Sum({<NOM_PERIODE={$(SELECTION)}>}VALEUR_METRIQUE))

Am I missing something ?

4 Replies
Highlighted

May be try this:

Sum({<NOM_PERIODE={$(=SELECTION)}>} VALEUR_METRIQUE)

Highlighted

Are you specifying 20160412-0025-24 chauffe (Without single quotes) or '20160412-0025-24 chauffe' (with single quotes) as your variable definition?

If it is without, may be you need this:

Sum({<NOM_PERIODE={$(=Chr(39) & SELECTION & Chr(39))}>} VALEUR_METRIQUE)

Highlighted
MVP
MVP

Or

Sum({<NOM_PERIODE={'$(SELECTION)'}>} VALEUR_METRIQUE)

Highlighted
Not applicable

It worked with

Sum({<PERIODE_NOM={'$(=vREFERENCE_NOM)'}>}METRIQUE_VALEUR)