<?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(A) where B = Max(B) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4045#M609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"&gt;If you only need to consider one value for max(B), you can do&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;({$&amp;lt;B&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;={$(=Max(B&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12pt; font-family: 'courier new', courier;"&gt;))}&amp;gt;}A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you need a different max(B) for each dimension row, you'll need to code it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;Sum(If(B=aggr(max(B), dimension), A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where dimension is the chart dimension(s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 00:19:02 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-01-23T00:19:02Z</dc:date>
    <item>
      <title>sum(A) where B = Max(B)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4042#M606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If I replace Max(B) with the maximum value of B in the following line.&lt;/SPAN&gt;&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;B&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={Max(B&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)}&amp;gt;}A) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It Works as desired but the Max value of B can change and it is not practical to update manually&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 21:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4042#M606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-19T21:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: sum(A) where B = Max(B)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4043#M607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to make consultant for irrespect of filters you need {1}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 00:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4043#M607</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-23T00:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum(A) where B = Max(B)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4044#M608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a dollar sign expansion&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: #3d3d3d;"&gt;({$&amp;lt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={$(=Max(B)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)}&amp;gt;}A)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 00:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4044#M608</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-01-23T00:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: sum(A) where B = Max(B)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4045#M609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"&gt;If you only need to consider one value for max(B), you can do&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: 'courier new', courier;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;({$&amp;lt;B&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;={$(=Max(B&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12pt; font-family: 'courier new', courier;"&gt;))}&amp;gt;}A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you need a different max(B) for each dimension row, you'll need to code it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;Sum(If(B=aggr(max(B), dimension), A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where dimension is the chart dimension(s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 00:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-A-where-B-Max-B/m-p/4045#M609</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-01-23T00:19:02Z</dc:date>
    </item>
  </channel>
</rss>

