<?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 Analysis multiple expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395411#M458965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to get the correct results for an expression that should:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;return the average of an "x" value&lt;/LI&gt;&lt;LI&gt;only for the values of "x" whose average is between 5 and 10&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;avg({$&amp;lt;x={'$(=avg(x))&amp;gt;5'},&lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=avg(x))&amp;lt;=10'}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;avg({$&amp;lt;x={'$(=avg(x))&amp;gt;5'}+&lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=avg(x))&amp;lt;=10'}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;avg({$&amp;lt;x={'$(=avg(x))&amp;gt;5'},x=&lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=avg(x))&amp;lt;=10'}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can't solve this, hopefully someone has the solution to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 10:45:52 GMT</pubDate>
    <dc:creator>paolocamerini</dc:creator>
    <dc:date>2017-11-15T10:45:52Z</dc:date>
    <item>
      <title>Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395411#M458965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to get the correct results for an expression that should:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;return the average of an "x" value&lt;/LI&gt;&lt;LI&gt;only for the values of "x" whose average is between 5 and 10&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;avg({$&amp;lt;x={'$(=avg(x))&amp;gt;5'},&lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=avg(x))&amp;lt;=10'}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;avg({$&amp;lt;x={'$(=avg(x))&amp;gt;5'}+&lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=avg(x))&amp;lt;=10'}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;avg({$&amp;lt;x={'$(=avg(x))&amp;gt;5'},x=&lt;SPAN style="font-size: 13.3333px;"&gt;{'$(=avg(x))&amp;lt;=10'}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can't solve this, hopefully someone has the solution to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 10:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395411#M458965</guid>
      <dc:creator>paolocamerini</dc:creator>
      <dc:date>2017-11-15T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395412#M458966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;avg({$&amp;lt;x={"=avg(x)&amp;gt;5 and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;avg(x)&amp;lt;=10"}&amp;gt;}x)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Edit: Corrected -removed '$'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 10:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395412#M458966</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-15T10:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395413#M458967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post a sample application and expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 10:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395413#M458967</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-11-15T10:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395414#M458968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not working, thank you though&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 10:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395414#M458968</guid>
      <dc:creator>paolocamerini</dc:creator>
      <dc:date>2017-11-15T10:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395415#M458969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data, Cod, X, Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/11/2017, 000001, 3, 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/11/2017, 000002, 6, 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/11/2017, 000003, 7, 8000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/11/2017, 000004, 2, 750&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/11/2017, 000001, 3, 1200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/11/2017, 000002, 6, 6000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/11/2017, 000003, 7, 7500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/11/2017, 000004, 2, 1000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to get is a table with the sum of "Amount" for each Cod whose avg(X) is between 5 and 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cod | AvgX | AmountSum&lt;/P&gt;&lt;P&gt;000002 | 6 | 11.000&lt;/P&gt;&lt;P&gt;000003 | 7 | 15.500&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395415#M458969</guid>
      <dc:creator>paolocamerini</dc:creator>
      <dc:date>2017-11-15T11:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395416#M458970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="183359" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183359_Capture.JPG" style="height: 94px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395416#M458970</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-15T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395417#M458971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Cod={"=Avg(X)&amp;gt;=5 and Avg(X)&amp;lt;=10"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395417#M458971</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-11-15T11:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis multiple expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395418#M458972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, seems like the expansion sign $ was the culprit. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-multiple-expressions/m-p/1395418#M458972</guid>
      <dc:creator>paolocamerini</dc:creator>
      <dc:date>2017-11-15T11:28:42Z</dc:date>
    </item>
  </channel>
</rss>

