<?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 global variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/global-variable/m-p/509417#M190361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following Problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate values for a selected Quarter and to compare them with earlier Quarters &lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;count (event) &lt;/P&gt;&lt;P&gt;count ( {$ &amp;lt;Quarter= {'$(#JQ_1)'} &amp;gt;}&amp;nbsp; event) with JQ_1 beeing a global variable defining the Quarter before the selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in my model I have one table with the columns ID sincedate todate, which i cannot directly contact with the Quarter selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( {$ &amp;lt;Quarter=&amp;gt; } &lt;/P&gt;&lt;P&gt; if ( &lt;/P&gt;&lt;P&gt;sincedate&amp;lt;='$(=max(Date))'&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; todate&amp;gt;='$(=min(Date))',&lt;/P&gt;&lt;P&gt;ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thougt i should be possible to extend the formula&amp;nbsp; to&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( {$ &amp;lt;Quarter=&amp;gt; } &lt;/P&gt;&lt;P&gt; if ( &lt;/P&gt;&lt;P&gt;sincedate&amp;lt;='$(=max( {$ &amp;lt;Quarter= {'$(#JQ_1)'} &amp;gt;} Date))'&amp;nbsp; &lt;/P&gt;&lt;P&gt;and&amp;nbsp;&amp;nbsp; todate&amp;gt;=''$(=max( {$ &amp;lt;Quarter= {'$(#JQ_1)'} &amp;gt;} Date))',&lt;/P&gt;&lt;P&gt;ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work. Is it possible, that the nested global variable is the reason for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Benno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 06:11:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-26T06:11:52Z</dc:date>
    <item>
      <title>global variable?</title>
      <link>https://community.qlik.com/t5/QlikView/global-variable/m-p/509417#M190361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following Problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate values for a selected Quarter and to compare them with earlier Quarters &lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;count (event) &lt;/P&gt;&lt;P&gt;count ( {$ &amp;lt;Quarter= {'$(#JQ_1)'} &amp;gt;}&amp;nbsp; event) with JQ_1 beeing a global variable defining the Quarter before the selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in my model I have one table with the columns ID sincedate todate, which i cannot directly contact with the Quarter selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( {$ &amp;lt;Quarter=&amp;gt; } &lt;/P&gt;&lt;P&gt; if ( &lt;/P&gt;&lt;P&gt;sincedate&amp;lt;='$(=max(Date))'&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp; todate&amp;gt;='$(=min(Date))',&lt;/P&gt;&lt;P&gt;ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thougt i should be possible to extend the formula&amp;nbsp; to&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count( {$ &amp;lt;Quarter=&amp;gt; } &lt;/P&gt;&lt;P&gt; if ( &lt;/P&gt;&lt;P&gt;sincedate&amp;lt;='$(=max( {$ &amp;lt;Quarter= {'$(#JQ_1)'} &amp;gt;} Date))'&amp;nbsp; &lt;/P&gt;&lt;P&gt;and&amp;nbsp;&amp;nbsp; todate&amp;gt;=''$(=max( {$ &amp;lt;Quarter= {'$(#JQ_1)'} &amp;gt;} Date))',&lt;/P&gt;&lt;P&gt;ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't work. Is it possible, that the nested global variable is the reason for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Benno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 06:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/global-variable/m-p/509417#M190361</guid>
      <dc:creator />
      <dc:date>2013-06-26T06:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: global variable?</title>
      <link>https://community.qlik.com/t5/QlikView/global-variable/m-p/509418#M190362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Benno, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use above():&lt;/P&gt;&lt;P&gt;count(event) / above(count(event) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 07:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/global-variable/m-p/509418#M190362</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2013-06-26T07:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: global variable?</title>
      <link>https://community.qlik.com/t5/QlikView/global-variable/m-p/509419#M190363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved my Problem. the Syntax was right, but with a little error in detail ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks David for mentioning above() , seems to be interresting for my tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings ,&lt;/P&gt;&lt;P&gt;Benno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 07:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/global-variable/m-p/509419#M190363</guid>
      <dc:creator />
      <dc:date>2013-06-26T07:24:39Z</dc:date>
    </item>
  </channel>
</rss>

