<?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: 1 is to Many Chart Issue when using Distinct on expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173563#M885682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the red rows indicates that the Document is deleted, can I have this output instead?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="111.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136914_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 07:15:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-09T07:15:31Z</dc:date>
    <item>
      <title>1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173557#M885676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qv Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I used an aggregation and distinct on an variable which give me the right figures I wanted but when I plot it on the table as an &lt;SPAN style="font-size: 13.3333px;"&gt;expression &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;with the document numbers, &lt;SPAN style="font-size: 13.3333px;"&gt;it shows a misleading result. please see result below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="111.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136911_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The Correct PR Unit figure is 1500, I want my output to be like the one below&lt;IMG alt="111.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136912_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression is : Sum(aggr(Sum(Distinct [PR Unit]), [PR No], [Item Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173557#M885676</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: 1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173558#M885677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are the dimensions using in your chart?&lt;/P&gt;&lt;P&gt;&lt;/P&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;aggr(Sum(Distinct [PR Unit]), [PR No], [PO No])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 04:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173558#M885677</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2016-09-09T04:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: 1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173559#M885678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&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; Sum(aggr(&lt;STRONG&gt;NoDistinct&lt;/STRONG&gt; Sum(Distinct [PR Unit]), [PR No], [Item Number]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 04:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173559#M885678</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-09-09T04:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: 1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173560#M885679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Perhaps you need something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Distinct TOTAL [PR No])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Distinct TOTAL&amp;lt;[PO No]&amp;gt; [PR No])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If you need the Distinct to apply at a lower level, then you can use Aggr(), but y&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ou need to include ALL the chart dimensions as dimensions for your Aggr(), in addition to any dimensions the expression requires. But this can affect the result for distinct if you use too many dimensions. You might need something like this to fix that:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(TOTAL&amp;lt;[PR No]&amp;gt; Aggr(Sum(Distinct [PR Unit]), [PR No], [Item Number], [PO No]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(assuming the values in the PR Unit column are totals for a PR No)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 05:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173560#M885679</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-09T05:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: 1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173561#M885680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 05:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173561#M885680</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T05:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: 1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173562#M885681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use dynamic dimensions so a lot of field can be added as dimension on my chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173562#M885681</guid>
      <dc:creator />
      <dc:date>2016-09-09T07:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: 1 is to Many Chart Issue when using Distinct on expression</title>
      <link>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173563#M885682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the red rows indicates that the Document is deleted, can I have this output instead?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="111.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136914_111.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/1-is-to-Many-Chart-Issue-when-using-Distinct-on-expression/m-p/1173563#M885682</guid>
      <dc:creator />
      <dc:date>2016-09-09T07:15:31Z</dc:date>
    </item>
  </channel>
</rss>

