<?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: Set Analysis &amp; Current Field Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259049#M1192311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Jonathan about that set analysis will do, although the expressions should be different (assuming you are always going to select a country within a continent):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt; Country = &amp;gt;} TOTAL OrderAmount) / Sum(OrderAmount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dividend is used to keep the continent selection, regardless the country selected. The divisor will return the sum for the current selection: if there is no contry or continent selected, the result shuold be 1 (sum of all divided by sum of all).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 08:03:22 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-07-06T08:03:22Z</dc:date>
    <item>
      <title>Set Analysis &amp; Current Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259047#M1192309</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 need some help in formulating a set analysis for my table. Currently I have a region list box consisting of ( America, Asia, Oceania, etc etc) and a country list box (Australia, South africa etc) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like my end result to be like this ---&amp;gt; Sum of Order for the current selection in region list box divided by ﻿Sum of orders for the current selection in country list box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;Total Orders counts in Oceania = 1000 &lt;/P&gt;&lt;P&gt;Total Order Counts in Australia = 10&lt;/P&gt;&lt;P&gt;Result = 100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 07:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259047#M1192309</guid>
      <dc:creator>riceball</dc:creator>
      <dc:date>2011-07-06T07:01:39Z</dc:date>
    </item>
    <item>
      <title>Set Analysis &amp; Current Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259048#M1192310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analyses would do it/&lt;BR /&gt;Expr1: Sum({&amp;lt;(Counrty = )&amp;gt;} Orders)&lt;/P&gt;&lt;P&gt;Expr2 : Sum({&amp;lt;(Region= )&amp;gt;} Orders)&lt;/P&gt;&lt;P&gt;Expr3: Expr1/Expr2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 07:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259048#M1192310</guid>
      <dc:creator />
      <dc:date>2011-07-06T07:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; Current Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259049#M1192311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Jonathan about that set analysis will do, although the expressions should be different (assuming you are always going to select a country within a continent):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt; Country = &amp;gt;} TOTAL OrderAmount) / Sum(OrderAmount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dividend is used to keep the continent selection, regardless the country selected. The divisor will return the sum for the current selection: if there is no contry or continent selected, the result shuold be 1 (sum of all divided by sum of all).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 08:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259049#M1192311</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-06T08:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; Current Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259050#M1192312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the above method, and yes, the results shows the sum of orderamt for all the countries regarding of which country i selected. This is useful for me.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 02:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259050#M1192312</guid>
      <dc:creator>riceball</dc:creator>
      <dc:date>2011-07-08T02:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; Current Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259051#M1192313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks jonathan! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some changes in the expression ( bracket before the word "country" removed)&amp;nbsp; and combined the them into one: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿Sum({Region=&amp;gt;} Order) / ﻿Sum(Country=&amp;gt;} Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine ! Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 02:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Field-Selection/m-p/259051#M1192313</guid>
      <dc:creator>riceball</dc:creator>
      <dc:date>2011-07-08T02:50:03Z</dc:date>
    </item>
  </channel>
</rss>

