<?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 Need help with aggregation function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296315#M109891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with a formula in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset that includes programmes, projects and associated risks therein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use a MAX function nested within some IF statements, but cannot seem to get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically.&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;the IMMEDIATE_PARENT_PROGRAM is null&lt;/P&gt;&lt;P&gt;the IS_PROGRAM&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;STATUS_CODE is 'Open' or 'In Progress'&lt;/P&gt;&lt;P&gt;the TYPE_CODE = 'Risk'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the resulting data I then need to MAX so that I can find the highest RIM_PRIORITY_NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help as i'm getting into a bit of a mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have attached a qvw wit it all in.&lt;/P&gt;&lt;P&gt;the two bottom text boxes was what I was starting with (the one on the right I created just to play around with a formula that works. It will eventually end up in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2011 09:26:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-04T09:26:34Z</dc:date>
    <item>
      <title>Need help with aggregation function</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296315#M109891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with a formula in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset that includes programmes, projects and associated risks therein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use a MAX function nested within some IF statements, but cannot seem to get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically.&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;the IMMEDIATE_PARENT_PROGRAM is null&lt;/P&gt;&lt;P&gt;the IS_PROGRAM&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;STATUS_CODE is 'Open' or 'In Progress'&lt;/P&gt;&lt;P&gt;the TYPE_CODE = 'Risk'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the resulting data I then need to MAX so that I can find the highest RIM_PRIORITY_NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help as i'm getting into a bit of a mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have attached a qvw wit it all in.&lt;/P&gt;&lt;P&gt;the two bottom text boxes was what I was starting with (the one on the right I created just to play around with a formula that works. It will eventually end up in the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 09:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296315#M109891</guid>
      <dc:creator />
      <dc:date>2011-11-04T09:26:34Z</dc:date>
    </item>
    <item>
      <title>Need help with aggregation function</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296316#M109892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that it hard to handle null value with your current structure tables. I check data in table PROJECTS than notice that their no null value found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test with this set analysis after you re-structure your table : =MAX({&amp;lt;STATUS_CODE={'Open','In Progress'},TYPE_CODE={'Risk'},IMMEDIATE_PARENT_PROGRAM={"&amp;gt;=1"}&amp;gt;} RIM_PRIORITY_NUMBER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 10:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296316#M109892</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2011-11-04T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Need help with aggregation function</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296317#M109893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sokkorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;&lt;P&gt;I havent ever tried including expressions like that within those functions - and always seem to end up embedding loads of IF statements..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to work like a charm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 10:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-aggregation-function/m-p/296317#M109893</guid>
      <dc:creator />
      <dc:date>2011-11-04T10:30:25Z</dc:date>
    </item>
  </channel>
</rss>

