<?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 Variables in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586709#M443263</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use variables in set analysis.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Location *&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_V1FIN_P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_ENGINE_P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DROP_CAC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DROP_SHIP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_V1FINISH&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2D3506163&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1D6506911&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_ENGINE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Variable Defined:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;vLoc=&amp;nbsp;if(wildmatch([Location *],'2*','1*','B*','DS*') and Right([Location *],2)&amp;lt;&amp;gt;'WP' and Right([Location *],2)&amp;lt;&amp;gt;'_P',[Location *])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Text Object Expression:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;=Count({&amp;lt;[Location *]={'$=($(vLoc))'}&amp;gt;}[Location *])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This expression does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one please explain the syntax for variables in set expression? How to fix the expression above?&lt;/P&gt;&lt;P&gt;Please find attached qvw file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 14:37:43 GMT</pubDate>
    <dc:creator>poluvidyasagar</dc:creator>
    <dc:date>2019-05-30T14:37:43Z</dc:date>
    <item>
      <title>Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586709#M443263</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use variables in set analysis.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Location *&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_V1FIN_P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_ENGINE_P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DROP_CAC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DROP_SHIP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_V1FINISH&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2D3506163&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1D6506911&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DS_ENGINE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Variable Defined:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;vLoc=&amp;nbsp;if(wildmatch([Location *],'2*','1*','B*','DS*') and Right([Location *],2)&amp;lt;&amp;gt;'WP' and Right([Location *],2)&amp;lt;&amp;gt;'_P',[Location *])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Text Object Expression:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;=Count({&amp;lt;[Location *]={'$=($(vLoc))'}&amp;gt;}[Location *])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This expression does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one please explain the syntax for variables in set expression? How to fix the expression above?&lt;/P&gt;&lt;P&gt;Please find attached qvw file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 14:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586709#M443263</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-05-30T14:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586832#M443269</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count({&amp;lt;[Location *] = {"=WildMatch([Location *], '2*', '1*', 'B*', 'DS*') and Right([Location *], 2) &amp;lt;&amp;gt; 'WP' and Right([Location *], 2) &amp;lt;&amp;gt; '_P'"}&amp;gt;}[Location *])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 19:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586832#M443269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-30T19:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586881#M443270</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;It works perfect. But why does it not work using variable in side set expression.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vidya</description>
      <pubDate>Thu, 30 May 2019 20:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586881#M443270</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-05-30T20:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586966#M443274</link>
      <description>&lt;P&gt;Because I don't think what you were using in set analysis was the right way to do it....&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 00:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1586966#M443274</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-31T00:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1587158#M443290</link>
      <description>What is the right syntax for using variables in set expression?</description>
      <pubDate>Fri, 31 May 2019 13:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1587158#M443290</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-05-31T13:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1587173#M443291</link>
      <description>&lt;P&gt;It depends on various different things... there is no one holy grail I can provide you... but in general you can start here&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Magic-of-Variables/ba-p/1465499" target="_blank" rel="noopener"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 13:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-Set-Analysis/m-p/1587173#M443291</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-31T13:59:34Z</dc:date>
    </item>
  </channel>
</rss>

