<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Qlik Sense - passing strings into expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-passing-strings-into-expression/m-p/905373#M12568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question. I am trying to write some dynamic code in an expression in Qlik Sense. Essentially, I am trying to dynamically construct the name of a field queried after. So, let's assume there is a field in my code called 'XYZ123', and I am trying to achieve the SUM(XYZ123), but in such a way that 'XYZ' and '123' are both stored as variables and are only concatenated within the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am managing to achieve the desired string by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate('$(var1)','$(var2)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work whenever I try to pass it into an expression. I tried to do it more or less like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum('$(concatenate(char(39)&amp;amp;$(var1)&amp;amp;(char39),(char39)&amp;amp;$(var2)&amp;amp;char(39))')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I only managed to get 0 back. Do you know if there is any way of doing this efficiently in the front end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 13:44:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-03T13:44:29Z</dc:date>
    <item>
      <title>Qlik Sense - passing strings into expression</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-passing-strings-into-expression/m-p/905373#M12568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question. I am trying to write some dynamic code in an expression in Qlik Sense. Essentially, I am trying to dynamically construct the name of a field queried after. So, let's assume there is a field in my code called 'XYZ123', and I am trying to achieve the SUM(XYZ123), but in such a way that 'XYZ' and '123' are both stored as variables and are only concatenated within the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am managing to achieve the desired string by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate('$(var1)','$(var2)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work whenever I try to pass it into an expression. I tried to do it more or less like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum('$(concatenate(char(39)&amp;amp;$(var1)&amp;amp;(char39),(char39)&amp;amp;$(var2)&amp;amp;char(39))')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I only managed to get 0 back. Do you know if there is any way of doing this efficiently in the front end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 13:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-passing-strings-into-expression/m-p/905373#M12568</guid>
      <dc:creator />
      <dc:date>2015-06-03T13:44:29Z</dc:date>
    </item>
  </channel>
</rss>

