<?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: How to store and retrieve Constant values in variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714613#M257166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a date-field which is linked to your Key "ID" you didn't need this approach - you could it calculate directly over the date-field. If not I would store these count by every reload in a qvd with an additional field like today() as ReloadDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 14:28:47 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-08-20T14:28:47Z</dc:date>
    <item>
      <title>How to store and retrieve Constant values in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714612#M257165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The scenario goes this way, 'ID' is my Primary key field, Suppose Count(ID)=10 (Previous Week Monday).&lt;/P&gt;&lt;P&gt;I reload the data today after changes in source, Count(ID)=15 (This week Monday).. &lt;/P&gt;&lt;P&gt;I want to add a text object as 'Vs Previous Week' which will Show '+5'&lt;/P&gt;&lt;P&gt;I want to Store the previous reload count in a variable, retrieve it and Subtract it from current reload count.&lt;/P&gt;&lt;P&gt;There is no other column to calculate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Pratik&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 13:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714612#M257165</guid>
      <dc:creator />
      <dc:date>2014-08-20T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to store and retrieve Constant values in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714613#M257166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a date-field which is linked to your Key "ID" you didn't need this approach - you could it calculate directly over the date-field. If not I would store these count by every reload in a qvd with an additional field like today() as ReloadDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714613#M257166</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-20T14:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to store and retrieve Constant values in variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714614#M257167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create 2 variables &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vZ and vY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this code in the script&lt;/P&gt;&lt;P&gt;vZ = $(vY)&lt;/P&gt;&lt;P&gt;vY = $(vY) + 10;//Just a test value:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look out of the values vZ and vY in the text Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-store-and-retrieve-Constant-values-in-variable/m-p/714614#M257167</guid>
      <dc:creator />
      <dc:date>2014-08-20T14:33:07Z</dc:date>
    </item>
  </channel>
</rss>

