<?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: Count in one table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696933#M251734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the 2 tables and include a column that identifies 'tableA' and 'tableB' you will then be able to use set analysis to count on the stores filtered by either tablea or tableb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$ &amp;lt;table={'tableB'}&amp;gt;} StoreId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 10:12:54 GMT</pubDate>
    <dc:creator>ogster1974</dc:creator>
    <dc:date>2014-09-15T10:12:54Z</dc:date>
    <item>
      <title>Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696932#M251733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two table linking on StoreIDs and want to count the number of store in Table B e.g Count(distinct StoreID) but it duplicates counts due to the fact that Table A has more than 1 records for a specific store,how can i go about counting stores only in table A..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696932#M251733</guid>
      <dc:creator />
      <dc:date>2014-09-15T10:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696933#M251734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the 2 tables and include a column that identifies 'tableA' and 'tableB' you will then be able to use set analysis to count on the stores filtered by either tablea or tableb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$ &amp;lt;table={'tableB'}&amp;gt;} StoreId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696933#M251734</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2014-09-15T10:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696934#M251735</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;You could use a Flag field in the table you want to count, and then use Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Flag=1&amp;gt;}distinct StoreID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Angel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696934#M251735</guid>
      <dc:creator />
      <dc:date>2014-09-15T10:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696935#M251736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count on another field that exists only in one table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696935#M251736</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-15T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696936#M251737</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *, 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;StoreID, StoreName&lt;BR /&gt;1, XXX&lt;BR /&gt;2, YYY&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;TableA:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;StoreID, Values&lt;BR /&gt;1,1000&lt;BR /&gt;1,2000&lt;BR /&gt;1,3000&lt;BR /&gt;2,2000&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= Sum(flag)&amp;nbsp; //gives 2 as result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Simply use, = Count(distinct StoreID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 10:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696936#M251737</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-09-15T10:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696937#M251738</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;even if i flag it on one table ,it still brings multiple due to the fact that the other table has more records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 14:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696937#M251738</guid>
      <dc:creator />
      <dc:date>2014-09-15T14:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696938#M251739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than load separate sources concatenate the into 1 source.&amp;nbsp; In my example sales and stock I have concatenated in the data but can be done in the load to.&amp;nbsp; Identify the source (TableA/TableB) and the StoreId the rest of the columns are source specific.&amp;nbsp; Note tableB has duplicate StoreIds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its then easy to use the Source as a dimension in charts/table and COUNT(DISTINCT [%StoreKey]) or if you only need the count from one source use set analysis COUNT(DISTINCT {$ &amp;lt;Source={'TableA'}&amp;gt;} [%StoreKey])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this has helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-one-table/m-p/696938#M251739</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2014-09-16T14:40:06Z</dc:date>
    </item>
  </channel>
</rss>

