<?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: Single MAX value in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760779#M270670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the third dimension to expression using the below one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MaxString(Description)&amp;nbsp; OR MinString(Description)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are getting duplicates because you are having multiple values in this dimension, to overcome this we are using expression to get the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2015 10:10:13 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-01-09T10:10:13Z</dc:date>
    <item>
      <title>Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760774#M270665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have a pivot table with several results present in the picture 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74952_1.png" style="height: 250px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 4 columns are regular dimensions and the 5th column (Hora do teste) is my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is: =time(max({&amp;lt;ZonaTeste={'PT1'},ResultadoTeste={'1'}&amp;gt;} HoraTeste))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is to show only the maximum value of "Hora do teste", like so:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/74953_2.png" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I tested the expression on a textBox and returns only the maximum "Hora do teste" value, so this is OK. But I am missing something to make the expression work properly on the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo Marques&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760774#M270665</guid>
      <dc:creator />
      <dc:date>2015-01-09T09:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760775#M270666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Date(max({&amp;lt;ZonaTeste={'PT1'},ResultadoTeste={'1'}&amp;gt;} HoraTeste))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760775#M270666</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-01-09T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760776#M270667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean that the expression should return the maximum while ignoring the dimensions? Use TOTAL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=time(max({&amp;lt;ZonaTeste={'PT1'},ResultadoTeste={'1'}&amp;gt;} TOTAL HoraTeste))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can total over some subset of the dimensions by using something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=time(max({&amp;lt;ZonaTeste={'PT1'},ResultadoTeste={'1'}&amp;gt;} TOTAL &amp;lt;dim1, dim2&amp;gt; HoraTeste))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760776#M270667</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-01-09T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760777#M270668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I'm afraid that does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it does is format the time value to a date and all values are still in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760777#M270668</guid>
      <dc:creator />
      <dc:date>2015-01-09T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760778#M270669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove&amp;nbsp; column &lt;STRONG&gt;Descrcao&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 10:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760778#M270669</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-01-09T10:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760779#M270670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the third dimension to expression using the below one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MaxString(Description)&amp;nbsp; OR MinString(Description)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are getting duplicates because you are having multiple values in this dimension, to overcome this we are using expression to get the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 10:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760779#M270670</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-01-09T10:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760780#M270671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answering your question, the only thing I want to show of the dimensions are the values that correspond to the maximum value of "Hora do teste", like I have on the picture (Sorry for the blurred dimension values):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74960_2.png" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I tried to use TOTAL and this turned all the "Hora do teste" values to 11:17:17,but I have the same number of rows in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 10:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760780#M270671</guid>
      <dc:creator />
      <dc:date>2015-01-09T10:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760781#M270672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Var=Max([Hora do tetse]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in dimension in place of descricao write below expression&lt;/P&gt;&lt;P&gt;if([Hora do tetse]=$(Var),descricao ) and do supress null for this column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 10:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760781#M270672</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-01-09T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760782#M270673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to narrow the table to the maximum value like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=time(max({&amp;lt;ZonaTeste={'PT1'},ResultadoTeste={'1'},&lt;STRONG&gt;HoreTeste={$(=max(HoraTeste))}&lt;/STRONG&gt; &amp;gt;} HoraTeste))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 12:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760782#M270673</guid>
      <dc:creator>tobias_klett</dc:creator>
      <dc:date>2015-01-09T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Single MAX value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760783#M270674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution seems nice to me, but it suppresses all the values in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a table with only '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 13:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-MAX-value-in-pivot-table/m-p/760783#M270674</guid>
      <dc:creator />
      <dc:date>2015-01-09T13:36:58Z</dc:date>
    </item>
  </channel>
</rss>

