<?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: Issue with Join in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1899061#M74210</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138713"&gt;@jpjust&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It sounds like the "ObjectID" in your AppName has duplicates causing the [Session Count] to duplicate. Can you check the Data Model viewer under Preview and click on "ObjectID" in the "AppName" table. See if it says "Duplicates: True"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anthonyj_0-1646199077330.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73324i770E591E1BE1D02E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anthonyj_0-1646199077330.png" alt="anthonyj_0-1646199077330.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 05:34:20 GMT</pubDate>
    <dc:creator>anthonyj</dc:creator>
    <dc:date>2022-03-02T05:34:20Z</dc:date>
    <item>
      <title>Issue with Join</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1898811#M74195</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;I tried so hard but couldnt figure this out. Any help will be appreciated.&lt;/P&gt;
&lt;P&gt;I have 2 queries like below.&lt;/P&gt;
&lt;P&gt;[AppName]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;ObjectId as ObjectID,&lt;BR /&gt;"App Name" as AppName,&lt;BR /&gt;AppId as AppID,&lt;BR /&gt;_AppKeyNA&lt;BR /&gt;FROM [lib://QVD_FOLDER/Licenses/AppNameNA.QVD]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;[SessionNA]:&lt;BR /&gt;load&lt;BR /&gt;ObjectId as ObjectID&lt;BR /&gt;"Session Count"&lt;BR /&gt;&lt;BR /&gt;FROM [lib://QVD_FOLDER//Sessions.QVD]&lt;BR /&gt;(qvd) ;&lt;/P&gt;
&lt;P&gt;The above query gives me the correct number of records as below for an table. The datamodel will be 2 tables with join between ObjectID&lt;/P&gt;
&lt;P&gt;AppName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AppID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Session Count&lt;/P&gt;
&lt;P&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 66,559&lt;/P&gt;
&lt;P&gt;If I do an inner join (Because I want as a single table in datamodel), the session count just doubles (113,118)&lt;/P&gt;
&lt;P&gt;I tried left join and the session count doubles as well.&lt;/P&gt;
&lt;P&gt;Is there a way to keep as single table in datamodel while have the correct session count?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 16:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1898811#M74195</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2022-03-01T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Join</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1899061#M74210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138713"&gt;@jpjust&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It sounds like the "ObjectID" in your AppName has duplicates causing the [Session Count] to duplicate. Can you check the Data Model viewer under Preview and click on "ObjectID" in the "AppName" table. See if it says "Duplicates: True"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anthonyj_0-1646199077330.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73324i770E591E1BE1D02E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anthonyj_0-1646199077330.png" alt="anthonyj_0-1646199077330.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 05:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1899061#M74210</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2022-03-02T05:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Join</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1899493#M74257</link>
      <description>&lt;P&gt;Thanks Anthony. There are duplicates in AppName table, so I had to use distinct&amp;nbsp; on AppName table and then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(session count) with group by object ID on session table to fix the data duplication issue. Is there any other alternative approach to this?&lt;/P&gt;
&lt;P&gt;However, I don't see the preview with "Has Duplicates" view. I am using qliksense enterprise.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 17:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Join/m-p/1899493#M74257</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2022-03-02T17:04:13Z</dc:date>
    </item>
  </channel>
</rss>

