<?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 Variable usage in 'Inventory on hand' on the date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-usage-in-Inventory-on-hand-on-the-date/m-p/238489#M89351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;oleg_evt1970 wrote:How can I create calculating expressions (query) sum(qty) &amp;lt; @date ?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hello Oleg,&lt;/P&gt;&lt;P&gt;I'd do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt; date = {'&amp;lt;$(vDate)'} }&amp;gt; qty)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Where vDate is a previously created variable populated with the date you want to use in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;oleg_evt1970 wrote:SQL Select ItemID, transDate from Inventtrans where transDate &amp;lt; @vDate?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Actually you can do that as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vDate = Date('01/01/2009'); // Example Table:LOAD *;SQL SELECT ItemID, transDateFROM Inventtrans WHERE transDate &amp;lt; $(vDate);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 12:33:10 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-10-15T12:33:10Z</dc:date>
    <item>
      <title>Variable usage in 'Inventory on hand' on the date</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-usage-in-Inventory-on-hand-on-the-date/m-p/238488#M89350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, my dear friends!&lt;/P&gt;&lt;P&gt;I need your help!&lt;/P&gt;&lt;P&gt;I'm creating report 'Inventory on hand' on selected date.&lt;/P&gt;&lt;P&gt;How can I create calculating expressions (query) sum(qty) &amp;lt; @date ?&lt;/P&gt;&lt;P&gt;First of all I created&lt;/P&gt;&lt;P&gt;1. chart (Pivot table) with columns ItemGroup, Item, QTY&lt;/P&gt;&lt;P&gt;2. Object Calendar&lt;/P&gt;&lt;P&gt;3. Variable vDate&lt;/P&gt;&lt;P&gt;Can I create Expression in Chart sum(QTY) having Restriction by date?&lt;/P&gt;&lt;P&gt;I have other idea. May be insert Restriction by date in sql statement in Script like&lt;/P&gt;&lt;P&gt;SQL Select ItemID, transDate from Inventtrans where transDate &amp;lt; @vDate?&lt;/P&gt;&lt;P&gt;I'm waiting your advice!&lt;/P&gt;&lt;P&gt;Thank, my dear friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 12:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-usage-in-Inventory-on-hand-on-the-date/m-p/238488#M89350</guid>
      <dc:creator />
      <dc:date>2010-10-15T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Variable usage in 'Inventory on hand' on the date</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-usage-in-Inventory-on-hand-on-the-date/m-p/238489#M89351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;oleg_evt1970 wrote:How can I create calculating expressions (query) sum(qty) &amp;lt; @date ?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hello Oleg,&lt;/P&gt;&lt;P&gt;I'd do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({&amp;lt; date = {'&amp;lt;$(vDate)'} }&amp;gt; qty)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Where vDate is a previously created variable populated with the date you want to use in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;oleg_evt1970 wrote:SQL Select ItemID, transDate from Inventtrans where transDate &amp;lt; @vDate?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Actually you can do that as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LET vDate = Date('01/01/2009'); // Example Table:LOAD *;SQL SELECT ItemID, transDateFROM Inventtrans WHERE transDate &amp;lt; $(vDate);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 12:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-usage-in-Inventory-on-hand-on-the-date/m-p/238489#M89351</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-15T12:33:10Z</dc:date>
    </item>
  </channel>
</rss>

