<?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 Issue using variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-using-variables/m-p/1668644#M50482</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have created 2 variables based on a field .&amp;nbsp; Variable 2 must show always A3 and variable 1 should show A0 or A3 based on user selection. If the user come and select A3 and A0&amp;nbsp; or A0 and A3 from the field the variables are populating as expected but when the user paste the cycles into the field the variables are showing in reverse order like variable 2 is showing A0 and variable 1 is showing A3. Please can someone help me on how to achieve this? Below is my variables.&lt;/P&gt;&lt;P&gt;vField =concat(distinct field,',')&lt;/P&gt;&lt;P&gt;Variable 1 : =subfield(vField,',',1)&lt;/P&gt;&lt;P&gt;Variable 2 : =subfield(vField,',',2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 20:32:22 GMT</pubDate>
    <dc:creator>dandaanilreddy</dc:creator>
    <dc:date>2020-01-23T20:32:22Z</dc:date>
    <item>
      <title>Issue using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-using-variables/m-p/1668644#M50482</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have created 2 variables based on a field .&amp;nbsp; Variable 2 must show always A3 and variable 1 should show A0 or A3 based on user selection. If the user come and select A3 and A0&amp;nbsp; or A0 and A3 from the field the variables are populating as expected but when the user paste the cycles into the field the variables are showing in reverse order like variable 2 is showing A0 and variable 1 is showing A3. Please can someone help me on how to achieve this? Below is my variables.&lt;/P&gt;&lt;P&gt;vField =concat(distinct field,',')&lt;/P&gt;&lt;P&gt;Variable 1 : =subfield(vField,',',1)&lt;/P&gt;&lt;P&gt;Variable 2 : =subfield(vField,',',2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 20:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-using-variables/m-p/1668644#M50482</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2020-01-23T20:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue using variables</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-using-variables/m-p/1668840#M50509</link>
      <description>&lt;P&gt;To work as field, You must include Aggr() over Variables, Since Aggregate can't be achieve in the script, If u are using script side variables.&lt;/P&gt;&lt;P&gt;I would rather thing this way&lt;/P&gt;&lt;P&gt;vField =concat(distinct field,',')&lt;/P&gt;&lt;P&gt;Variable 1 : =subfield(Aggr(vField, field),',',1)&lt;/P&gt;&lt;P&gt;Variable 2 : =subfield(Aggr(vField, field),',',2)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 10:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-using-variables/m-p/1668840#M50509</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-01-24T10:47:53Z</dc:date>
    </item>
  </channel>
</rss>

