<?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: Sum distinct? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350740#M415196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about&lt;/P&gt;&lt;P&gt;sum(distinct Field)&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2017 12:36:41 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2017-06-23T12:36:41Z</dc:date>
    <item>
      <title>Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350739#M415195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a sum distinct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple items related to an order, and I will like to sum the orders just once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350739#M415195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T12:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350740#M415196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about&lt;/P&gt;&lt;P&gt;sum(distinct Field)&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350740#M415196</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-23T12:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350741#M415197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I didn't know that I can use the word and that's it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is the expression that I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Escalations_QV.Escalated State]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Pre-Escalation"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Invalid Escalation"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Escalations_QV.Closure Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Not an Escalation"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Transferred to Duty Manager"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Transferred to At Risk"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Escalations_QV.Escalated Case Count]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I need to add distinct by the ID. How can I do it in this expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350741#M415197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T12:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350742#M415198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cannot see any ID field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Escalations_QV.Escalated State]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"Pre-Escalation"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"Invalid Escalation"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Escalations_QV.Closure Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"Not an Escalation"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"Transferred to Duty Manager"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"Transferred to At Risk"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;}&amp;gt;}DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Escalations_QV.Escalated Case Count]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350742#M415198</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-23T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350743#M415199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're right, in the expression there is not the ID field, however I will like to add it, because if I use the distinct on Escalated Case Count as this is 1 or 0, it will only count it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will like to add the ID in any place in the expression, to use the distinct. Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350743#M415199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T12:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350744#M415200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure if i correctly understood your requirement.&lt;/P&gt;&lt;P&gt;how do you know which ordervalue per ID is the correct one to pick?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u provide an detailed example and a sample qvw to play with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350744#M415200</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-06-23T14:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350745#M415201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can see, you want to fix something that seems broken from the start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you duplicate your values? Can you not keep them distinct in an Orders table, and put all items in a linked table where they can do no harm? Or drop the Order total and sum() it each time from the parts? Sum() is awfully fast.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct/m-p/1350745#M415201</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-06-23T14:17:18Z</dc:date>
    </item>
  </channel>
</rss>

