<?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 Re: put a condition in set analysis as variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801787#M283045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it works &lt;/P&gt;&lt;P&gt;thank you very much indeed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 07:42:30 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2014-11-11T07:42:30Z</dc:date>
    <item>
      <title>put a condition in set analysis as variable</title>
      <link>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801783#M283041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello got the following condition which I use in set analysis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TPK={"=RANK(COUNT(RECORD_ID))&amp;lt;=$(vTopXTPK)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this condition I want to use it in several expressions on more than one chart&lt;/P&gt;&lt;P&gt;I want to put it in a variable and use this variable in set analysis&lt;/P&gt;&lt;P&gt;please advise on what would be the syntax if I put the above condition in variable for the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT {&amp;lt;&lt;EM&gt;&lt;STRONG&gt;TPK={"=RANK(COUNT(RECORD_ID))&amp;lt;=$(vTopXTPK)"}&lt;/STRONG&gt;&lt;/EM&gt;, IS_WASTE={1}&amp;gt;} RECORD_ID)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 14:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801783#M283041</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-10T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: put a condition in set analysis as variable</title>
      <link>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801784#M283042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable as below&lt;/P&gt;&lt;P&gt;var1 &lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RANK(COUNT(RECORD_ID))&amp;lt;=$(vTopXTPK)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Now use in expression as &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT {&amp;lt;&lt;/SPAN&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;TPK={"=$(var1)"}&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, IS_WASTE={1}&amp;gt;} RECORD_ID) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 14:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801784#M283042</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-10T14:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: put a condition in set analysis as variable</title>
      <link>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801785#M283043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can I put in var1 2 definitions based on another variable?&lt;/P&gt;&lt;P&gt;will it work?&lt;/P&gt;&lt;P&gt;i.e. if ($(var1)= 1, rank(count(record_id)) &amp;lt;=$(vTopXTPK),Rank(Count(distinct {&amp;lt; some_set_analysis_here&amp;gt;} Record_ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801785#M283043</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-10T16:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: put a condition in set analysis as variable</title>
      <link>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801786#M283044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure... need to work on your data or apps.. .Try it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801786#M283044</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-10T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: put a condition in set analysis as variable</title>
      <link>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801787#M283045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it works &lt;/P&gt;&lt;P&gt;thank you very much indeed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 07:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/put-a-condition-in-set-analysis-as-variable/m-p/801787#M283045</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-11T07:42:30Z</dc:date>
    </item>
  </channel>
</rss>

