<?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: garbage after expression: “)” with a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376129#M420075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put both variables into a textbox and you will see that the first returned:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18/05/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the second:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'18/05/2017'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if the second variable is then called with single-quotes per '$(variable)' you will double the quotes and receive a (still) error in the result of NULL. This meant creating and calling a variable depends on eachother.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Dec 2017 10:38:40 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-12-10T10:38:40Z</dc:date>
    <item>
      <title>garbage after expression: “)” with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376126#M420072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use the following variable to calculate the differences between 2 dates.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//Calculate differences between 2 dates &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;MonthDiff&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = Num(((year($2) * 12) + month($2)) - (((year($1) * 12) + month($1))) + 1);&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vDateExampleEuropeanFormat&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = '18/05/2017';&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LET&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vDateStartConsultant&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 'date(date#(DateStart,' &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;chr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(39) &amp;amp; 'YYYYMMDD' &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;chr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(39) &amp;amp; '),' &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;chr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(39) &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DD/MM/YYYY' &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;chr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(39) &amp;amp; ')';&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; Consultant, DateStart&lt;BR /&gt; John, 20150126&lt;BR /&gt; Maria, 20151204&lt;BR /&gt; Paul, 20170912&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine when I use MontDiff function in a table with vDateExampleEuropeanFormat variable. However when I use it with vDateStartConsultant I receive the error:&amp;nbsp; garbage after expression: “)”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching an example.&lt;/P&gt;&lt;P&gt;Could you please help me with this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2017 17:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376126#M420072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-09T17:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: garbage after expression: “)” with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376127#M420073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;not '&lt;/P&gt;&lt;P&gt;=$(MonthDiff(vDateStartConsultant, Today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2017 19:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376127#M420073</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-12-09T19:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: garbage after expression: “)” with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376128#M420074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;thank you so much for your answer!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I am very confused. Could you please clarify why we have to use &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;vDateStartConsultant&lt;/SPAN&gt; in this case -Without “$” and quotes-? In the other example I put ‘&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;$(vDateExampleEuropeanFormat)’-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;(With “$” and quotes)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp; and it works well&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(MonthDiff('$(vDateExampleEuropeanFormat)', Today()))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//it works well&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; =&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(MonthDiff('$(vDateStartConsultant)', Today()))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//it DOESN’T work well&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; =&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;$(MonthDiff(vDateStartConsultant, Today()))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//it works well &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2017 20:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376128#M420074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-09T20:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: garbage after expression: “)” with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376129#M420075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put both variables into a textbox and you will see that the first returned:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;18/05/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the second:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'18/05/2017'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if the second variable is then called with single-quotes per '$(variable)' you will double the quotes and receive a (still) error in the result of NULL. This meant creating and calling a variable depends on eachother.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 10:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-expression-with-a-variable/m-p/1376129#M420075</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-12-10T10:38:40Z</dc:date>
    </item>
  </channel>
</rss>

