<?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 issue with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267346#M1204083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that makes sense. Your chart will only have the selected city in it? Then use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(Population)/Sum({1} TOTAL &amp;lt;Country&amp;gt; Population)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The numerator will be the Sum of population respecting dimensions and selections, so it will be just your selected city. The denominator will be the Sum of population ignoring dimensions, except country (TOTAL &amp;lt;Country&amp;gt;) and ignoring selection ({1}).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jul 2010 18:10:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-22T18:10:32Z</dc:date>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267341#M1204078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table with 3 fields :&lt;/P&gt;&lt;P&gt;- city&lt;/P&gt;&lt;P&gt;- country (a city belongs to a unique country !)&lt;/P&gt;&lt;P&gt;- population&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the user to choose, in a list box, a city then to display in a box the overall population of the country.&lt;/P&gt;&lt;P&gt;So, for 2 cities from the same country, I want to have the same results.&lt;/P&gt;&lt;P&gt;I suspect to use set analysis but i'm not so confortable with it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;JJJ&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 15:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267341#M1204078</guid>
      <dc:creator />
      <dc:date>2010-07-22T15:38:09Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267342#M1204079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jean,&lt;/P&gt;&lt;P&gt;sum (total&amp;lt;Country&amp;gt; Population)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 16:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267342#M1204079</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-07-22T16:19:46Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267343#M1204080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;No it doesn't work, just giving me the population of my selected city.&lt;/P&gt;&lt;P&gt;I think we need set analysis.&lt;/P&gt;&lt;P&gt;thanks anyway&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 17:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267343#M1204080</guid>
      <dc:creator />
      <dc:date>2010-07-22T17:25:53Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267344#M1204081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The formula is correct for getting the country population on each city record, but you probably need to ignore the selection along with it. Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum ({1}total&amp;lt;Country&amp;gt; Population)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But then I don't know why you would need a City selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 17:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267344#M1204081</guid>
      <dc:creator />
      <dc:date>2010-07-22T17:52:23Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267345#M1204082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nat,&lt;/P&gt;&lt;P&gt;Of course my formula is more complex.&lt;/P&gt;&lt;P&gt;For a selected city, i want to calculate a ratio&lt;/P&gt;&lt;P&gt;sum(Population) of the selected city / sum of the population for all the cities belongs to the country of the selected city.&lt;/P&gt;&lt;P&gt;So I need the way to calculate the denominator of the ratio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 17:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267345#M1204082</guid>
      <dc:creator />
      <dc:date>2010-07-22T17:59:15Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267346#M1204083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that makes sense. Your chart will only have the selected city in it? Then use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(Population)/Sum({1} TOTAL &amp;lt;Country&amp;gt; Population)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The numerator will be the Sum of population respecting dimensions and selections, so it will be just your selected city. The denominator will be the Sum of population ignoring dimensions, except country (TOTAL &amp;lt;Country&amp;gt;) and ignoring selection ({1}).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 18:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267346#M1204083</guid>
      <dc:creator />
      <dc:date>2010-07-22T18:10:32Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267347#M1204084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nat,&lt;/P&gt;&lt;P&gt;Your formula is OK in straight table but not in a text box.&lt;/P&gt;&lt;P&gt;I found out this :&lt;/P&gt;&lt;P&gt;Sum(Pop)/Sum({1 &amp;lt;Country=P(Country)&amp;gt;} Pop)&lt;/P&gt;&lt;P&gt;It works well, but I dont undestrand P(). Maybe you have an idea ?&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 19:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267347#M1204084</guid>
      <dc:creator />
      <dc:date>2010-07-22T19:47:35Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267348#M1204085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never seen the P() function before and it seems to be absent from the Reference Manual. I did find reference to it on the QlikView site. Look here: &lt;A href="http://community.qlik.com/media/p/72390.aspx"&gt;http://community.qlik.com/media/p/72390.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems to do the same thing as Concat(), which is list the selected (or maybe possible if it's working for you when a City is selected). So, I think your formula is saying ignore selections ({1}), but make Country equal to the possible countries.&lt;/P&gt;&lt;P&gt;That link also says there is an E() function, which seems to give everything except the selected items. I've found myself in need of a similar formula to the one you have, but I could not figure out how to do it in Set Analysis. I'm going to do some testing on it, but it seems promising.&lt;/P&gt;&lt;P&gt;Maybe that's what the P stands for Possible and E is Excluded? &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;EDIT: Found it in the Reference Guide. Page 360 of Book III in the Set Analysis section: Set Modifiers with Implicit Field Value Definitions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 20:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267348#M1204085</guid>
      <dc:creator />
      <dc:date>2010-07-22T20:03:06Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267349#M1204086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much, I also found an intersting post &lt;A href="http://community.qlik.com/forums/t/17500.aspx"&gt;http://community.qlik.com/forums/t/17500.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;where you bring an answer.&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 20:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267349#M1204086</guid>
      <dc:creator />
      <dc:date>2010-07-22T20:14:11Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267350#M1204087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice, I never did see the additions to that post. I think the new functions are a lot better than the old way. I don't know why QlikView made them so hard to find.&lt;/P&gt;&lt;P&gt;EDIT: I just implemented this on an app I'm working on and it is a ton faster than Concat. With Concat, I had to set calculation conditions to prevent charts from loading with too many records. Using P() instead I was able to load 10 times as many records faster than Concat. No more watching chart rendering progress bars!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 20:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267350#M1204087</guid>
      <dc:creator />
      <dc:date>2010-07-22T20:46:27Z</dc:date>
    </item>
    <item>
      <title>issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267351#M1204088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the "Set Analysis" section in the QlikView F1-help. Definitely my favorite source for troubleshooting my botched set analysis syntax when I run into trouble.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 03:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/issue-with-set-analysis/m-p/267351#M1204088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-23T03:55:36Z</dc:date>
    </item>
  </channel>
</rss>

