<?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: Variables with $ and without $ in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-with-and-without/m-p/1771089#M717001</link>
    <description>&lt;P&gt;qlikview evaluates anything inside he $() first before evaluating the script expression.&amp;nbsp; it pretty much replaces the $ expansion with text or numbers, and then proceeds like normal script execution:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/dollar-sign-expansion-using-variable.htm" target="_blank"&gt;Dollar-sign expansion using a variable ‒ QlikView&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 18:14:49 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-12-29T18:14:49Z</dc:date>
    <item>
      <title>Variables with $ and without $</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-and-without/m-p/1770989#M717000</link>
      <description>&lt;P&gt;Im trying to understand some code. When do i want to use $ in front of my variables and when not?&amp;nbsp;&lt;/P&gt;&lt;P&gt;example 1:&lt;/P&gt;&lt;P&gt;let TodaysFirstdate = (num((today()) - (731 + 90)));&lt;BR /&gt;LET varMinDate = $(TodaysFirstdate);&lt;BR /&gt;LET varMaxDate = num(today()-1);&lt;BR /&gt;LET varToday = num(today());&lt;BR /&gt;LET maxYear = year($(varMaxDate));&lt;BR /&gt;LET minYear = year($(varMinDate));&lt;/P&gt;&lt;P&gt;example 2:&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp;&lt;BR /&gt;....&lt;BR /&gt;WHERE YEAR&amp;gt;= $(minYear) AND YEAR&amp;lt;= $(maxYear);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 12:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-and-without/m-p/1770989#M717000</guid>
      <dc:creator>gustavofred</dc:creator>
      <dc:date>2020-12-29T12:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with $ and without $</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-and-without/m-p/1771089#M717001</link>
      <description>&lt;P&gt;qlikview evaluates anything inside he $() first before evaluating the script expression.&amp;nbsp; it pretty much replaces the $ expansion with text or numbers, and then proceeds like normal script execution:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/dollar-sign-expansion-using-variable.htm" target="_blank"&gt;Dollar-sign expansion using a variable ‒ QlikView&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 18:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-and-without/m-p/1771089#M717001</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-29T18:14:49Z</dc:date>
    </item>
  </channel>
</rss>

