<?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 Fill dates with value or find last value... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364479#M574891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't test this at the moment and it may not work in a chart but instead of Sum(Balance) as your expression, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(Product),Above(Sum(Balance)),Sum(Balance))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will probably need to tick the Show All Values checkbox for Date in the dimension tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 06:43:50 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-05-23T06:43:50Z</dc:date>
    <item>
      <title>Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364477#M574889</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;Sorry, but my english is so poor!!!&amp;nbsp; heheh&lt;/P&gt;&lt;P&gt;I have a problem with my inventory control... My table loaded from ERP came with balance information in specific dates... I need fill this table, completing dates without information with last information balance at today date... My user select a month like march in 2012 and the balance of product 19 will came NULL, but the real balance is R$ 138,51...&lt;/P&gt;&lt;P&gt; Anybody help me??&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Tanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 06:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364477#M574889</guid>
      <dc:creator />
      <dc:date>2012-05-23T06:05:37Z</dc:date>
    </item>
    <item>
      <title>Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364478#M574890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Stock.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/14657_Stock.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 06:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364478#M574890</guid>
      <dc:creator />
      <dc:date>2012-05-23T06:06:36Z</dc:date>
    </item>
    <item>
      <title>Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364479#M574891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't test this at the moment and it may not work in a chart but instead of Sum(Balance) as your expression, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(Product),Above(Sum(Balance)),Sum(Balance))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will probably need to tick the Show All Values checkbox for Date in the dimension tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 06:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364479#M574891</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-23T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364480#M574892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tank you, mery much!!!!&lt;/P&gt;&lt;P&gt;I tested him, but dont solve...&lt;/P&gt;&lt;P&gt;I´m contact with distribute to help me...&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364480#M574892</guid>
      <dc:creator />
      <dc:date>2012-05-23T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364481#M574893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post your app so we can help further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 14:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364481#M574893</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-23T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364482#M574894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Search in this forum "FillwithPrevious" or look at Rob &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/robwunderlich" id="jive-228627501242834314325" style="background-color: #ffffff; font-size: 11px; color: #007fc0; font-family: Arial;"&gt;Rob Wunderlich&lt;/A&gt; "Cookbook kit" fillRowsIntervalMatch.qvw.&lt;/P&gt;&lt;P&gt;In order to find best way to resolve your problems follow the this Rob's posts and others (&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user" href="https://community.qlik.com/people/troyansky" style="background-color: #f1f1f1; font-size: 12px; color: #007fc0; font-family: Arial;"&gt;&lt;IMG alt="Oleg Troyansky" border="0" class="jive-avatar" height="22" src="http://community.qlik.com/people/troyansky/avatar/22.png?a=1231" style="background-color: #ffffff; border-color: #dadada; border-collapse: collapse; margin: 0 6px 0 0; padding: 2px; float: left;" width="22" /&gt;&lt;/A&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #f1f1f1;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #f1f1f1; font-size: 12px; margin: 5px 0 0; float: left; color: #636363; font-family: Arial;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/troyansky" id="jive-231027499434104571325" style="color: #007fc0;"&gt;Oleg Troyansky&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user" href="https://community.qlik.com/people/johnw" style="background-color: #f1f1f1; font-size: 12px; color: #007fc0; font-family: Arial;"&gt;&lt;IMG alt="John Witherspoon" border="0" class="jive-avatar" height="22" src="http://community.qlik.com/people/johnw/avatar/22.png?a=1205" style="background-color: #ffffff; border-color: #dadada; border-collapse: collapse; margin: 0 6px 0 0; padding: 2px; float: left;" width="22" /&gt;&lt;/A&gt;&lt;SPAN style="background-color: #f1f1f1; font-size: 12px; margin: 5px 0 0; float: left; color: #636363; font-family: Arial;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/johnw" id="jive-222627499434096674325" style="color: #007fc0;"&gt;John Witherspoon&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, ....)&lt;/P&gt;&lt;P&gt; ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364482#M574894</guid>
      <dc:creator />
      <dc:date>2012-06-07T11:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fill dates with value or find last value...</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364483#M574895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry!!! I´m so sorry!!!&lt;/P&gt;&lt;P&gt;I dont post the solution...&amp;nbsp; I´m so bad!!!&amp;nbsp;&amp;nbsp;&amp;nbsp; ehhehe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my script of the final solution!!!&amp;nbsp;&amp;nbsp; And it´s finally is ok!!&amp;nbsp; I´m so happy!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;PRODUTO:&lt;/P&gt;&lt;P&gt;LOAD ID_PRODUTO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODIGO_PRODUTO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOME_PRODUTO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KM_PREVISTA, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_SUBGRUPO&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALDO_TEMP:&lt;/P&gt;&lt;P&gt;LOAD ID_EMPRESA, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_ALMOXARIFADO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_PRODUTO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DT_HISTORICO_SALDO AS DT_INICIAL, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QT_HISTORICO_SALDO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VL_MEDIO&lt;/P&gt;&lt;P&gt;FROM &lt;C&gt; (qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;//WHERE DT_HISTORICO_SALDO &amp;gt;= date('01/01/2011');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//FAÇO ISSO PARA IDENTIFICAR ATÉ QUANDO O ESTOQUE SE MANTEVE INALTERADO&lt;/P&gt;&lt;P&gt;SALDO:&lt;/P&gt;&lt;P&gt;LOAD *, IF( ID_EMPRESA = Previous(ID_EMPRESA) AND ID_ALMOXARIFADO = Previous(ID_ALMOXARIFADO) and ID_PRODUTO = Previous(ID_PRODUTO), date(Previous(DT_INICIAL)-1), Today() ) AS DT_FINAL &lt;/P&gt;&lt;P&gt;RESIDENT SALDO_TEMP&lt;/P&gt;&lt;P&gt;ORDER BY &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_EMPRESA DESC, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_ALMOXARIFADO DESC, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_PRODUTO DESC, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DT_INICIAL DESC; &lt;/P&gt;&lt;P&gt;DROP TABLE SALDO_TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MONTO UM CALENDÁRIO COM TODAS AS DATAS ATÉ A DATA ATUAL&lt;/P&gt;&lt;P&gt;MinMaxTab:&lt;/P&gt;&lt;P&gt;LOAD Min([DT_INICIAL]) as MinTaskStart&lt;/P&gt;&lt;P&gt;RESIDENT SALDO GROUP BY 1;&lt;/P&gt;&lt;P&gt;Let varMinDate = peek('MinTaskStart');&lt;/P&gt;&lt;P&gt;Let varMaxDate = TODAY();&lt;/P&gt;&lt;P&gt;drop table MinMaxTab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET VMinOrderDate = date($(varMinDate));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendario:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; date('$(VMinOrderDate)' + Recno() - 1) as Data,&lt;/P&gt;&lt;P&gt;MonthName(date('$(VMinOrderDate)' + Recno() - 1)) as Mês,&lt;/P&gt;&lt;P&gt;Year(date('$(VMinOrderDate)' + Recno() - 1)) as Ano&lt;/P&gt;&lt;P&gt;AutoGenerate (varMaxDate - varMinDate + 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//AQUI ENTRA O INTERVALMATCH PARA PREENCHER TODAS AS DATA DO INTERVALO&lt;/P&gt;&lt;P&gt;//exit script;&lt;/P&gt;&lt;P&gt;SALDO:&lt;/P&gt;&lt;P&gt;LEFT JOIN (SALDO)&lt;/P&gt;&lt;P&gt;IntervalMatch (Data) &lt;/P&gt;&lt;P&gt;LOAD DISTINCT DT_INICIAL, DT_FINAL &lt;/P&gt;&lt;P&gt;RESIDENT SALDO;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This line below was causing the trouble in my load script...&amp;nbsp; &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;LOAD DT_INICIAL, DT_FINAL &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With a litle correction "all my problemas go to space" !!!&amp;nbsp;&amp;nbsp; hehehe&lt;/P&gt;&lt;P&gt;I only put a DISTINCT and a magic so!!! &lt;/P&gt;&lt;PRE _jivemacro_uid="_1341495620251402" class="jive_text_macro jive_macro_quote  _jivemacro_uid_1341495620251402"&gt;&lt;P&gt;LOAD DISTINCT DT_INICIAL, DT_FINAL &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Sorry my poor english em my hummor sense...&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Renato Barbosa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-dates-with-value-or-find-last-value/m-p/364483#M574895</guid>
      <dc:creator />
      <dc:date>2012-07-05T13:41:45Z</dc:date>
    </item>
  </channel>
</rss>

