<?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 compare value with max(value) in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518550#M437247</link>
    <description>&lt;P&gt;I cannot understand why I don't get a result with this expression.&lt;/P&gt;&lt;P&gt;Is it not possible to compare a fieldvalue with the max of the same field ?&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;Count&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;distinct&lt;/FONT&gt;&lt;FONT size="1"&gt; {$&amp;lt;&lt;BR /&gt;dateNUMtot = {&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;"$(=Aggr(Max(dateNuMtot),employeenum))"&lt;/FONT&gt;&lt;FONT size="1"&gt;}&lt;BR /&gt;&amp;gt;}employeenum) &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 10:53:21 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2018-12-10T10:53:21Z</dc:date>
    <item>
      <title>compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518550#M437247</link>
      <description>&lt;P&gt;I cannot understand why I don't get a result with this expression.&lt;/P&gt;&lt;P&gt;Is it not possible to compare a fieldvalue with the max of the same field ?&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;Count&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;distinct&lt;/FONT&gt;&lt;FONT size="1"&gt; {$&amp;lt;&lt;BR /&gt;dateNUMtot = {&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;"$(=Aggr(Max(dateNuMtot),employeenum))"&lt;/FONT&gt;&lt;FONT size="1"&gt;}&lt;BR /&gt;&amp;gt;}employeenum) &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518550#M437247</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2018-12-10T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518574#M437251</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create one&amp;nbsp; Variable for the expression&lt;/P&gt;&lt;P&gt;vMaxdate = max(datefield)&lt;/P&gt;&lt;P&gt;then create set analysis&lt;/P&gt;&lt;P&gt;=Count(distinct {&amp;lt;datefield={$(vMaxdate)}&amp;gt;}employeenum)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 11:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518574#M437251</guid>
      <dc:creator>naveen409</dc:creator>
      <dc:date>2018-12-10T11:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518576#M437252</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do you want to achieve with this expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;this doesn't works because your function in the set analysis returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Aggr(Max(dateNuMtot),employeenum))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a series of number one for each employee ,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in what visualization you want to use this expression&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 11:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518576#M437252</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2018-12-10T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518594#M437256</link>
      <description>&lt;P&gt;I have several records for each employee. So I want to find the record with the highest dateNUMtot for each employee.&lt;/P&gt;&lt;P&gt;And use the value of that record as a dimension-value&lt;/P&gt;&lt;P&gt;&amp;nbsp;I believe that when I first create a variable,&amp;nbsp; it gets the value of the highest dateNUMtot of all employees&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 11:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518594#M437256</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2018-12-10T11:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518628#M437260</link>
      <description>Do you have dateNUMtot as a dimension in the chart?</description>
      <pubDate>Mon, 10 Dec 2018 12:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1518628#M437260</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T12:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1520878#M437521</link>
      <description>&lt;P&gt;Sorr for my late reaction, but dateNumtot is not a dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried another expression:&lt;/P&gt;&lt;P&gt;in my script I added a field containing the highest date&lt;/P&gt;&lt;P&gt;But count({&amp;lt;enddate = {"$(=highest_enddate)"} &amp;gt;}employee) does not give correct results too.&lt;/P&gt;&lt;P&gt;neither does count({&amp;lt;enddate = {"enddate=highest_enddate"} &amp;gt;}employee)&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does when I select one employee, but when I do not select an employee there are no results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When comparing both fields with an if statement they are counted as equal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 09:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1520878#M437521</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2018-12-14T09:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1521032#M437538</link>
      <description>What exactly is your chart dimension?</description>
      <pubDate>Fri, 14 Dec 2018 12:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1521032#M437538</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-14T12:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1522209#M437611</link>
      <description>&lt;P&gt;My dimension is another field. In this situation first year of employment.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 14:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1522209#M437611</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2018-12-18T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: compare value with max(value) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1522213#M437612</link>
      <description>Would you be able to share a sample or sample data with the expected output?</description>
      <pubDate>Tue, 18 Dec 2018 14:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-value-with-max-value-in-set-analysis/m-p/1522213#M437612</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-18T14:21:31Z</dc:date>
    </item>
  </channel>
</rss>

