<?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: Problem with the format of a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507120#M189628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks qliksus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expected to stumble over this distinction eventually...&lt;/P&gt;&lt;P&gt;Thank you very much for explaining!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 14:31:59 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-11-11T14:31:59Z</dc:date>
    <item>
      <title>Problem with the format of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507116#M189624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have a problem with a rather complex formula that I'm trying to develop to encompass either of two different scenarios.&lt;/P&gt;&lt;P&gt;As a step toward fixing that problem, I am trying to make it a bit less complex by employing a variable to make the code of that formula shorter and easier to handle.&lt;/P&gt;&lt;P&gt;=&amp;gt; That leads me to the following problem:&lt;/P&gt;&lt;P&gt;- The variable I want is a date in german format (DD.MM.YYYY) - that format is in one of the SET commands on the MAIN tab&lt;BR /&gt;&amp;nbsp;&amp;nbsp; of the script.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; For some reason I cannot use that $() thingy - when I test it in a textbox on the GUI, it works without that - but when I add that, it doesn't work. In the script, however, I have to somehow tell QlikView that this is a variable and not a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me out of this dilemma?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 12:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507116#M189624</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-11-11T12:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the format of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507117#M189625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can i know how you have written the expression for varibale and textbox?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 12:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507117#M189625</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2013-11-11T12:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the format of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507118#M189626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course you can - sorry, I was away eating.&lt;/P&gt;&lt;P&gt;In the script I have written&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; LET v_left4good = PEEK('left_for_good'); &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;(where "left_for_good" is the name of a field I have just loaded - there is just 1 record generated by that LOAD_statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the textbox on the GUI I have just written&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; = v_left4good &amp;lt;&amp;lt;&amp;lt; or &amp;gt;&amp;gt;&amp;gt; = $(v_left4good) &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;(the former version works, the second does not display)&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; Now I don't quite know how to let QlikView_script know that this is not a field to look for, but a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I guess I can do it a different way - by loading that date twice in the original base_load (that precedes the code that is lateron going to be a subroutine) - once in date_format and once in numeric format for the comparison. I have looked up a bit of code in a different app where I do just this - only with a plain number, not with a date. Then I can well use that $() and I can tell QlikView in the script that this is a variable.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; Still, I'd like to know why this doesn't work with a date in that format (DD.MM.YYYY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 13:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507118#M189626</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-11-11T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the format of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507119#M189627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please go to the help and read about SET and LET which will clear your question&lt;/P&gt;&lt;P&gt;Since you have used LET in the script, it exceute and store the output which is a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(variable) used to execute of the expression written inside the variable throws blank due unavailability of expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507119#M189627</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2013-11-11T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the format of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507120#M189628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks qliksus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expected to stumble over this distinction eventually...&lt;/P&gt;&lt;P&gt;Thank you very much for explaining!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-the-format-of-a-variable/m-p/507120#M189628</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-11-11T14:31:59Z</dc:date>
    </item>
  </channel>
</rss>

