<?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 question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372652#M1175969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you understood me right.&lt;/P&gt;&lt;P&gt;When two events of the two types are selected, the total mean of all Scores needs to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this one and seems to work? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg({1&amp;lt;EVENT=, TYPE=P(TYPE)&amp;gt;} SCORE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to hear your opinion on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinds regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 13:08:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-29T13:08:46Z</dc:date>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372650#M1175967</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;&lt;/P&gt;&lt;P&gt;I've got a straight forward question.&lt;/P&gt;&lt;P&gt;When I select an EVENT I want to see it's score (upper gauge). (=avg(SCORE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the lower gauge want to see the mean for the TYPE of event (A or B) when I select a EVENT for benchmarking.&lt;/P&gt;&lt;P&gt;I tought I just need this: =avg(($(TYPE) var588)), but apparently it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me out? It sounds easy, but I can not make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2012-05-29 om 14.28.58.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/14862_Schermafbeelding+2012-05-29+om+14.28.58.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2012-05-29 om 14.32.01.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/14863_Schermafbeelding+2012-05-29+om+14.32.01.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 12:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372650#M1175967</guid>
      <dc:creator />
      <dc:date>2012-05-29T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372651#M1175968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if i understand you correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select e.g. event 1, you'd like to see the mean of all rows with type A?&lt;/P&gt;&lt;P&gt;And if you select e.g. event 5, you'd like to see the mean of all rows with type B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you select two event that fall in two types? E.g. a selection of event 1 and 4?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372651#M1175968</guid>
      <dc:creator />
      <dc:date>2012-05-29T13:01:09Z</dc:date>
    </item>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372652#M1175969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you understood me right.&lt;/P&gt;&lt;P&gt;When two events of the two types are selected, the total mean of all Scores needs to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this one and seems to work? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg({1&amp;lt;EVENT=, TYPE=P(TYPE)&amp;gt;} SCORE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to hear your opinion on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinds regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372652#M1175969</guid>
      <dc:creator />
      <dc:date>2012-05-29T13:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372653#M1175970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you're correct by using that function (P() = Possible). You can even use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg({1&amp;lt;TYPE=P(TYPE)&amp;gt;} SCORE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Some more examples from the documentation of this function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Customer)&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;returns the sales for current selection, but only those customers that ever have bought the product ‘Shoe’. The element function P( ) here returns a list of possible customers; those that are implied by the selection ‘Shoe’ in the field Product. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;})&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;same as above. If the field in the element function is omitted, the function will return the possible values of the field specified in the outer assignment. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;returns the sales for current selection, but only those customers that ever have supplied the product ‘Shoe’. The element function P( ) here returns a list of possible suppliers; those that are implied by the selection ‘Shoe’ in the field Product. The list of suppliers is then used as a selection in the field Customer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = E({1&amp;lt;Product={‘Shoe’}&amp;gt;})&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;returns the sales for current selection, but only those customers that never bought the product ‘Shoe’. The element function E( ) here returns the list of &lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;excluded&lt;/SPAN&gt; customers; those that are &lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;excluded&lt;/SPAN&gt; by the selection ‘Shoe’ in the field Product.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/372653#M1175970</guid>
      <dc:creator />
      <dc:date>2012-05-29T13:28:42Z</dc:date>
    </item>
  </channel>
</rss>

