<?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: help with Max function combining sum calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879735#M997641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can use something like&lt;/P&gt;&lt;P&gt;=FirstSortedValue(&lt;SPAN style="color: #800000; font-family: Arial, sans-serif; font-size: 13.3333320617676px;"&gt;[Building Code]&lt;/SPAN&gt;,-aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333330154419px;"&gt;FinalTargetPrice2&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333320617676px; font-family: Arial, sans-serif; color: maroon;"&gt;[Building Code]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 10:01:42 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2015-06-23T10:01:42Z</dc:date>
    <item>
      <title>help with Max function combining sum calculation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879734#M997640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard showing cost of building maintenance.&amp;nbsp; These cost are worked out by the maintenance cost of each asset within a building (these come from asset table).&amp;nbsp; I can roll up costs (from assets table) to show the maintenance cost of each building quite easily and have done this within the analysis pages of my qlikview document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However on the main dashboard screen, I need to show just the name of the most expensive building to maintain (not the cost as these are shown elsewhere)&lt;/P&gt;&lt;P&gt;I'm trying to use something like the maxString function to show the building name, but doing so based on the sum of the maintenance cost, to get the most expensive building.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I've tried so far is &lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;=&lt;SPAN style="color: blue;"&gt;Maxstring&lt;/SPAN&gt;({&amp;lt;'=sum(FinalTargetPrice2)'&amp;gt;} &lt;SPAN style="color: maroon;"&gt;[Building Code]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this only shows the maxString of buildings so the result it gives me the highest building name (from A-Z) and ignores the part where I'm trying to display the building name based on sum of FinalTargetPrice field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone point me in direction that may help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879734#M997640</guid>
      <dc:creator />
      <dc:date>2015-06-23T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: help with Max function combining sum calculation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879735#M997641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can use something like&lt;/P&gt;&lt;P&gt;=FirstSortedValue(&lt;SPAN style="color: #800000; font-family: Arial, sans-serif; font-size: 13.3333320617676px;"&gt;[Building Code]&lt;/SPAN&gt;,-aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333330154419px;"&gt;FinalTargetPrice2&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333320617676px; font-family: Arial, sans-serif; color: maroon;"&gt;[Building Code]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879735#M997641</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-06-23T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with Max function combining sum calculation</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879736#M997642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great that worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks Liron &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 10:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-Max-function-combining-sum-calculation/m-p/879736#M997642</guid>
      <dc:creator />
      <dc:date>2015-06-23T10:08:42Z</dc:date>
    </item>
  </channel>
</rss>

