<?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 not reloading or ignored in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-not-reloading-or-ignored-in-expression/m-p/1022871#M942182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi all, newbie to the forum. Hope you guys can assist me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Please find attached my qvw example and the data file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;What I want to calculate in this model is the Price difference for New and Discontinued (Disc) products between two Date periods. The two Date periods are represented by the states Post Period (PP) and Now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;A New product is a product that was sold in the Now period and not in the PP period. A Discproduct is a product that was sold in the PP period but not in the Now period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I created two variables called vPrevYear and vNowYear. The new SKU/Disc table is set for the Now state and therefore calculates the sum of the price in the Now period. Multiplying this with the flag for when a product are New or Disc, gives me the value I want for a New product.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;To get the price difference I need to subtract the sum of the price of Disc products. This sum of the Disc products prices are calculated in the variable vNewSku and then subtracted in the new SKU/Disc table Expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;The value of "new SKU/Disc" must be the same as the total "&lt;/STRONG&gt;&lt;SPAN style="color: #222222; font-size: 12.8px;"&gt;&lt;STRONG&gt;new SKU/Disc" in the Price Table. When I tested it, the variable is not subtracted as specified in the expression.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #222222; font-size: 12.8px;"&gt;&lt;STRONG&gt;The problem with the variable can be observed in the Input Box. I have attached two screen shots showing the same selection but different values. T&lt;/STRONG&gt;&lt;/SPAN&gt;he variable SOMETIMES becomes zero and SOMETIMES it is correct. There is no sequence of selections I can find to reproduce this error. Just select and deselect the Department a few times and it SHOULD occur.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I do not believe the error lies in the dimension, since I use a dummy dimension in order to only calculate the total values of the price by aggregating by product.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 06:06:30 GMT</pubDate>
    <dc:creator>erhardt_dekock</dc:creator>
    <dc:date>2016-01-19T06:06:30Z</dc:date>
    <item>
      <title>Variable not reloading or ignored in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-reloading-or-ignored-in-expression/m-p/1022871#M942182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi all, newbie to the forum. Hope you guys can assist me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Please find attached my qvw example and the data file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;What I want to calculate in this model is the Price difference for New and Discontinued (Disc) products between two Date periods. The two Date periods are represented by the states Post Period (PP) and Now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;A New product is a product that was sold in the Now period and not in the PP period. A Discproduct is a product that was sold in the PP period but not in the Now period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I created two variables called vPrevYear and vNowYear. The new SKU/Disc table is set for the Now state and therefore calculates the sum of the price in the Now period. Multiplying this with the flag for when a product are New or Disc, gives me the value I want for a New product.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;To get the price difference I need to subtract the sum of the price of Disc products. This sum of the Disc products prices are calculated in the variable vNewSku and then subtracted in the new SKU/Disc table Expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;The value of "new SKU/Disc" must be the same as the total "&lt;/STRONG&gt;&lt;SPAN style="color: #222222; font-size: 12.8px;"&gt;&lt;STRONG&gt;new SKU/Disc" in the Price Table. When I tested it, the variable is not subtracted as specified in the expression.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #222222; font-size: 12.8px;"&gt;&lt;STRONG&gt;The problem with the variable can be observed in the Input Box. I have attached two screen shots showing the same selection but different values. T&lt;/STRONG&gt;&lt;/SPAN&gt;he variable SOMETIMES becomes zero and SOMETIMES it is correct. There is no sequence of selections I can find to reproduce this error. Just select and deselect the Department a few times and it SHOULD occur.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I do not believe the error lies in the dimension, since I use a dummy dimension in order to only calculate the total values of the price by aggregating by product.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 06:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-reloading-or-ignored-in-expression/m-p/1022871#M942182</guid>
      <dc:creator>erhardt_dekock</dc:creator>
      <dc:date>2016-01-19T06:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not reloading or ignored in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-reloading-or-ignored-in-expression/m-p/1022872#M942183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was not able to reproduce your issue. Which QV version are you running?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only guess that you might have issues with the Select - Select in field action triggered on field Department changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-reloading-or-ignored-in-expression/m-p/1022872#M942183</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-04T18:46:39Z</dc:date>
    </item>
  </channel>
</rss>

