<?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: Variables in Qlik Sense Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305164#M27757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Onno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a Test application (&lt;STRONG&gt;TEST_APP.qvf&lt;/STRONG&gt;) showing the issue.&lt;/P&gt;&lt;P&gt;The 4 variables were created using the GUI, not the script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;min_TIME&lt;/STRONG&gt; and &lt;STRONG&gt;max_TIME&lt;/STRONG&gt; return right results, while &lt;STRONG&gt;minval&lt;/STRONG&gt; and &lt;STRONG&gt;maxval&lt;/STRONG&gt; don't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 May 2017 15:18:14 GMT</pubDate>
    <dc:creator>francesco_gregori</dc:creator>
    <dc:date>2017-05-21T15:18:14Z</dc:date>
    <item>
      <title>Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305160#M27753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a problem using variables in Qlik Sense Set Analysis.&lt;/P&gt;&lt;P&gt;I searched for similar questions but I couldn't find what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I defined the following variables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max_TIME&lt;/STRONG&gt; as: Max(TIME)&amp;nbsp;&amp;nbsp;&amp;nbsp; (it returns max year)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;maxval&lt;/STRONG&gt; as: sum({$&amp;lt;TIME = {$(max_TIME)}&amp;gt;} Value)&amp;nbsp;&amp;nbsp;&amp;nbsp; (it should return the aggregated value of "Value" measure corresponding to max year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the first one (max_TIME) and it's working fine.&lt;/P&gt;&lt;P&gt;The issue is with the second one (maxval), since it's not returning the right value (it always returns the wrong value 0, no matter what's the TIME I select).&lt;/P&gt;&lt;P&gt;If I change maxval this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;TIME = {2007}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine, so I guess the problem is with the evaluation of variable &lt;STRONG&gt;max_TIME&lt;/STRONG&gt; within variable &lt;STRONG&gt;maxval&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I use a different syntax?&lt;/P&gt;&lt;P&gt;Is there some kind of limitation in Qlik Sense when it comes to this feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 11:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305160#M27753</guid>
      <dc:creator>francesco_gregori</dc:creator>
      <dc:date>2017-05-20T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305161#M27754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;TIME = {$(max_TIME)}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;... by...&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;TIME = {$(&lt;STRONG&gt;=&lt;/STRONG&gt;max_TIME)}&amp;gt;} Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2017 19:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305161#M27754</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-05-20T19:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305162#M27755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Onno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your hint, but it's still not working (it returns 0 instead of the right value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2017 06:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305162#M27755</guid>
      <dc:creator>francesco_gregori</dc:creator>
      <dc:date>2017-05-21T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305163#M27756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder what the actual script is you are using the set the values for those variables. Could you show us?&lt;/P&gt;&lt;P&gt;I would not be surprised if that is where things are actually going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2017 13:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305163#M27756</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-05-21T13:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305164#M27757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Onno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a Test application (&lt;STRONG&gt;TEST_APP.qvf&lt;/STRONG&gt;) showing the issue.&lt;/P&gt;&lt;P&gt;The 4 variables were created using the GUI, not the script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;min_TIME&lt;/STRONG&gt; and &lt;STRONG&gt;max_TIME&lt;/STRONG&gt; return right results, while &lt;STRONG&gt;minval&lt;/STRONG&gt; and &lt;STRONG&gt;maxval&lt;/STRONG&gt; don't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2017 15:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305164#M27757</guid>
      <dc:creator>francesco_gregori</dc:creator>
      <dc:date>2017-05-21T15:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305165#M27758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Onno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in addition to the Qlik Sense example &lt;STRONG&gt;TEST_APP.qvf&lt;/STRONG&gt; I posted some days ago in this thread, I tried the following expressions:&lt;/P&gt;&lt;P&gt;&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;minval &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as:&amp;nbsp; &lt;/SPAN&gt;sum({$&amp;lt;TIME={$(=$(min_TIME))}&amp;gt;} Value)&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;maxval &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as:&amp;nbsp; &lt;/SPAN&gt;sum({$&amp;lt;TIME={$(=$(max_TIME))}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which worked fine in QlikView 12 (I attach the example) but don't seem to work in Qlik Sense (they return 0, no matter the selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 14:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305165#M27758</guid>
      <dc:creator>francesco_gregori</dc:creator>
      <dc:date>2017-06-05T14:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305166#M27759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not near a PC that actually has both Qlik products installed (so I can't check)&lt;SPAN style="font-size: 10pt;"&gt;, but to my knowledge most of the things that work in QlikView should work (and the same way) in Qlik Sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kinda hoped others would have also jumped this topic and point out a silly typo or something. I still hope they do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305166#M27759</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-06-05T21:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305167#M27760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the qvf you uploaded, max_TIME is defined as a master measure, not a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master Measures cannot reference other master measures. So &lt;/P&gt;&lt;P&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;&amp;nbsp; sum({$&amp;lt;TIME={$(=$(&lt;STRONG&gt;max_TIME&lt;/STRONG&gt;))}&amp;gt;} Value)&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;&lt;BR /&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;will not work, as &lt;STRONG&gt;max_TIME&lt;/STRONG&gt; is a master measure, not a variable. &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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 23:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305167#M27760</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-05T23:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in Qlik Sense Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305168#M27761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob thank you so much for the answer!&lt;/P&gt;&lt;P&gt;I defined &lt;STRONG&gt;max_TIME&lt;/STRONG&gt; as a variable, then I changed &lt;STRONG&gt;maxval&lt;/STRONG&gt; definition to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;TIME={$(=$(max_TIME))}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it shows the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Qlik-Sense-Set-Analysis/m-p/1305168#M27761</guid>
      <dc:creator>francesco_gregori</dc:creator>
      <dc:date>2017-06-06T11:16:20Z</dc:date>
    </item>
  </channel>
</rss>

