<?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: Load current month data with do while in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133048#M7352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you remove the where clause, what do you get ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2018 07:02:53 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2018-07-27T07:02:53Z</dc:date>
    <item>
      <title>Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133045#M7349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am using a do while to try to bring data for the current month, but only upload data until the previous month I need your help please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* &amp;gt;&amp;gt; LOADA DATA PER PERIODS ========================================= */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPeriodo = (YEAR(TODAY())) &amp;amp; '0'; // CURRENT A YEAR&lt;/P&gt;&lt;P&gt;LET vMesActual = NUM(MONTH(TODAY())); // CURRENT ACTUAL&lt;/P&gt;&lt;P&gt;LET vMesProximo = NUM(MONTH(TODAY())+1); // NEXT MONTH &lt;/P&gt;&lt;P&gt;LET vI = 7; // INITIAL MONTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO WHILE vI &amp;lt;= &lt;SPAN style="font-size: 13.3333px;"&gt;vMesActual &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCiclo = vPeriodo &amp;amp; vI; // BUILD YEAR-MONTH&lt;/P&gt;&lt;P&gt;TRACE $(vCiclo);&lt;/P&gt;&lt;P&gt;LET vCiclo = vCiclo &amp;amp; '01'; // BUILD YEAR-MONTH-FIRSTDAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;SELECT * FROM TABLE &lt;/P&gt;&lt;P&gt;WHERE DATE =&amp;nbsp; TRUNC(LAST_DAY('$(vCiclo)'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vI = vI + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133045#M7349</guid>
      <dc:creator>MarioCenteno</dc:creator>
      <dc:date>2018-07-27T06:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133046#M7350</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;what are you trying to do exactly here ? filtering your load on the current month using a where ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the format of your field Date ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133046#M7350</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-27T06:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133047#M7351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Attempt to bring sales for the current month, the date format is dd / mm / yyyy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the value in the LET variable vI = 1; // INITIAL MONTH shows me data from January to June but excludes me from the current month&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need you to upload data until the current month from January to July for example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133047#M7351</guid>
      <dc:creator>MarioCenteno</dc:creator>
      <dc:date>2018-07-27T06:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133048#M7352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you remove the where clause, what do you get ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133048#M7352</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-27T07:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133049#M7353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;If I delete the date clause where there is no data. And the consultation takes too long.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133049#M7353</guid>
      <dc:creator>MarioCenteno</dc:creator>
      <dc:date>2018-07-27T07:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133050#M7354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove the loop and replace your where clause with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DATE &amp;gt;= Date(YearStart(Today()),'DD/MM/YYYY') and DATE &amp;lt;= Date(MonthEnd(Today()),'DD/MM/YYYY')&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; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&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; font-size: 13px;"&gt;&lt;STRONG&gt;this will load data from 01/01/2018 until the end of the actual month&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133050#M7354</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-27T07:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133051#M7355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I generated error I used the correct variables of the table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHERE b.date_process &amp;gt;= &lt;SPAN style="font-size: 13.3333px;"&gt;b.date_process &lt;/SPAN&gt;(YearStart(Today()),'DD/MM/YYYY') and &lt;SPAN style="font-size: 13.3333px;"&gt;b.date_process &lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="font-size: 13.3333px;"&gt;b.date_process &lt;/SPAN&gt;(MonthEnd(Today()),'DD/MM/YYYY'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When i use clause WHERE b.fecha_proceso =&amp;nbsp; trunc(LAST_DAY('$(vCiclo)'))&amp;nbsp; It shows me the data from January to June&lt;IMG alt="ciclo.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209046_ciclo.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133051#M7355</guid>
      <dc:creator>MarioCenteno</dc:creator>
      <dc:date>2018-07-27T07:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load current month data with do while</title>
      <link>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133052#M7356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the dimension used on your filterbox ? is it DATE ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Load-current-month-data-with-do-while/m-p/133052#M7356</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-27T07:53:55Z</dc:date>
    </item>
  </channel>
</rss>

