<?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: 'last month selected' as a modifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559553#M208838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing Stock : I guess it has to be a single value for a date. If so, then using firstsortedvalue() sorted against date field would return single value. That should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 04:38:44 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-07-11T04:38:44Z</dc:date>
    <item>
      <title>'last month selected' as a modifier</title>
      <link>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559550#M208835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to retreive the 'Closing Stock'&amp;nbsp; for a group of records. I only want to show the last closing stock (stored in a field [ST], which means that if I'm reporting on the enitre FY2013, then I only want to see the closing stock for the last month selected (in this case June).&lt;/P&gt;&lt;P&gt;How do I make this into a modifier??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 04:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559550#M208835</guid>
      <dc:creator />
      <dc:date>2013-07-10T04:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: 'last month selected' as a modifier</title>
      <link>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559551#M208836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have couple of options :&lt;/P&gt;&lt;P&gt;1.assuming all products have closing stock reports in last month&lt;/P&gt;&lt;P&gt;then you can use sum({&amp;lt;Month={"$(=max(Month))"}&amp;gt;}ST)&lt;/P&gt;&lt;P&gt;2. you can use firstsorted value , for this i will assume you have a date field in the table with the closing stock data&lt;/P&gt;&lt;P&gt;so you can use somthing like sum(firstsortedvalue(ST,-DateField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 05:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559551#M208836</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2013-07-10T05:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: 'last month selected' as a modifier</title>
      <link>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559552#M208837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your answer... but unfortunately it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 1 didn't (surprisingly) and Solution 2 didn't think it would work because there is more than one figure for on category of products in any one month. firtsortedvalue() is the first thing I'd tried but apparently if more than one value is returned, than the answer is 0. Is that right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'm missing something in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 01:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559552#M208837</guid>
      <dc:creator />
      <dc:date>2013-07-11T01:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: 'last month selected' as a modifier</title>
      <link>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559553#M208838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing Stock : I guess it has to be a single value for a date. If so, then using firstsortedvalue() sorted against date field would return single value. That should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 04:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559553#M208838</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-11T04:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'last month selected' as a modifier</title>
      <link>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559554#M208839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I should aggregate in the script so to have a single value? &lt;BR /&gt;I'll do some testing and get back to you both. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 04:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-month-selected-as-a-modifier/m-p/559554#M208839</guid>
      <dc:creator />
      <dc:date>2013-07-11T04:48:07Z</dc:date>
    </item>
  </channel>
</rss>

