<?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 Variable throwing garbage after '=' error in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844241#M69853</link>
    <description>&lt;P&gt;This functionality works in a KPI but when I am trying to make it a variable, I am getting a garbage error:&lt;/P&gt;&lt;P&gt;{&amp;lt;[PERF_END_DATE] = {"&amp;gt;=$(=timestamp(now()))&amp;lt;=$(=timestamp(now() + 180))"} &amp;gt;}&lt;/P&gt;&lt;P&gt;Garbage after expression: '='&lt;/P&gt;&lt;P&gt;Any thoughts?&amp;nbsp; Thanks in advance&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 13:45:54 GMT</pubDate>
    <dc:creator>Evan0211</dc:creator>
    <dc:date>2021-10-08T13:45:54Z</dc:date>
    <item>
      <title>Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844241#M69853</link>
      <description>&lt;P&gt;This functionality works in a KPI but when I am trying to make it a variable, I am getting a garbage error:&lt;/P&gt;&lt;P&gt;{&amp;lt;[PERF_END_DATE] = {"&amp;gt;=$(=timestamp(now()))&amp;lt;=$(=timestamp(now() + 180))"} &amp;gt;}&lt;/P&gt;&lt;P&gt;Garbage after expression: '='&lt;/P&gt;&lt;P&gt;Any thoughts?&amp;nbsp; Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 13:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844241#M69853</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-10-08T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844263#M69857</link>
      <description>&lt;P&gt;If you put a = before your variable-content the content will be evaluated at once and the result is then assigned to the variable. Because of the fact that your content isn't a complete expression it caused the errors. Solution is just to left the =.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 14:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844263#M69857</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-08T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844274#M69859</link>
      <description>&lt;P&gt;Sorry, but what does left the = mean?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 14:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844274#M69859</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-10-08T14:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844292#M69861</link>
      <description>&lt;P&gt;Your variable should look like:&lt;/P&gt;&lt;P&gt;var&lt;BR /&gt;&lt;SPAN&gt;{&amp;lt;[PERF_END_DATE] = {"&amp;gt;=&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;$(=timestamp(now()))&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;&amp;lt;=&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;$(=timestamp(now() + 180))&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;"} &amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;with no starting = by creating the variable and you could call it with something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum($(var) [Field])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The additionally single-quotes around the $-sign expansion is to ensure that the content is treated as timestamp and not as any invalid string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 15:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844292#M69861</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-08T15:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844301#M69863</link>
      <description>&lt;P&gt;Unfortunately the error is still showing with the new code changes you suggested above. I have posted a screenshot and here is a c/p of the expression.&lt;/P&gt;&lt;P&gt;{&amp;lt;[PERF_END_DATE] = {"&amp;gt;='$(=timestamp(now()))'&amp;lt;='$(=timestamp(now() + 180))'"} &amp;gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 15:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844301#M69863</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-10-08T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844309#M69864</link>
      <description>&lt;P&gt;You mean that just the expression-editor by creating the variable shows an error. You could simply ignore it. The parser tries to interpret the content but it's not a complete respectively valid expression and therefore displayed the error.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844309#M69864</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-08T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844314#M69865</link>
      <description>&lt;P&gt;I am using the variable in a variable input with buttons and it does not filter my table, so I assume there is an error somewhere.&lt;/P&gt;&lt;P&gt;The variable input values are as follows:&lt;/P&gt;&lt;P&gt;='~All|vExpiring_in_30_Days~30 Days|vExpiring_in_90_Days~90 Day|vExpiring_in_180_Days~180 Day'&lt;/P&gt;&lt;P&gt;None of the buttons filter the table.&amp;nbsp; The variable above is &lt;SPAN&gt;vExpiring_in_180_Days, the 90 and 30 day variables are the same with a different duration.&amp;nbsp; None of them are filtering the table when clicked.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844314#M69865</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-10-08T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844319#M69866</link>
      <description>&lt;P&gt;Your variables are as parts of an expression just strings - simply calling them couldn't filter the data. There exists no connection between those strings and your datamodel.&lt;/P&gt;&lt;P&gt;This means you need to include the logic within your expressions and/or maybe within a calculated dimension. It depends on your datamodel, the requirements to your views and the number of objects and expressions which way might be more suitable.&lt;/P&gt;&lt;P&gt;Personally I would tend to a bit different approach by creating a calculated dimension with something like:&lt;/P&gt;&lt;P&gt;class(aggr(&lt;SPAN&gt;[PERF_END_DATE] - today(), Dim1, Dim2), $(vClusterSize))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;whereby the Dim here are just placeholder for the dimensionally context in which the calculation should be done - probably there are some like customers, products or something similar. Class returned equal clusters but they don't need to be static else you could make it dynamically with a variable like vClusterSize.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 16:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844319#M69866</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-08T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844334#M69868</link>
      <description>&lt;P&gt;I have attached it to a KPI and it appears that the values there are correct upon the button clicks, but how do I wire it up to have the table filter on the button click?&amp;nbsp; The data in the table is not updating.&amp;nbsp; I am sure I am missing something simple.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 17:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844334#M69868</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-10-08T17:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable throwing garbage after '=' error</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844384#M69874</link>
      <description>&lt;P&gt;Marcus, thanks so much for your help, I got it all wired up!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 19:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-throwing-garbage-after-error/m-p/1844384#M69874</guid>
      <dc:creator>Evan0211</dc:creator>
      <dc:date>2021-10-08T19:18:58Z</dc:date>
    </item>
  </channel>
</rss>

