<?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: above on calculated field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386466#M805721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure, but try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Aggr(If(RangeMin(Above(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;[Test Date] = {"&amp;gt;$(=Date(MakeDate(2017, 5, 1)))"}&amp;gt;}Score+Bonus)&lt;/SPAN&gt;, 0, 3)) &amp;gt;= 5 and RangeMax(Above(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Only({&amp;lt;[Test Date] = {"&amp;gt;$(=Date(MakeDate(2017, 5, 1)))"}&amp;gt;}Score+Bonus)&lt;/STRONG&gt;, 0, 3)) &amp;lt;= 20 and RowNo() &amp;gt; 2, Name), Name, [Test Date]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 14:53:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-31T14:53:39Z</dc:date>
    <item>
      <title>above on calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386463#M805713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Test Date, Name, Score, Bonus&lt;BR /&gt; 01/01/2017, S1, 9,3&lt;BR /&gt; 01/01/2017, S2, 10,1&lt;BR /&gt; 01/01/2017, S3, 6,2&lt;BR /&gt; 17/03/2017, S1, 9,2&lt;BR /&gt; 17/03/2017, S2, 7,2&lt;BR /&gt; 17/03/2017, S3, 7,2&lt;BR /&gt; 03/05/2017, S1, 4,2&lt;BR /&gt; 03/05/2017, S2, 1,2&lt;BR /&gt; 03/05/2017, S3, 2,2&lt;BR /&gt; 30/05/2017, S1, 8,2&lt;BR /&gt; 30/05/2017, S2, 1,2&lt;BR /&gt; 30/05/2017, S3, 8,2&lt;BR /&gt; 31/05/2017, S1, 5,10&lt;BR /&gt; 31/05/2017, S2, 1,10&lt;BR /&gt; 31/05/2017, S3, 10,10&lt;BR /&gt; 01/10/2017, S1, 5,10&lt;BR /&gt; 01/10/2017, S2, 10,5&lt;BR /&gt; 01/10/2017, S3, 9,5&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 8pt; mso-ansi-language: EN;"&gt;I was trying to figure out how many students manage to keep a consecutive score&amp;nbsp; between 5 and 10 for 3 consecutive test date, to show that in both a text object , and also in a straight table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 8pt; mso-ansi-language: EN;"&gt;Thank to Sunny (&lt;A href="https://community.qlik.com/message/1369477" target="_blank"&gt;Re: set analysis on non-consecutive dates&lt;/A&gt;)&amp;nbsp; I can now using the following expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: 'Helvetica',sans-serif; font-size: 8pt; mso-ansi-language: EN;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 0, 3)) &amp;gt;= 5 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 0, 3)) &amp;lt;= 10 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &amp;gt; 2, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;now I need to do the same but instead of Score to do it on (Score+Bonus)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;The above will not work, if I replace Score with (Score+Bonus)&amp;nbsp;&amp;nbsp; then only way around I have found so far is to create a new field in the script that has the value of (Score+Bonus)&amp;nbsp; and then use it instead of Score in the Expression, but I would not not to do that via script, any other way to do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386463#M805713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: above on calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386464#M805714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason it doesn't work is because your range is still 5 to 10.... shouldn't the range increase because now we are looking at Score + Bonus? For example, if I change the range from 5 to 15, I see S1 with a count of 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Aggr(If(RangeMin(Above(Score+Bonus, 0, 3)) &amp;gt;= 5 and RangeMax(Above(Score+Bonus, 0, 3)) &amp;lt;= 15 and RowNo() &amp;gt; 2, Name), Name, [Test Date]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386464#M805714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-31T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: above on calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386465#M805716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right as usual, additionally is there a way to ignore any Test Date before a specific date lets say 01/05/1017&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386465#M805716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-31T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: above on calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386466#M805721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure, but try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT Aggr(If(RangeMin(Above(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;[Test Date] = {"&amp;gt;$(=Date(MakeDate(2017, 5, 1)))"}&amp;gt;}Score+Bonus)&lt;/SPAN&gt;, 0, 3)) &amp;gt;= 5 and RangeMax(Above(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Only({&amp;lt;[Test Date] = {"&amp;gt;$(=Date(MakeDate(2017, 5, 1)))"}&amp;gt;}Score+Bonus)&lt;/STRONG&gt;, 0, 3)) &amp;lt;= 20 and RowNo() &amp;gt; 2, Name), Name, [Test Date]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386466#M805721</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-31T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: above on calculated field</title>
      <link>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386467#M805724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-on-calculated-field/m-p/1386467#M805724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-31T14:54:58Z</dc:date>
    </item>
  </channel>
</rss>

