<?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: Ignore duplicates in a chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546698#M109966</link>
    <description>&lt;P&gt;Your data-structure seems to be a hierarchy. This kind of structure is quite difficult to evaluate with classical aggregations and conditional queries. Mostly it will be necessary to resolve the data-structure with specialized hierarchy approaches. A good starting point for the matter is:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Member-Articles/Hierarchies/ta-p/1487801" target="_blank"&gt;Hierarchies - Qlik Community - 1487801&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2026 07:33:50 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2026-04-13T07:33:50Z</dc:date>
    <item>
      <title>Ignore duplicates in a chart</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546685#M109963</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm no set analysis expert and I'm struggling to find a solution to this problem, so here I am!&lt;BR /&gt;&lt;BR /&gt;I have a dataset with duplicate values. My dataset has a PersonId and a RelationshipType, each PersonId can have multiple, different RelationshipTypes. Let's say my table is as follows:&lt;/P&gt;
&lt;TABLE width="234"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="83"&gt;PersonID&lt;/TD&gt;
&lt;TD width="151"&gt;RelationshipType&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;772&lt;/TD&gt;
&lt;TD&gt;Partner&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;772&lt;/TD&gt;
&lt;TD&gt;Child&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;771&lt;/TD&gt;
&lt;TD&gt;Parent&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;773&lt;/TD&gt;
&lt;TD&gt;Other&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;774&lt;/TD&gt;
&lt;TD&gt;Child&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;775&lt;/TD&gt;
&lt;TD&gt;Other&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;775&lt;/TD&gt;
&lt;TD&gt;Child&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want a visualisation to return these results - i.e., only counting each person once and excluding duplicates, returning the first RelationshipType, sorted on PersonId:&lt;/P&gt;
&lt;TABLE width="242"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;RelationshipType&lt;/TD&gt;
&lt;TD width="122"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;Child&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;Partner&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;Parent&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;Other&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;TOTAL&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I'm more than comfortable with Count (DISTINCT PersonId), which returns the unique count of PersonId, so the total displays the correct number when combined with RelationshipType, however, understandably, I currently get this:&lt;/P&gt;
&lt;TABLE width="194"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;RelationshipType&lt;/TD&gt;
&lt;TD width="74"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Child&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Partner&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Parent&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Other&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="120"&gt;TOTAL&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Is there some set analysis statement to achieve this? I've tried so many combinations of functions and syntax but with no luck and I'm starting to feel like I'm banging my head up against a brick wall!&lt;/P&gt;
&lt;P&gt;PS - my dataset is around 400,000 records per month and contains over 50 variables, but this is a simplified version! I also need the duplicates for every other visualisation in my app, so I can't remove them in the data load.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Jen&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 01:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546685#M109963</guid>
      <dc:creator>JenDM27</dc:creator>
      <dc:date>2026-04-13T01:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore duplicates in a chart</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546688#M109964</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/366632"&gt;@JenDM27&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this?&lt;BR /&gt;&lt;BR /&gt;1. Data Modeling :&amp;nbsp;We need to make flag about data duplicate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hanna_choi_0-1776045653189.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187751i757A5ABAE6C06DEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hanna_choi_0-1776045653189.png" alt="hanna_choi_0-1776045653189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Data Visualization&amp;nbsp; :&amp;nbsp;Count({&amp;lt;Dup_Flag = {'1'}&amp;gt;}distinct PersonID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hanna_choi_0-1776045935138.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187752i67E0EC1AEE72F21B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hanna_choi_0-1776045935138.png" alt="hanna_choi_0-1776045935138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 02:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546688#M109964</guid>
      <dc:creator>hanna_choi</dc:creator>
      <dc:date>2026-04-13T02:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore duplicates in a chart</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546698#M109966</link>
      <description>&lt;P&gt;Your data-structure seems to be a hierarchy. This kind of structure is quite difficult to evaluate with classical aggregations and conditional queries. Mostly it will be necessary to resolve the data-structure with specialized hierarchy approaches. A good starting point for the matter is:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Member-Articles/Hierarchies/ta-p/1487801" target="_blank"&gt;Hierarchies - Qlik Community - 1487801&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 07:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-duplicates-in-a-chart/m-p/2546698#M109966</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-04-13T07:33:50Z</dc:date>
    </item>
  </channel>
</rss>

