<?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: IF FIELD_A=MAX(FIELD_A) THEN COUNT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224803#M391097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this? And sorry, I forget to see the attachment earlier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(If(RO_NO=Max(TOTAL &amp;lt;ID&amp;gt; RO_NO), Count(ERROR_NAME)), ID, RO_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 12:24:38 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-02-08T12:24:38Z</dc:date>
    <item>
      <title>IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224796#M391090</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 have a table in QlikView like ID, LAST_PAGE, RO_NO(chronological fill order) AND ERROR_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i get max value from RO_NO in calculated dimension i have for each one rows value=3 and it`s true.&lt;/P&gt;&lt;P&gt;but when i use aggregate max function in expressions i get value only for one row(first not null row). WHY??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need show on bar chart count ERROR_NAME only when RO_NO=max(RO_NO).&lt;/P&gt;&lt;P&gt;In this example it should be ERROR3=1.&lt;/P&gt;&lt;P&gt;Case should works for more data, aggregated by ID and LAST_PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I incolse .qvw file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 08:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224796#M391090</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-07T08:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224797#M391091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use this Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;RO_NO = {'$(=Max(RO_NO))'}&amp;gt;}ERROR_NAME)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152414_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224797#M391091</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-08T09:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224798#M391092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;have a look at the attachment and changes i made to the chart and table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224798#M391092</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2017-02-08T09:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224799#M391093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Guys&lt;/P&gt;&lt;P&gt;works perfectly:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224799#M391093</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-08T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224800#M391094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;it wasnt work perfectly:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i add new ID with other value for RO_NO it stop works:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expressions show max value for total RO_NO, but should keep max value for agregate group like field in calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help one again??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224800#M391094</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-08T11:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224801#M391095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added one value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152442_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And output is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152443_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Here, Max value is 4 and then we are getting that Max value of ERROR_NAME. In that, what was you are looking for&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224801#M391095</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-08T11:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224802#M391096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUT WITH LOADED DATA I EXCEPT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR3=2&lt;/P&gt;&lt;P&gt;ERROR5=1&lt;/P&gt;&lt;P&gt;ERROR6=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(BECAUSE FOR ID:1909 ERROR_NAME FOR MAX RO_NO IS ERROR3&lt;/P&gt;&lt;P&gt;FOR ID: 2020 ERROR NAME FOR MAX RO_NO IS ERROR5&lt;/P&gt;&lt;P&gt;ID: 1000 ERROR_NAME FOR MAX RO_NO IS ERROR6&lt;/P&gt;&lt;P&gt;AND FOR ID: 1010 ERROR_NAME FOR MAX RO_NO IS ERROR3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224802#M391096</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-08T11:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224803#M391097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this? And sorry, I forget to see the attachment earlier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(If(RO_NO=Max(TOTAL &amp;lt;ID&amp;gt; RO_NO), Count(ERROR_NAME)), ID, RO_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 12:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224803#M391097</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-08T12:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224804#M391098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you any idea ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224804#M391098</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-10T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224805#M391099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual(If(RO_NO=Max(RO_NO), ERROR_NAME, '&amp;nbsp; '),count(ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224805#M391099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T14:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224806#M391100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression count all ERROR_NAME, but i need count only this ERROR_NAME which RO_NO = max(RO_NO) group by ID and LAST_PAGE.&lt;/P&gt;&lt;P&gt;so above expression also doesn`t work:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you any suggestions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don`t understend why aggr function for RO_NO grouped by ID and LAST_PAGE doesnt work... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 11:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224806#M391100</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-11T11:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224807#M391101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this expression, And it worked too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Aggr(If(RO_NO=Max(TOTAL &amp;lt;ID&amp;gt; RO_NO), Count(ERROR_NAME)), ID, RO_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152879_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;And, Finally why do you need to show ERROR3 data points 2. I doubt what was the logic behind to prove. In fact, Does you mean while you are having same Error of the perticular ID of similar Value. Then you don't want to use NoDistinct Value or what&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;May be try something like below&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; If(RO_NO=Max( TOTAL &amp;lt;ID&amp;gt; RO_NO), Count(ERROR_NAME)), ID, RO_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224807#M391101</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-13T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF FIELD_A=MAX(FIELD_A) THEN COUNT</title>
      <link>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224808#M391102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i attache file with more data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at the straight table, column called: TRUE,&lt;/P&gt;&lt;P&gt;why i need ERROR3=2 points..??.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because for ID= 1909 and LAST_PAGE=PAGE2&amp;nbsp; MAX(RO_NO) refer to ERROR3 and for ID=1010 LAST_PAGE=PAGE3 MAX(RO_NO) refer to ERROR3 also. So, if i have ERROR_NAME in dimensions and i count it i have sum=2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ID=1909 AND PAGE1 MAX(RO_NO)=1 and it refer to ERROR10, &lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;that`s why i except:&lt;/P&gt;&lt;P&gt;ERROR3=2&lt;/P&gt;&lt;P&gt;ERROR10=1&lt;/P&gt;&lt;P&gt;ERROR5=1&lt;/P&gt;&lt;P&gt;ERROR6=1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 10:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-FIELD-A-MAX-FIELD-A-THEN-COUNT/m-p/1224808#M391102</guid>
      <dc:creator>ambasadorknz</dc:creator>
      <dc:date>2017-02-13T10:15:34Z</dc:date>
    </item>
  </channel>
</rss>

