<?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 if statement to select highest value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233675#M85205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not explaning enough. Right&lt;BR /&gt;&lt;BR /&gt;-Im pulling data from a table (SQI). to get this data im using a spreadsheet- so the line spreadsheet.data="MD" is looking for things on the SQI by filtering through the spreadsheet. Pulling the data, which is categorised as MD.&lt;BR /&gt;&lt;BR /&gt;-On qlikview, I have a table that tells you all the months and what the MD is for each month. i'm trying to create a column in which I have the max MD, so users can select this instead of filtering through the report looking for the highest.&lt;BR /&gt;&lt;BR /&gt;-On the sqi table there are several MD characteristics, thus why I'm using sum(). When I use max, it selects the highest MD, but not the highest sum of MD.&lt;BR /&gt;&lt;BR /&gt;a sample of data-&lt;BR /&gt;&lt;BR /&gt;Month/MD&lt;BR /&gt;Jan- 160&lt;BR /&gt;Feb- 120&lt;BR /&gt;Mar- 0&lt;BR /&gt;Apr- 301&lt;BR /&gt;May- 250&lt;BR /&gt;Jun- 279&lt;BR /&gt;Jul- 134&lt;BR /&gt;Aug- 18&lt;BR /&gt;&lt;BR /&gt;Hope this is enough, thanks for your replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 09:23:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-12T09:23:39Z</dc:date>
    <item>
      <title>if statement to select highest value</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233672#M85202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;i am working on a piece of code in which I want to select the highest value. Max() should by all means work however I pulling the data in from another table in which it holds several of the data types I am looking for.&lt;BR /&gt;&lt;BR /&gt;Eg. I am looking for MD, and there are 3 MD characteristics in the spreadsheet so using sum will give me 301. 301 is the highest value so I want to show that but using max() gives me 180, one of the vales for MD. Using max(sum()) is obviously garbage.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me on this, is there a way of using an if statement to recognise that 301 is the highest value?&lt;BR /&gt;&lt;BR /&gt;My code to get the 301 is sum{&amp;lt;SPREADSHEET.Data={"MD"}&amp;gt;} BILL_SQ)&lt;/P&gt;&lt;P&gt;.Thanks in advance,&lt;BR /&gt;mckay9999&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 11:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233672#M85202</guid>
      <dc:creator />
      <dc:date>2010-10-11T11:12:29Z</dc:date>
    </item>
    <item>
      <title>if statement to select highest value</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233673#M85203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm betting that max(aggr(sum())) is involved, but it's very unclear to me from your explanation what you specifically need. Possibly this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;max(aggr(sum(BILL_SQ),SPREADSHEET.Data))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 00:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233673#M85203</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-12T00:56:04Z</dc:date>
    </item>
    <item>
      <title>if statement to select highest value</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233674#M85204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you explain the issue with some sample data values.......&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 09:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233674#M85204</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-10-12T09:00:16Z</dc:date>
    </item>
    <item>
      <title>if statement to select highest value</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233675#M85205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not explaning enough. Right&lt;BR /&gt;&lt;BR /&gt;-Im pulling data from a table (SQI). to get this data im using a spreadsheet- so the line spreadsheet.data="MD" is looking for things on the SQI by filtering through the spreadsheet. Pulling the data, which is categorised as MD.&lt;BR /&gt;&lt;BR /&gt;-On qlikview, I have a table that tells you all the months and what the MD is for each month. i'm trying to create a column in which I have the max MD, so users can select this instead of filtering through the report looking for the highest.&lt;BR /&gt;&lt;BR /&gt;-On the sqi table there are several MD characteristics, thus why I'm using sum(). When I use max, it selects the highest MD, but not the highest sum of MD.&lt;BR /&gt;&lt;BR /&gt;a sample of data-&lt;BR /&gt;&lt;BR /&gt;Month/MD&lt;BR /&gt;Jan- 160&lt;BR /&gt;Feb- 120&lt;BR /&gt;Mar- 0&lt;BR /&gt;Apr- 301&lt;BR /&gt;May- 250&lt;BR /&gt;Jun- 279&lt;BR /&gt;Jul- 134&lt;BR /&gt;Aug- 18&lt;BR /&gt;&lt;BR /&gt;Hope this is enough, thanks for your replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 09:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement-to-select-highest-value/m-p/233675#M85205</guid>
      <dc:creator />
      <dc:date>2010-10-12T09:23:39Z</dc:date>
    </item>
  </channel>
</rss>

