<?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: How to get distinct record number from a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561650#M209627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables in my app with same field of hospitalaccountID - table1 and table2. There are multiple records for a single hospital account id in table 2. I want to count unique hospitalaccountid in table2. I think the two tables will be joined by common data field - hospitalaccountid. Can we access data field by table name or is there any other way around? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Nov 2013 19:21:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-01T19:21:22Z</dc:date>
    <item>
      <title>How to get distinct record number from a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561648#M209625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is the first time I add multiple tables into Qlikview. I used to merge all the data into one query by all kinds of joins. My questions is how to get distinct number of record from one of the tables. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 18:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561648#M209625</guid>
      <dc:creator />
      <dc:date>2013-11-01T18:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get distinct record number from a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561649#M209626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass whatever field that makes your record distinct into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor443"&gt;&lt;/A&gt;&lt;A name="fieldvaluecount("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;fieldvaluecount(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the number of distinct values in a field. &lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a quoted literal). &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;let x = fieldvaluecount('Alfa');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 19:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561649#M209626</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-01T19:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get distinct record number from a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561650#M209627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables in my app with same field of hospitalaccountID - table1 and table2. There are multiple records for a single hospital account id in table 2. I want to count unique hospitalaccountid in table2. I think the two tables will be joined by common data field - hospitalaccountid. Can we access data field by table name or is there any other way around? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 19:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561650#M209627</guid>
      <dc:creator />
      <dc:date>2013-11-01T19:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get distinct record number from a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561651#M209628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you load table2 in first in your load script, then use&lt;/P&gt;&lt;P&gt;let x = fieldvaluecount('hospitalaccountID');&lt;/P&gt;&lt;P&gt;you will store the number of distinct hospitalaccountID in variable x&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 19:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561651#M209628</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-11-01T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get distinct record number from a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561652#M209629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have another field in the same table that doesn't contain null values you can use that in an expression like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;OtherFieldInSameTable={'*'}&amp;gt;} distinct hospitalaccountID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 10:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-distinct-record-number-from-a-table/m-p/561652#M209629</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-02T10:02:13Z</dc:date>
    </item>
  </channel>
</rss>

