<?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 question about max data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227374#M79485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On which feild are you differentiating between the latest and the old data?&lt;/P&gt;&lt;P&gt;Order by descending on that field and select the first record.&lt;/P&gt;&lt;P&gt;If you dont have one then jus add an extra field while load, having a unique value for each record and select the record which has tha max value of that extra field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 16:28:29 GMT</pubDate>
    <dc:creator>syed_muzammil</dc:creator>
    <dc:date>2010-10-04T16:28:29Z</dc:date>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227372#M79483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;Probebly an easy on for you but I am pretty new with this and I haven't found answer here yet so I was hoping somebody could help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Client and model of machine and i make calibration many time for this machine so i need to make table and get the last data on my table not the history just 1 row show me the last data&lt;/P&gt;&lt;P&gt;my table will be look like that&lt;/P&gt;&lt;P&gt;Client --&amp;gt; model --&amp;gt; last data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 16:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227372#M79483</guid>
      <dc:creator />
      <dc:date>2010-10-04T16:09:13Z</dc:date>
    </item>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227373#M79484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume Client and Model are the dimensions. For last data, is there a date associated? What is that field called? What is the name of the field you want to display?&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;only({&amp;lt;DateField={'$(=Aggr(Max(DateField), Client, Model))'}&amp;gt;} [last_date])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 16:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227373#M79484</guid>
      <dc:creator />
      <dc:date>2010-10-04T16:25:48Z</dc:date>
    </item>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227374#M79485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On which feild are you differentiating between the latest and the old data?&lt;/P&gt;&lt;P&gt;Order by descending on that field and select the first record.&lt;/P&gt;&lt;P&gt;If you dont have one then jus add an extra field while load, having a unique value for each record and select the record which has tha max value of that extra field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 16:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227374#M79485</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-10-04T16:28:29Z</dc:date>
    </item>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227375#M79486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me explane much and thanks for this fast replay ....&lt;/P&gt;&lt;P&gt;i connect to oracle database and i have 2 tables [clients, Machines]&lt;/P&gt;&lt;P&gt;each client send to me some models and we make work for many years so i insert everytime the same model machine with new data.&lt;/P&gt;&lt;P&gt;when i run my data inside table its gave me all data "history" of the same model ... so my situation today i not need the history i need the latest data that model enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Company Machine Model data&lt;/P&gt;&lt;P&gt;Company1 sony D3 10/2008&lt;/P&gt;&lt;P&gt;Company1 sony D3 10/2010&lt;/P&gt;&lt;P&gt;so now i need my table give me just the latest date not the history&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company Machine Model data&lt;/P&gt;&lt;P&gt;Company1 sony D3 10/2010&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 17:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227375#M79486</guid>
      <dc:creator />
      <dc:date>2010-10-04T17:38:02Z</dc:date>
    </item>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227376#M79487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the question correctly... It loos like you need this&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; Company,&lt;BR /&gt; Machine,&lt;BR /&gt; Model,&lt;BR /&gt; max(date) as LastDate&lt;BR /&gt;RESIDENT...&lt;BR /&gt;GROUP BY Company, Machine, Model,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 17:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227376#M79487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-04T17:58:48Z</dc:date>
    </item>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227377#M79488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much Michael Solomovich I solve it and i have other situation i think you can solve it also I´m sure its small for you&lt;BR /&gt;&lt;BR /&gt;i already put the code for you to check it ... my problem is the field "Freq" cant read .. i need to know why&lt;BR /&gt;feild "Freq" is a numbers 1,5,9 and i want to add that number addition to the month on feild "[Ult. Cal]"&lt;BR /&gt;so if the data on field "[Ult. Cal]" like: 22/12/2009 + "Freq" like: 5 so the result going to be 22/5/2010 and i called that field"[PROX. CAL.]"&lt;BR /&gt;&lt;BR /&gt;my macro :&lt;BR /&gt;&lt;BR /&gt;Function vbProximaCalibracao(Data, Frequencia)&lt;BR /&gt;Ano = year(Data)&lt;BR /&gt;Mes = month(Data)&lt;BR /&gt;for i = 1 to Frequencia&lt;BR /&gt;if (Mes &amp;gt;= 12 )then&lt;BR /&gt;Mes=1&lt;BR /&gt;Ano=Ano+1&lt;BR /&gt;else&lt;BR /&gt;Mes=Mes+1&lt;BR /&gt;end if&lt;BR /&gt;next&lt;BR /&gt;vbProximaCalibracao = Mes &amp;amp; "/"&amp;amp; Ano&lt;BR /&gt;end Function&lt;BR /&gt;&lt;BR /&gt;my code :&lt;BR /&gt;[Cliente]:&lt;BR /&gt;Load CFIDCODIGO as [Cod. Cli],&lt;BR /&gt; CFTXNOMEF as Cliente;&lt;BR /&gt; sql select *&lt;BR /&gt;FROM SAG."CF_CLIENTEFORNECEDOR";&lt;BR /&gt;&lt;BR /&gt;left join&lt;BR /&gt;&lt;BR /&gt;Load&lt;BR /&gt; Date(CCDTDTCERT) as [Data Cal],&lt;BR /&gt; CCTXCERT as Certificado,&lt;BR /&gt; CCTXTAG as Tag_,&lt;BR /&gt; CFIDCODIGO as [Cod. Cli],&lt;BR /&gt; INIDCODIGO as [Cod. Inst],&lt;BR /&gt; NCIDCODIGO as [Nº de Controle];&lt;BR /&gt; sql select *&lt;BR /&gt;FROM SAG."CC_CERTIFICADOCALIB";&lt;BR /&gt;&lt;BR /&gt;left join&lt;BR /&gt;&lt;BR /&gt;Load&lt;BR /&gt;ECNMFREQ as Freq,&lt;BR /&gt; NCIDCODIGO as [Nº de Controle];&lt;BR /&gt; SQL Select *&lt;BR /&gt;&lt;BR /&gt;FROM SAG."EC_ENTRADACALIBRACAO";&lt;BR /&gt;&lt;BR /&gt;Ult:&lt;BR /&gt;load&lt;BR /&gt;max([Data Cal]) as [Ult. Cal],&lt;BR /&gt;Tag_,&lt;BR /&gt;Cliente&lt;BR /&gt;resident [Cliente] group by Cliente, Tag_;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; load&lt;BR /&gt; Freq,&lt;BR /&gt; vbproximacalibracao([Ult. Cal], Freq) as [PROX. CAL.]&lt;BR /&gt; Resident Ult;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 20:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227377#M79488</guid>
      <dc:creator />
      <dc:date>2010-10-04T20:17:26Z</dc:date>
    </item>
    <item>
      <title>question about max data</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227378#M79489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you must use macro for this. There is function AddMonths. Try&lt;BR /&gt;AddMonths([Ult. Cal], Freq) as [PROX. CAL.]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 21:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-max-data/m-p/227378#M79489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-04T21:30:53Z</dc:date>
    </item>
  </channel>
</rss>

