<?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: Max Value based on set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657178#M49167</link>
    <description>&lt;P&gt;May be try adding a DISTINCT&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=FirstSortedValue(DISTINCT [CP_ExamCombined], -Aggr(RangeSum(Count({&amp;lt;[CP_DateofReport] = {'04/12/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;}[CP_EventKey]), -Count({&amp;lt;[CP_DateofReport] = {'27/11/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;} [CP_EventKey])), [CP_ExamCombined]), 2)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 Dec 2019 15:30:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-12-12T15:30:18Z</dc:date>
    <item>
      <title>Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1656537#M49096</link>
      <description>&lt;P&gt;Hi guys - I'm trying to work out how to show, on a text box, the field which relates to the MAX value within my data.&lt;/P&gt;&lt;P&gt;I currently have the following set analysis:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;CP_DateofReport={'04/12/2019'},CP_ReportName={'Req to Att'}&amp;gt;}CP_EventKey)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Count({&amp;lt;CP_DateofReport={'27/11/2019'},CP_ReportName={'Req to Att'}&amp;gt;}CP_EventKey)(CP_DateofReport is the date of each report which goes out weekly; CP_ReportName is the specific report I need to refer to; CP_EventKey is the unique ID of each patient and I use this to count).&lt;/P&gt;&lt;P&gt;The difference between the two counts for each report gives me a value - the highest of these values will be what I want to show as being the MAX - as an example, if my value was 7, I'd like the NAME of the exam (CP_ExamCombined) to show in the text box rather than the value itself...&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1656537#M49096</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2024-11-16T03:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1656555#M49097</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue(CP_ExamCombined, -Aggr(RangeSum(Count({&amp;lt;CP_DateofReport = {'04/12/2019'}, CP_ReportName = {'Req to Att'}&amp;gt;}CP_EventKey), -Count({&amp;lt;CP_DateofReport = {'27/11/2019'}, CP_ReportName = {'Req to Att'}&amp;gt;} CP_EventKey), CP_ExamCombined))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1656555#M49097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-11T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1656941#M49132</link>
      <description>&lt;P&gt;Hi Sunny - this is resulting in an error in the text box:&lt;/P&gt;&lt;P&gt;'Error:&amp;nbsp; Error in expression:&amp;nbsp; Nested aggregation not allowed'&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;=FirstSortedValue([CP_ExamCombined], -Aggr(RangeSum(Count({&amp;lt;[CP_DateofReport] = {'04/12/2019'},&lt;/P&gt;&lt;P&gt;[CP_ReportName] = {'Req to Att'}&amp;gt;}[CP_EventKey])), -Count({&amp;lt;[CP_DateofReport] = {'27/11/2019'},&lt;/P&gt;&lt;P&gt;[CP_ReportName] = {'Req to Att'}&amp;gt;} [CP_EventKey]), [CP_ExamCombined]))&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1656941#M49132</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2019-12-12T09:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657020#M49138</link>
      <description>&lt;P&gt;Try this (one of the parenthesis were misplaced)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 811px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25419i969849DFA0BA986F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=FirstSortedValue([CP_ExamCombined], -Aggr(RangeSum(Count({&amp;lt;[CP_DateofReport] = {'04/12/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;}[CP_EventKey]), -Count({&amp;lt;[CP_DateofReport] = {'27/11/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;} [CP_EventKey])), [CP_ExamCombined]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657020#M49138</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-12T11:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657055#M49139</link>
      <description>&lt;P&gt;Thank you Sunny!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657055#M49139</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2019-12-12T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657102#M49147</link>
      <description>&lt;P&gt;Hi Sunny - if I want to add the NEXT value down the list, is there any way I can do this?&amp;nbsp; So, using your great set analysis, I am pulling back the examcombined name of 'MPELV' which is indeed correct!&amp;nbsp; The next largest exam is also potentially causing us problems coming up, so I'd like to pull that one too into a text box.&amp;nbsp; Any ideas?&amp;nbsp; Many thanks as always.&amp;nbsp; Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657102#M49147</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2019-12-12T13:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657146#M49157</link>
      <description>&lt;P&gt;May be this (Note the 2 at the end to pull the value associated with the 2nd largest number)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=FirstSortedValue([CP_ExamCombined], -Aggr(RangeSum(Count({&amp;lt;[CP_DateofReport] = {'04/12/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;}[CP_EventKey]), -Count({&amp;lt;[CP_DateofReport] = {'27/11/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;} [CP_EventKey])), [CP_ExamCombined]), 2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 15:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657146#M49157</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-12T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657174#M49166</link>
      <description>&lt;P&gt;Hi Sunny - that's pulling back a '-' in my text box, so not sure it's recognising it.&amp;nbsp; Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 15:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657174#M49166</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2019-12-12T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657178#M49167</link>
      <description>&lt;P&gt;May be try adding a DISTINCT&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=FirstSortedValue(DISTINCT [CP_ExamCombined], -Aggr(RangeSum(Count({&amp;lt;[CP_DateofReport] = {'04/12/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;}[CP_EventKey]), -Count({&amp;lt;[CP_DateofReport] = {'27/11/2019'}, [CP_ReportName] = {'Req to Att'}&amp;gt;} [CP_EventKey])), [CP_ExamCombined]), 2)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 15:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657178#M49167</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-12T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657495#M49206</link>
      <description>&lt;P&gt;That works - thanks so much Sunny!!&amp;nbsp; Kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-Value-based-on-set-analysis/m-p/1657495#M49206</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2019-12-13T10:26:15Z</dc:date>
    </item>
  </channel>
</rss>

