<?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: selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/selection/m-p/529878#M481019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not very clear, still I guess you can try MonthName() function. This gives you proper date(internally numeric) format output which allows numerical comparison or any date function operation(like AddMonths()); so you could refer previous month easily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Oct 2013 16:51:57 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-10-26T16:51:57Z</dc:date>
    <item>
      <title>selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529873#M481014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;need help.&lt;/P&gt;&lt;P&gt;I have to select a record the previous to respect the last record.&lt;/P&gt;&lt;P&gt;my table is, for example:&lt;/P&gt;&lt;P&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp; rif&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 31/01/2013&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 31/03/2013&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 5/06/2013&lt;/P&gt;&lt;P&gt;4 18/08/2013&lt;/P&gt;&lt;P&gt;that is,&lt;/P&gt;&lt;P&gt;actual record is determined so:&lt;/P&gt;&lt;P&gt;=Text(Month(max(RIF)))&amp;amp; Text(Year(max(RIF)))=18/08/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i have to select also last-1.&lt;/P&gt;&lt;P&gt;i can create a field ID, but how i can selection last-1? now, return 18/07/2013&lt;/P&gt;&lt;P&gt;I hope I explained&lt;/P&gt;&lt;P&gt;thank so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529873#M481014</guid>
      <dc:creator />
      <dc:date>2013-10-25T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529874#M481015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your work with a table, pivot table, graph... you can use below function:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/48194_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;=Below(RIF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, let me know if this work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- JFlorian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529874#M481015</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2013-10-25T20:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529875#M481016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can deal with the situation of sigiente ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of our script, we can create a variable that always has the value of the previous month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPriorMonth = 'Month (AddMonths (Max (fulldate), -1))', / / ​​Previous month in letters&lt;/P&gt;&lt;P&gt;LET vPriorMonthYear = 'Year (AddMonths (Max (fulldate), -1))', / / ​​Year for the previous month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 22:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529875#M481016</guid>
      <dc:creator />
      <dc:date>2013-10-25T22:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529876#M481017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure, why you has used Max month &amp;amp; Max year in your above expression.&lt;/P&gt;&lt;P&gt;If I am understand you correct then, the below expressions can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Max date value from "rif" field&amp;nbsp; =Date(max(rif))&lt;/P&gt;&lt;P&gt;For previous month of Max date =AddMonths( Date(max(rif)),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain bit more if this is not you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 03:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529876#M481017</guid>
      <dc:creator />
      <dc:date>2013-10-26T03:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529877#M481018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks to all for your reply, but i didn’t explain exactly what i need.&lt;/P&gt;&lt;P&gt;In to the column “rif”, that contains date field, i want to extract by month-year, i don’t have all the months but only some months for exaple:&lt;/P&gt;&lt;P&gt;31/12/2012&lt;/P&gt;&lt;P&gt;23/02/2013&lt;/P&gt;&lt;P&gt;29/10/2013&lt;/P&gt;&lt;P&gt;If i need to calc expressions only for the last period i don’t have any issue (=Text(Month(max(RIF)))&amp;amp; Text(Year(max(RIF)))=ott2013) buti f i need to calc only the previous time interval i need to help.&lt;/P&gt;&lt;P&gt;I suppose to use addmonth(-1) but the previous time interval isn’t always the previous month.&lt;/P&gt;&lt;P&gt;I dont’ have any result if i try to calculate a field like IR_TOTALE. I supposed to create another table (called ID) where i can record the inserts, in this case if want to consider only the previous month i can consider max(id-1) but i don’t know how to calculate the max(id-1) and the related RIF.&lt;/P&gt;&lt;P&gt;Finally i need also to calculate the previous period in a form like “feb2013” and not like a number. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 13:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529877#M481018</guid>
      <dc:creator />
      <dc:date>2013-10-26T13:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529878#M481019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not very clear, still I guess you can try MonthName() function. This gives you proper date(internally numeric) format output which allows numerical comparison or any date function operation(like AddMonths()); so you could refer previous month easily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 16:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529878#M481019</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-26T16:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: selection</title>
      <link>https://community.qlik.com/t5/QlikView/selection/m-p/529879#M481020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe working on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab3:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[id,&amp;nbsp;&amp;nbsp;&amp;nbsp; rif&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 31/01/2013&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 31/03/2013&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 5/06/2013&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 18/08/2013]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id-1 as idPrec,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(rif,'MMMYYYY') as Dt&lt;/P&gt;&lt;P&gt;resident Tab3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load id as idPrec,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rif as rifPrec&lt;/P&gt;&lt;P&gt;resident Tab3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could obtain something of similar:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/48204_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 08:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selection/m-p/529879#M481020</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-27T08:29:56Z</dc:date>
    </item>
  </channel>
</rss>

