<?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: Aggr and variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452714#M800949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lluis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure. But try to remove the '=' sign for the variable 'filter'.&amp;nbsp; And add the 'ID' into the &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;weightedmean variable.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Like &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Variables:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;filter:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(ID=4,$(weightedmean($1)) )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;weightedmean:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;$1&amp;gt;} Aggr(DISTINCT Csat_Target * Weights, link_targets,&lt;SPAN style="color: #ff0000;"&gt;ID&lt;/SPAN&gt;)) / sum( {&amp;lt;$1&amp;gt;} Aggr(DISTINCT Weights, link_targets,&lt;SPAN style="color: #ff0000;"&gt;ID&lt;/SPAN&gt;) )&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2017 17:00:08 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2017-11-24T17:00:08Z</dc:date>
    <item>
      <title>Aggr and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452713#M800948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! This is the continuation of my previous threat &lt;A href="https://community.qlik.com/thread/282879" target="_blank"&gt;Agreggation and set analysis with parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What happens is that i need the implement the solution in a very particular way.&lt;/P&gt;&lt;P&gt;I have a table (like the one in the sample data), and i want to call in an expression a variable(with the ID conditional) that will call the final variable(the one with aggr and the one that actualy does the calculations).&lt;/P&gt;&lt;P&gt;I add my sample data updated with this solution (or tryal of it at least) and you will see it much clearly.&lt;/P&gt;&lt;P&gt;So it is something like this:&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EXPRESSION:&lt;/EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;$(filter(FY={'FYQ4'}))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;filter:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=if(ID=4,$(weightedmean($1)) )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;weightedmean:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;sum({&amp;lt;$1&amp;gt;} Aggr(DISTINCT Csat_Target * Weights, link_targets)) / sum( {&amp;lt;$1&amp;gt;} Aggr(DISTINCT Weights, link_targets) )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;How could I solve it? I really don't understand why it is not working! It is just calling variables!&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I will try to look for your answers during the weekend &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Have a good weekend! &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452713#M800948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452714#M800949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lluis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure. But try to remove the '=' sign for the variable 'filter'.&amp;nbsp; And add the 'ID' into the &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;weightedmean variable.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Like &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Variables:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;filter:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(ID=4,$(weightedmean($1)) )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;weightedmean:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({&amp;lt;$1&amp;gt;} Aggr(DISTINCT Csat_Target * Weights, link_targets,&lt;SPAN style="color: #ff0000;"&gt;ID&lt;/SPAN&gt;)) / sum( {&amp;lt;$1&amp;gt;} Aggr(DISTINCT Weights, link_targets,&lt;SPAN style="color: #ff0000;"&gt;ID&lt;/SPAN&gt;) )&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 17:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452714#M800949</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2017-11-24T17:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452715#M800950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei! Sorry for not answering i was out for the weekend! &lt;/P&gt;&lt;P&gt;This worked perfectly! &lt;/P&gt;&lt;P&gt;Thanks again! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 08:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-variables/m-p/1452715#M800950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T08:42:05Z</dc:date>
    </item>
  </channel>
</rss>

