<?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: Compute stock amount by SET expression allow user select any date. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440683#M164250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;date = {"&amp;lt;=$(=Max({$}[date]))"}, month = &amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached example aswell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 10:43:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-11T10:43:08Z</dc:date>
    <item>
      <title>Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440681#M164248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Feb 2013 stock amount = 12 , Because i use sum(amount) that is&amp;nbsp; 5 + -1 + 5 + -1 + 5 + -1=12, that is when user don't click on month and year. ( My data structure is consist of 2 column date and stock amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user click on Feb = month , now it display 3 how to make it display stock amount = 12 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user click on Jan = month , now it display 3 how to make it display stock amount = 8 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need help on SET expression to help me get dynamic stock amount depend on user selected month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some one can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enclosed my simple QV doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 08:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440681#M164248</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-10T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440682#M164249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can some one advise me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 22:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440682#M164249</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-10T22:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440683#M164250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;date = {"&amp;lt;=$(=Max({$}[date]))"}, month = &amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached example aswell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 10:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440683#M164250</guid>
      <dc:creator />
      <dc:date>2013-04-11T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440684#M164251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thank for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression work fine . But now when user also need to select year=2012 or 2013 ( as my actual data for month =1 have appear in 2012 and 2013 ) , it is possible add year field in your SET expression , so that it will still show the correct stock amount .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 19:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440684#M164251</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-11T19:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440685#M164252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this sum({$&amp;lt;stock_id-={'$(=Null())'}&amp;gt;} bal_qty)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 20:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440685#M164252</guid>
      <dc:creator>MarcoARaymundo</dc:creator>
      <dc:date>2013-04-11T20:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440686#M164253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir, Thank you veyr much for sharing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your script work a bit better , because when i select year =2013 it can display me the stock bal for 2013. but if i want to see jan stock balanace or feb stock bal , it cannot show me. enclosed is the QV doc i show you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 23:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440686#M164253</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-11T23:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440687#M164254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK! But, i tested and works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remenber, you have: jan/2012 and jan/2013. If you clear filters and select only month=1, appear both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry! My English is weak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 11:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440687#M164254</guid>
      <dc:creator>MarcoARaymundo</dc:creator>
      <dc:date>2013-04-12T11:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compute stock amount by SET expression allow user select any date.</title>
      <link>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440688#M164255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My english is also not very powerful , and that is why i unable to make you understand what i want. So in order to get what i want , i start new post , hope that the example i use are more easy to understand , in order i am able to get the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I unable to give the link , as now all post need admin to aprove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compute-stock-amount-by-SET-expression-allow-user-select-any/m-p/440688#M164255</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2013-04-12T17:17:43Z</dc:date>
    </item>
  </channel>
</rss>

