<?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: Can't get proper unique ID count in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239986#M6621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are a life saver. Thanks! That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 23:02:35 GMT</pubDate>
    <dc:creator>michael_andrews</dc:creator>
    <dc:date>2017-02-08T23:02:35Z</dc:date>
    <item>
      <title>Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239977#M6612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp; pivot table and I'm trying to count unique ids vs a form. However, my count is not coming out as expected. Can someone tell me what I'm missing? I'm using the formula Count(distinct ExamID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for what my pivot table looks like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sql equivalent would be SELECT COUNT(1) FROM Exam WHERE Exam_Form = 'Rev15_FormD' GROUP BY ExamID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239977#M6612</guid>
      <dc:creator>michael_andrews</dc:creator>
      <dc:date>2017-02-08T19:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239978#M6613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have ExamID in different tables? Can one of those tables have more than 350 distinct ExamIDs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239978#M6613</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239979#M6614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the exam ids would be in the same table as the form name. The table absolutely could have more than that due to there being multiple forms. I guess I was i'm trying to do is say, for that column under the Rev15_FormD, I know for a fact there are 350 unique IDs, but I'm getting the total number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason they're high is because each exam has multiple responses associated with it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239979#M6614</guid>
      <dc:creator>michael_andrews</dc:creator>
      <dc:date>2017-02-08T20:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239980#M6615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not count keyfields&lt;/P&gt;&lt;P&gt;Qlikview can't decide field from which table to count on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If exam I'd is a&amp;nbsp; keyfield and you want to count on the same field&lt;/P&gt;&lt;P&gt;Load another column with examI'd with a different alias specific to that Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table1 can have examid, examid as examid_t1&lt;/P&gt;&lt;P&gt;Table 2 can have examid,examid as examid_t2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both your tables are associated and you can choose to count values from table 1 ro table 2 using the alias fields &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239980#M6615</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-02-08T20:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239981#M6616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formid&amp;gt;&amp;gt; relates to response Id&amp;gt;&amp;gt; relates to examid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this how you are associating the data? Then we wil need&amp;nbsp; to change it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239981#M6616</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-02-08T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239982#M6617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Distinct count should not be a problem....&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3734"&gt;Count or Count distinct?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239982#M6617</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T20:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239983#M6618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The exam table has exam id which would be a PK. The exam table also has just a text field called exam_form, which are varchars, but do match up. There is then an item response table where each item response has a FK to exam id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think of it in terms of taking an exam (the exam table) and the questions you get are in a different order or different questions from the person next to you (the exam form) and then each question you answer would be it's own record (item response) and that would link to your exam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think I might have something wrong with my data, because when I hard filter on say, 10 exams, I do get a count of 10 as expected. So I'm going to investigate further. Thanks for your help though, it got me headed in the right direction. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239983#M6618</guid>
      <dc:creator>michael_andrews</dc:creator>
      <dc:date>2017-02-08T20:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239984#M6619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I think I have found my problem, I'm just not quite sure how I handle this. The issue I'm running into is, we have exams in our data set that have 0 responses. So, I need to only count exams where there is at least one response. I.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM exam WHERE exam_form = 'Rev15_formD' returns the 2549 number I was getting, but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SELECT * FROM exam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INNER JOIN exam_item ON item_exam_id = exam_id&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE exam_form = 'Rev15_formD'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gives me the 350 number I'm expecting. So, &lt;/P&gt;&lt;P&gt;Aggr(max(ItemID), ExamId) but that is returning nothing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239984#M6619</guid>
      <dc:creator>michael_andrews</dc:creator>
      <dc:date>2017-02-08T21:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239985#M6620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 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;ExamID = {"=Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ItemID&lt;/SPAN&gt;) &amp;gt; 0"}&amp;gt;} ExamID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only could those ExamID where the Count of ItemID is greater than 0. Is that what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239985#M6620</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T22:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239986#M6621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are a life saver. Thanks! That worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239986#M6621</guid>
      <dc:creator>michael_andrews</dc:creator>
      <dc:date>2017-02-08T23:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239987#M6622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close this thread down by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1239987#M6622</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T23:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get proper unique ID count</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1764845#M13595</link>
      <description>&lt;P&gt;hello Sunny,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it sounds like you are an expert in Qlik Sense. Do you mind to take a look at my question when you are available? thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 06:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-proper-unique-ID-count/m-p/1764845#M13595</guid>
      <dc:creator>JL1996</dc:creator>
      <dc:date>2020-11-27T06:28:00Z</dc:date>
    </item>
  </channel>
</rss>

