<?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: converting if() to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203672#M387124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count(DISTINCT {$&amp;lt;MFG_STARTED={'YES'}, INF_DATE_WEEK_OF = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;INF_DATE_WEEK_OF &lt;/SPAN&gt;= WeekStart(vDenConnectScorecard, 0, -1)"}&amp;gt;} COI)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 22:49:06 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-18T22:49:06Z</dc:date>
    <item>
      <title>converting if() to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203668#M387120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason the original expression works perfectly, however when I attempt to convert to set analysis I get zero? All the if's are really hitting performance, so am trying to convert all to set analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old Current Week:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT(DISTINCT if(MFG_STARTED='YES' AND INF_DATE_WEEK_OF=WeekStart(vDenConnectScorecard,0,-1),COI))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Current Week:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT(DISTINCT {$&amp;lt;MFG_STARTED={'YES'},INF_DATE_WEEK_OF={'$(=WeekStart(vDenConnectScorecard,0,-1))'}&amp;gt;}COI)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="141110" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141110_Capture.PNG" style="height: 73px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203668#M387120</guid>
      <dc:creator />
      <dc:date>2016-10-18T20:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: converting if() to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203669#M387121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; =COUNT(DISTINCT {$&amp;lt;MFG_STARTED={'YES'},INF_DATE_WEEK_OF={"=$(WeekStart($(vDenConnectScorecard),0,-1))"}&amp;gt;}COI)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; =COUNT(DISTINCT {$&amp;lt;MFG_STARTED={'YES'},INF_DATE_WEEK_OF={"=$(WeekStart(vDenConnectScorecard,0,-1))"}&amp;gt;}COI)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203669#M387121</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-10-18T22:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: converting if() to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203670#M387122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No dice, both of those also give 0 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203670#M387122</guid>
      <dc:creator />
      <dc:date>2016-10-18T22:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: converting if() to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203671#M387123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;interestingly this does work at the day level...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old:&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT if(MFG_STARTED='YES' AND INF_DATE=date(vDenConnectScorecard),COI))&lt;/P&gt;&lt;P&gt;new:&lt;/P&gt;&lt;P&gt;=count(distinct {$&amp;lt;MFG_STARTED={'YES'},INF_DATE={'$(=date(vDenConnectScorecard))'}&amp;gt;}COI)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141111_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203671#M387123</guid>
      <dc:creator />
      <dc:date>2016-10-18T22:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: converting if() to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203672#M387124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count(DISTINCT {$&amp;lt;MFG_STARTED={'YES'}, INF_DATE_WEEK_OF = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;INF_DATE_WEEK_OF &lt;/SPAN&gt;= WeekStart(vDenConnectScorecard, 0, -1)"}&amp;gt;} COI)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203672#M387124</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-18T22:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: converting if() to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203673#M387125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 23:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/converting-if-to-set-analysis/m-p/1203673#M387125</guid>
      <dc:creator />
      <dc:date>2016-10-18T23:14:19Z</dc:date>
    </item>
  </channel>
</rss>

