<?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 Using two variables in the condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-two-variables-in-the-condition/m-p/779734#M276334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scenario where I need to compare two variables and use that expression in the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First variable would have the result of list of values based on condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the next list box should show the result of list of values of First variable VARIABLE1 based on another condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vKeyWord)&amp;nbsp; would have list of values seperated by comma.&lt;/P&gt;&lt;P&gt;$(vKeyWordTwo) would have list of different values seperated by comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variablle1=Aggr(only({&amp;lt;Functional_Location={$(vKeyWord)}&amp;gt;}Functional_Location),Functional_Location)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to created one more variable like Variable2 like&lt;/P&gt;&lt;P&gt;Variable2=Aggr(only({&amp;lt;Variablle1={$(vKeyWordTwo)}&amp;gt;}Variablle1),Variablle1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks heaps in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 03:30:30 GMT</pubDate>
    <dc:creator>shyamcharan</dc:creator>
    <dc:date>2014-12-05T03:30:30Z</dc:date>
    <item>
      <title>Using two variables in the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-variables-in-the-condition/m-p/779734#M276334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scenario where I need to compare two variables and use that expression in the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First variable would have the result of list of values based on condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the next list box should show the result of list of values of First variable VARIABLE1 based on another condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vKeyWord)&amp;nbsp; would have list of values seperated by comma.&lt;/P&gt;&lt;P&gt;$(vKeyWordTwo) would have list of different values seperated by comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variablle1=Aggr(only({&amp;lt;Functional_Location={$(vKeyWord)}&amp;gt;}Functional_Location),Functional_Location)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to created one more variable like Variable2 like&lt;/P&gt;&lt;P&gt;Variable2=Aggr(only({&amp;lt;Variablle1={$(vKeyWordTwo)}&amp;gt;}Variablle1),Variablle1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks heaps in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 03:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-variables-in-the-condition/m-p/779734#M276334</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2014-12-05T03:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using two variables in the condition</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-variables-in-the-condition/m-p/779735#M276335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally this should work but it could be difficult to create the appropriate lists and variables-syntax. In your case you will probably need $-expansion for your variables, maybe so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=$(var))&lt;/P&gt;&lt;P&gt;$(='$(var)')&lt;/P&gt;&lt;P&gt;$(=var)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look here to explanations and examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/04/the-magic-of-variables" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/04/the-magic-of-variables"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/04/the-magic-of-variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/11/18/dollar-expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5932"&gt;Dynamic Field Expressions with Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 11:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-variables-in-the-condition/m-p/779735#M276335</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-05T11:00:05Z</dc:date>
    </item>
  </channel>
</rss>

