<?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: Read a variable in an inline in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276266#M864512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look on these examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="1224" data-containertype="700" data-objectid="11844" data-objecttype="102" href="https://community.qlik.com/docs/DOC-11844"&gt;&lt;SPAN lang="EN-GB" style="font-size: 14.0pt; font-family: 'Arial',sans-serif;"&gt;Central KPI Formula Repository (solution)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/#comment-231569" rel="nofollow" target="_blank"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Storing variables outside of QlikView&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewmaven.blogspot.de/2008/12/loading-variables-via-loadscript.html" rel="nofollow" target="_blank"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Loading Variables Via Loadscript&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="5012" data-objecttype="102" href="https://community.qlik.com/docs/DOC-5012"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Managing Variables&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="358055" data-objecttype="2" href="https://community.qlik.com/message/358055#358055"&gt;Re: Setting a variable in script...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="7168" data-objecttype="102" href="https://community.qlik.com/docs/DOC-7168"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;How to store and recover variables&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="6854" data-objecttype="102" href="https://community.qlik.com/docs/DOC-6854"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Create Colour Variables from an Excel Workbook&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 16:17:25 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-12-19T16:17:25Z</dc:date>
    <item>
      <title>Read a variable in an inline</title>
      <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276261#M864507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;I have the following problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;In a simple table expression I am reading a variable that in turn reads a field generated in inline. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;The expression generated by the inline is as follows: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Expression1: sum ({&amp;lt;Year = {'$ (vLastYear)'}&amp;gt;} Sales) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Then I generate a variable that is equal to "Expression1" and that variable places it in a &lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;straight table&lt;/SPAN&gt;. It returns me a good result but without considering the previous year, I consider the current year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Thank you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="tw-ta tw-text-medium tw-data-text" lang="en" style="padding: 0 0.14em 0 0; font-family: inherit; text-align: initial; font-size: 29px !important;"&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276261#M864507</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read a variable in an inline</title>
      <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276262#M864508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the question. Can you post a small qlikview document that explains what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2016 07:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276262#M864508</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-17T07:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read a variable in an inline</title>
      <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276263#M864509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Try like below from script level. this is as i assume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) LET vLastYear = Max(Year)-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 16px; font-family: arial, sans-serif; color: #212121;"&gt;LET vFinal = sum ({&amp;lt;Year = {'$ (vLastYear)'}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 16px; font-family: arial, sans-serif; color: #212121;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 16px; font-family: arial, sans-serif; color: #212121;"&gt;Then use =$(vFinal) and use text object then see&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 16px; font-family: arial, sans-serif; color: #212121;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2016 18:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276263#M864509</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-17T18:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read a variable in an inline</title>
      <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276264#M864510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thanks for answering.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I leave you a file with my problem. Thanks for the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that "Sales 2" does not display the same as "Sales 1". This is because when you read a variable in an inline, it does not read it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147031_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The tables must show the same result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276264#M864510</guid>
      <dc:creator />
      <dc:date>2016-12-19T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read a variable in an inline</title>
      <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276265#M864511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer But it does not serve me what you indicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276265#M864511</guid>
      <dc:creator />
      <dc:date>2016-12-19T15:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read a variable in an inline</title>
      <link>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276266#M864512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look on these examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="1224" data-containertype="700" data-objectid="11844" data-objecttype="102" href="https://community.qlik.com/docs/DOC-11844"&gt;&lt;SPAN lang="EN-GB" style="font-size: 14.0pt; font-family: 'Arial',sans-serif;"&gt;Central KPI Formula Repository (solution)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/#comment-231569" rel="nofollow" target="_blank"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Storing variables outside of QlikView&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewmaven.blogspot.de/2008/12/loading-variables-via-loadscript.html" rel="nofollow" target="_blank"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Loading Variables Via Loadscript&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="5012" data-objecttype="102" href="https://community.qlik.com/docs/DOC-5012"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Managing Variables&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="358055" data-objecttype="2" href="https://community.qlik.com/message/358055#358055"&gt;Re: Setting a variable in script...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="7168" data-objecttype="102" href="https://community.qlik.com/docs/DOC-7168"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;How to store and recover variables&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="6854" data-objecttype="102" href="https://community.qlik.com/docs/DOC-6854"&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Arial',sans-serif;"&gt;Create Colour Variables from an Excel Workbook&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-a-variable-in-an-inline/m-p/1276266#M864512</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-19T16:17:25Z</dc:date>
    </item>
  </channel>
</rss>

