<?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 How to count occurrences of something in SQL load? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376123#M140190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SQL SELECT * FROM Users;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;..and I know the &lt;EM&gt;Users &lt;/EM&gt;has a column &lt;EM&gt;Active &lt;/EM&gt;where each record contains a string that is either &lt;EM&gt;'true' &lt;/EM&gt;or &lt;EM&gt;'false' .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the number of loaded occurrences of the string &lt;EM&gt;'true'&lt;/EM&gt; in that column, so that I can show the full count &lt;EM&gt;regardless&lt;/EM&gt; of how the user makes selections etc. when that data is displayed on a Table Box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Text Object with something like &lt;EM&gt;=Count(if(Active='true', 1)) &lt;/EM&gt;won't do because it changes based on selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 09:46:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-08T09:46:40Z</dc:date>
    <item>
      <title>How to count occurrences of something in SQL load?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376123#M140190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SQL SELECT * FROM Users;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;..and I know the &lt;EM&gt;Users &lt;/EM&gt;has a column &lt;EM&gt;Active &lt;/EM&gt;where each record contains a string that is either &lt;EM&gt;'true' &lt;/EM&gt;or &lt;EM&gt;'false' .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the number of loaded occurrences of the string &lt;EM&gt;'true'&lt;/EM&gt; in that column, so that I can show the full count &lt;EM&gt;regardless&lt;/EM&gt; of how the user makes selections etc. when that data is displayed on a Table Box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Text Object with something like &lt;EM&gt;=Count(if(Active='true', 1)) &lt;/EM&gt;won't do because it changes based on selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 09:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376123#M140190</guid>
      <dc:creator />
      <dc:date>2012-08-08T09:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count occurrences of something in SQL load?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376124#M140191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well.. you can always ignore the selections like this... &lt;EM&gt;=Count({1} if(Active='true', 1))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="xpndit_tooltip" style="display: none; position: absolute; overflow: hidden; max-width: 400px; background-color: #fefefe; border: 1px solid #aaaaaa; padding: 4px 8px; font-size: 11px; letter-spacing: 0px; color: #000000; z-index: 5000; line-height: 120%; text-align: left; border-radius: 5px 5px 5px 5px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 09:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376124#M140191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-08T09:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to count occurrences of something in SQL load?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376125#M140192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; you can use count({1}if(Active ='true',1))&lt;/P&gt;&lt;P&gt; or in script seet flag like or separate the active value is true&lt;/P&gt;&lt;P&gt;load * ,if(Active = `true`,Actvie) As actvietrue;&lt;/P&gt;&lt;P&gt;select *&amp;nbsp; Frrom tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 09:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-occurrences-of-something-in-SQL-load/m-p/376125#M140192</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-08T09:54:20Z</dc:date>
    </item>
  </channel>
</rss>

