<?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 Using a cell value in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-cell-value-in-an-expression/m-p/170001#M40583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone&lt;/P&gt;&lt;P&gt;I'm been scratching my head over this for a little while now. I have a pivot table with rolling weeks as the columns, and expressions as rows. The user needs to select a single product before he can see this table.&lt;/P&gt;&lt;P&gt;My first row is the opening stock balance, my second is sales, and my third is confirmed purchase orders for that specific week. This is where the problem comes in. The purpose of this table is to display the weeks when there will be no more stock (based on the opening stock balance - actuals + confirmed po's ) I use the following formula to calculate the following week's opening stock balance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=Before(Sum([OnHand])) - Before(Sum([ActualQty])) + Before(Sum([ConfirmedPO]))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem is that my opening stock value is always the same, no matter which week I'm in, thus the formula works great for the week that it's in, but it doesn't take the "re-calculated" opening balance for the next week. So I was wondering if there is a way to get a cell value into an expression. Or if there are any suggestions on a work-around?&lt;/P&gt;&lt;P&gt;Your help is (as always) greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 17:11:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-01T17:11:51Z</dc:date>
    <item>
      <title>Using a cell value in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-cell-value-in-an-expression/m-p/170001#M40583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone&lt;/P&gt;&lt;P&gt;I'm been scratching my head over this for a little while now. I have a pivot table with rolling weeks as the columns, and expressions as rows. The user needs to select a single product before he can see this table.&lt;/P&gt;&lt;P&gt;My first row is the opening stock balance, my second is sales, and my third is confirmed purchase orders for that specific week. This is where the problem comes in. The purpose of this table is to display the weeks when there will be no more stock (based on the opening stock balance - actuals + confirmed po's ) I use the following formula to calculate the following week's opening stock balance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=Before(Sum([OnHand])) - Before(Sum([ActualQty])) + Before(Sum([ConfirmedPO]))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem is that my opening stock value is always the same, no matter which week I'm in, thus the formula works great for the week that it's in, but it doesn't take the "re-calculated" opening balance for the next week. So I was wondering if there is a way to get a cell value into an expression. Or if there are any suggestions on a work-around?&lt;/P&gt;&lt;P&gt;Your help is (as always) greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 17:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-cell-value-in-an-expression/m-p/170001#M40583</guid>
      <dc:creator />
      <dc:date>2009-12-01T17:11:51Z</dc:date>
    </item>
  </channel>
</rss>

