<?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: Weird Error with a Let statement? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122886#M764799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a short&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET MorningINV = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;'&lt;/SPAN&gt;Sum({&amp;lt;DDGDayStart = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;$&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;' &amp;amp; '&lt;/SPAN&gt;(vToday)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;}[DDG Inventory])&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;'&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2018 14:33:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-07-09T14:33:34Z</dc:date>
    <item>
      <title>Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122873#M764786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So when I use this expression in a text sheet object it works fine, I get the value that is displayed and I have confirmed it works correctly.&lt;/P&gt;&lt;P&gt;But I started using it a lot so i decided to make a let expression for it. When i put it in a let statement the compiler gets angry and it has the red underline and says unknown error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Morning INV&lt;/P&gt;&lt;P&gt;Let MorningINV= Sum({&amp;lt;DDGDayStart={'$(vToday)'}&amp;gt;}[DDG Inventory]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207354_error.PNG" style="height: 193px; width: 620px;" /&gt;&lt;/P&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/Weird-Error-with-a-Let-statement/m-p/122873#M764786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122874#M764787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is the $ sign.... check these links for possible solutions&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/220964"&gt;Expression as a variable with $-sign expansion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/7455"&gt;Stop Dollar Sign Expansion in the script (Escape Character ??? )&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 13:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122874#M764787</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122875#M764788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use set instead of let&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 13:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122875#M764788</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2018-07-09T13:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122876#M764789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set is for Strings not expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 13:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122876#M764789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122877#M764790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use $ sign expansion to evaluate the expression using SET. Did you try like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MorningINV= Sum({&amp;lt;DDGDayStart={'$(vToday)'}&amp;gt;}[DDG Inventory]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= $(MorningINV)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122877#M764790</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-09T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122878#M764791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is like half a solution... Thank you, i got a number but it is an incorrect number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122878#M764791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122879#M764792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't want to try what is suggested in the attached links?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122879#M764792</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T14:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122880#M764793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ive been reading them but all of the proposed solutions arent working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122880#M764793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122881#M764794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As in they give errors or they run but not the correct number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122881#M764794</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T14:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122882#M764795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Can you share some sample data or file and your expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122882#M764795</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-07-09T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122883#M764796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They either give a blank text object or an expression error is displayed on the text object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122883#M764796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122884#M764797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET MorningINV = &lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;Sum({&amp;lt;DDGDayStart = {&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;$&lt;SPAN style="color: #ff0000;"&gt;' &amp;amp; '&lt;/SPAN&gt;(vToday)&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;}[DDG Inventory])&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122884#M764797</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T14:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122885#M764798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let MorningINV= &lt;SPAN style="color: #ff0000;"&gt;' &lt;/SPAN&gt;Sum({&amp;lt;DDGDayStart={'$(vToday)'}&amp;gt;}[DDG Inventory]) &lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe use ' ' ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Whats the use of creating a variable in script when you can do it in front end, easier to modify too&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122885#M764798</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2018-07-09T14:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122886#M764799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a short&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET MorningINV = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;'&lt;/SPAN&gt;Sum({&amp;lt;DDGDayStart = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;$&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;' &amp;amp; '&lt;/SPAN&gt;(vToday)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;}[DDG Inventory])&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;'&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122886#M764799</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122887#M764800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked!! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122887#M764800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-09T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error with a Let statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122888#M764801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Used the same logic from what was given by Stefan here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/220964"&gt;Expression as a variable with $-sign expansion&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error-with-a-Let-statement/m-p/122888#M764801</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-09T14:46:34Z</dc:date>
    </item>
  </channel>
</rss>

