<?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: write count(if  with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/write-count-if-with-set-analysis/m-p/457211#M170705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count is a resource intensive function. You can use flags (set to 1 or 0) in the script to indicate if the LineNo is in a specific timebucket and then use those flags in your set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 22:42:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-21T22:42:22Z</dc:date>
    <item>
      <title>write count(if  with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/write-count-if-with-set-analysis/m-p/457210#M170704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I have this expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count(if(InDateTime&amp;lt;=[30 min] and OutDateTime&amp;gt;=[30 min],LineNo)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;which is working fine, but is a little slow. I thought maybe it would be faster with set analysis. I have tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;InDateTime={'&amp;lt;=[30 min]'}&amp;gt; * &amp;lt;OutDateTime={'&amp;gt;=[30 min]'}&amp;gt;}LineNo)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;=count({&amp;lt;InDateTime={'&amp;lt;=[30 min]'},OutDateTime={'&amp;gt;=[30 min]'}&amp;gt;}LineNo)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;but no joy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 20:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/write-count-if-with-set-analysis/m-p/457210#M170704</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-11-21T20:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: write count(if  with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/write-count-if-with-set-analysis/m-p/457211#M170705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count is a resource intensive function. You can use flags (set to 1 or 0) in the script to indicate if the LineNo is in a specific timebucket and then use those flags in your set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 22:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/write-count-if-with-set-analysis/m-p/457211#M170705</guid>
      <dc:creator />
      <dc:date>2012-11-21T22:42:22Z</dc:date>
    </item>
  </channel>
</rss>

