<?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 Set Analisys with expression DSE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656266#M1054806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Immagine.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69218_Immagine.png" style="width: 620px; height: 245px;" /&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a newbie in qlikview, so I'm readig some techincal manual to learn this environment.&lt;/P&gt;&lt;P&gt;Sorry if my question is already answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem with variables and expression.&lt;/P&gt;&lt;P&gt;In my application I have an expression defined as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eMaxAnnoSelezione = (Max(Anno))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Anno is a field of my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when I create a pivot table containing a sum on set analisys based on eMaxAnnoSelezione I'm unable to appropriate evaluate it (see the image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label works fine (caption become 'Totale ' followed by expression evaluation) but the expression doesn'w work.&lt;/P&gt;&lt;P&gt;I tried all possible combinations of DSE syntax... where I'm wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Oct 2014 09:28:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-18T09:28:19Z</dc:date>
    <item>
      <title>Set Analisys with expression DSE</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656266#M1054806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Immagine.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69218_Immagine.png" style="width: 620px; height: 245px;" /&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a newbie in qlikview, so I'm readig some techincal manual to learn this environment.&lt;/P&gt;&lt;P&gt;Sorry if my question is already answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem with variables and expression.&lt;/P&gt;&lt;P&gt;In my application I have an expression defined as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eMaxAnnoSelezione = (Max(Anno))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Anno is a field of my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when I create a pivot table containing a sum on set analisys based on eMaxAnnoSelezione I'm unable to appropriate evaluate it (see the image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label works fine (caption become 'Totale ' followed by expression evaluation) but the expression doesn'w work.&lt;/P&gt;&lt;P&gt;I tried all possible combinations of DSE syntax... where I'm wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Oct 2014 09:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656266#M1054806</guid>
      <dc:creator />
      <dc:date>2014-10-18T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analisys with expression DSE</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656267#M1054807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;eMaxAnnoSelezione&lt;/SPAN&gt;) expands to a formula, so your set analysis is effectively this:&lt;/P&gt;&lt;P&gt;{$&amp;lt;Anno={(Max(Anno))}&amp;gt;}&lt;/P&gt;&lt;P&gt;This is not valid and will fail. O&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;n the other hand, it's perfectly valid in the label, because&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='Totale' &amp;amp; (Max(Anno))&lt;/P&gt;&lt;P&gt;is a valid expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want to do, is probably to calculate the max year directly in the expression. To do that, define the variable as&lt;/P&gt;&lt;P&gt;=Max(Anno)&lt;/P&gt;&lt;P&gt;(the equal sign in front is key)&lt;/P&gt;&lt;P&gt;That way, it will evaluate to the max year for the current selection right in the variable itself, and then $(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;eMaxAnnoSelezione&lt;/SPAN&gt;) will expand to the year value (2014 for example):&lt;/P&gt;&lt;P&gt;{$&amp;lt;Anno={2014}&amp;gt;}&lt;/P&gt;&lt;P&gt;which is valid and will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Oct 2014 10:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656267#M1054807</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2014-10-18T10:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analisys with expression DSE</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656268#M1054808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great, thanks.&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 07:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analisys-with-expression-DSE/m-p/656268#M1054808</guid>
      <dc:creator />
      <dc:date>2014-10-20T07:03:13Z</dc:date>
    </item>
  </channel>
</rss>

