<?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 Sum field by another distinct field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283415#M1201915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know where you wanna apply this.....&lt;/P&gt;&lt;P&gt;but if you create a chart (dynamic table) with dimension is Claim ID with expression&lt;/P&gt;&lt;P&gt;=sum(DISTINCT [Number of Rejections])&lt;/P&gt;&lt;P&gt;show results what i think you want!&lt;/P&gt;&lt;P&gt;If not, can you explain more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 14:23:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-21T14:23:22Z</dc:date>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283414#M1201914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to write an expression along the lines of&lt;/P&gt;&lt;P&gt;sum the [Number of Rejections] for every distinct [Claim ID]. The data is pivoted so you'll see something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="417"&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 59pt;" width="79" /&gt;&lt;COL style="width: 71pt;" width="95" /&gt;&lt;COL style="width: 86pt;" width="115" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt; width: 48pt;" width="64"&gt;Claim ID&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;CPT&lt;/TD&gt;&lt;TD class="xl65" style="width: 59pt;" width="79"&gt;Time Frame&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;Number of Rejections&lt;/TD&gt;&lt;TD style="width: 86pt;" width="115"&gt;Number of Denials&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD class="xl65"&gt;T2&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;TD class="xl65"&gt;T2&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;TD class="xl65"&gt;T3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;TD class="xl65"&gt;T4&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;13&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD class="xl65"&gt;T2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD class="xl65"&gt;T3&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;51&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;51&lt;/TD&gt;&lt;TD class="xl65"&gt;T2&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;51&lt;/TD&gt;&lt;TD class="xl65"&gt;T3&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;52&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD class="xl65"&gt;T1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD class="xl65"&gt;T2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="height: 12.75pt;"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD class="xl65"&gt;T3&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Where the number of rejections is Claim specific and the number of denials is cpt specific.&lt;/P&gt;&lt;P&gt;For this example, I'm looking to get a sum of the total number of rejections, which should be 3 (2 for claim 1, 0 for claim 2, and 1 for claim 3).&lt;/P&gt;&lt;P&gt;I was already able to get the number of denials by using set analysis something like (=sum({$&amp;lt;[TimeFrame]={'Time Frame 1'}, [ICDVariable Time]={'ICD1'}&amp;gt;} [Number of Denials Time]))&lt;/P&gt;&lt;P&gt;But I see it's not that simple for the claim level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;~Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 13:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283414#M1201914</guid>
      <dc:creator />
      <dc:date>2010-10-21T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283415#M1201915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know where you wanna apply this.....&lt;/P&gt;&lt;P&gt;but if you create a chart (dynamic table) with dimension is Claim ID with expression&lt;/P&gt;&lt;P&gt;=sum(DISTINCT [Number of Rejections])&lt;/P&gt;&lt;P&gt;show results what i think you want!&lt;/P&gt;&lt;P&gt;If not, can you explain more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283415#M1201915</guid>
      <dc:creator />
      <dc:date>2010-10-21T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283416#M1201916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The behavior that expression gives isn't what I hoped. If I have&lt;/P&gt;&lt;P&gt;claim no rejections&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;2 1&lt;/P&gt;&lt;P&gt;3 2&lt;/P&gt;&lt;P&gt;4 3&lt;/P&gt;&lt;P&gt;5 1&lt;/P&gt;&lt;P&gt;6 2&lt;/P&gt;&lt;P&gt;The value it returns is 6. Which means it's taking the unique values and adding those up, not adding the numbers up by unique claims.&lt;/P&gt;&lt;P&gt;My dimension is more of a label: ='Number of Rejections (Claim Level):' So really I'm just looking for one value to show at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283416#M1201916</guid>
      <dc:creator />
      <dc:date>2010-10-21T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283417#M1201917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i dont understand what you wanna...&lt;/P&gt;&lt;P&gt;I made this example ...i don´t know if it is helpfull for you...&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/8204.teste.zip:550:0]&lt;/P&gt;&lt;P&gt;I´ve sended zip file because here is blocked to send .qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283417#M1201917</guid>
      <dc:creator />
      <dc:date>2010-10-21T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283418#M1201918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't view the file because I'm using the personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is write an expression that will select distinct values of Claim ID and then reference to the corresponding value in number of rejections... and then sum up those values.&lt;/P&gt;&lt;P&gt;I don't want it to subtotal the number of rejections by distinct claim then add up the subtotals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283418#M1201918</guid>
      <dc:creator />
      <dc:date>2010-10-21T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283419#M1201919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started playing around with what you suggested, and I was able to come close to what I wanted, I posted a picture of what I'm looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the [Claim ID] as the dimension and used the expression sum(distinct [Number of Rejections]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the totals label appropriately, but made the total, total by rows and not by expressions.&lt;/P&gt;&lt;P&gt;While this number is what I want, i don't want the actual data showing. Is there a way to hide that and only have the totals showing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there a better solutions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Nevermind, I figured this out too. I went to the presentation tab and checked on 'Max Number' and then entered '0' for the max number of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 15:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283419#M1201919</guid>
      <dc:creator />
      <dc:date>2010-10-21T15:31:09Z</dc:date>
    </item>
    <item>
      <title>Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283420#M1201920</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;In Pivot table in dimensions you should add claim_id, in expressions&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;[Number of Rejections]&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/2821.a.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/2821.a.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 15:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283420#M1201920</guid>
      <dc:creator />
      <dc:date>2010-10-21T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum field by another distinct field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283421#M1201921</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;I have a similar situation.&amp;nbsp; However, I cannot put the "Claim ID" field as a dimension as I have over a 1 million rows of data.&amp;nbsp; Would this still work? SUM(DISTINCT [....])?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 08:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-field-by-another-distinct-field/m-p/283421#M1201921</guid>
      <dc:creator />
      <dc:date>2012-08-02T08:46:20Z</dc:date>
    </item>
  </channel>
</rss>

