<?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: Erro ao usar Max() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784621#M61167</link>
    <description>&lt;P&gt;Resolve o erro, mas traz mais de um&amp;nbsp;&lt;STRONG&gt;&lt;FONT&gt;"nr-ord-produ"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT&gt;igual&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="continua.png" style="width: 327px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49547iD9CD86946892B886/image-size/large?v=v2&amp;amp;px=999" role="button" title="continua.png" alt="continua.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 11:13:52 GMT</pubDate>
    <dc:creator>maxwellf</dc:creator>
    <dc:date>2021-02-22T11:13:52Z</dc:date>
    <item>
      <title>Erro ao usar Max()</title>
      <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784421#M61141</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tabela.png" style="width: 945px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49498i470C7196904101E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabela.png" alt="tabela.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;DataUltRepo:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;LOAD &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;"nr-ord-produ", &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;"dat-fim-operac" as dataFim, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Max ("num-operac-sfc") as ultimoReporte &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;resident [Ord-Prod] &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;group by "nr-ord-produ" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Olá,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Estou usando código acima para gerar uma tabela com os seguintes dados: ordem, data final e ultimo reporte.&lt;/P&gt;&lt;P&gt;Preciso pegar somente a data do maior valor de&amp;nbsp;&lt;FONT&gt;num-operac-sfc, mas está dando o erro&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="erro.png" style="width: 562px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49499i8B9F8A4B15B4431C/image-size/large?v=v2&amp;amp;px=999" role="button" title="erro.png" alt="erro.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existe alguma outra alternativa?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 10:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784421#M61141</guid>
      <dc:creator>maxwellf</dc:creator>
      <dc:date>2021-02-22T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Erro ao usar Max()</title>
      <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784425#M61142</link>
      <description>&lt;P&gt;Try this. The Case of&amp;nbsp;nr-ord-produced is different in the Group By&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DataUltRepo: 

LOAD
"nr-ord-produced",
"give-um-Operace" as dataFim,
Max ( "num-Operace-c") as ultimoReporte
residence [Ord-Prod]
group by "nr-ord-produced"
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 00:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784425#M61142</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-21T00:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Erro ao usar Max()</title>
      <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784451#M61145</link>
      <description>&lt;P&gt;You need to add both the fields(&lt;FONT&gt;&lt;STRONG&gt;"nr-ord-produ"&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;"dat-fim-operac"&lt;/STRONG&gt; )&lt;/FONT&gt;in group by clause like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;"nr-ord-produ",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;"dat-fim-operac" como dataFim,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;Max ("num-operac-sfc") como ultimoReporte&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;residente [Ord-Prod]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;grupo por "nr-ord-produ", "dat-fim-operac";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Please mark the answer right if it solves your problem.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 12:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784451#M61145</guid>
      <dc:creator>md_anasabbasi</dc:creator>
      <dc:date>2021-02-21T12:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Erro ao usar Max()</title>
      <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784621#M61167</link>
      <description>&lt;P&gt;Resolve o erro, mas traz mais de um&amp;nbsp;&lt;STRONG&gt;&lt;FONT&gt;"nr-ord-produ"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT&gt;igual&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="continua.png" style="width: 327px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49547iD9CD86946892B886/image-size/large?v=v2&amp;amp;px=999" role="button" title="continua.png" alt="continua.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 11:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1784621#M61167</guid>
      <dc:creator>maxwellf</dc:creator>
      <dc:date>2021-02-22T11:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Erro ao usar Max()</title>
      <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1785240#M61219</link>
      <description>&lt;P&gt;This is because for one&amp;nbsp;&lt;STRONG&gt;&lt;FONT&gt;"nr-ord-produ"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT&gt;there are two dates(dataFim). If you only wants the second row from '332611' irrespective of dates. Go for this script-&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;"nr-ord-produ",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;// "dat-fim-operac" como dataFim,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- Commented to bring the max value irrespective of date&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;Max ("num-operac-sfc") como ultimoReporte&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;residente [Ord-Prod]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT&gt;grupo por "nr-ord-produ";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Please mark the answer right if it solves your problem.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 12:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1785240#M61219</guid>
      <dc:creator>md_anasabbasi</dc:creator>
      <dc:date>2021-02-23T12:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Erro ao usar Max()</title>
      <link>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1786695#M61354</link>
      <description>&lt;P&gt;Mas preciso do "dat-fim-operac"&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 19:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Erro-ao-usar-Max/m-p/1786695#M61354</guid>
      <dc:creator>maxwellf</dc:creator>
      <dc:date>2021-02-26T19:11:05Z</dc:date>
    </item>
  </channel>
</rss>

