<?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 How to write an expression so selection on variable-name is excluded from computation in the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252704#M1208474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume variable "gender" with values "men" and "women"&lt;/P&gt;&lt;P&gt;Assume variables "age" associated with each record. Values can ge "young" or "old"&lt;/P&gt;&lt;P&gt;In one bar chart with 4 bars, I want to compare count on "young men" with count on "all men" and count on "young women" with count on "all women"&lt;/P&gt;&lt;P&gt;I think the string ($&amp;lt;age&amp;gt;=) goes in there somewhere, but I can make this work.&lt;/P&gt;&lt;P&gt;Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Apr 2010 18:39:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-20T18:39:20Z</dc:date>
    <item>
      <title>How to write an expression so selection on variable-name is excluded from computation in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252704#M1208474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume variable "gender" with values "men" and "women"&lt;/P&gt;&lt;P&gt;Assume variables "age" associated with each record. Values can ge "young" or "old"&lt;/P&gt;&lt;P&gt;In one bar chart with 4 bars, I want to compare count on "young men" with count on "all men" and count on "young women" with count on "all women"&lt;/P&gt;&lt;P&gt;I think the string ($&amp;lt;age&amp;gt;=) goes in there somewhere, but I can make this work.&lt;/P&gt;&lt;P&gt;Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 18:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252704#M1208474</guid>
      <dc:creator />
      <dc:date>2010-04-20T18:39:20Z</dc:date>
    </item>
    <item>
      <title>How to write an expression so selection on variable-name is excluded from computation in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252705#M1208475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Bill, in your case that can be solved with set analysis your expression should look similar to this:&lt;/P&gt;&lt;P&gt;count({gender = {'men'}, age = {'young'}} PersonID)&lt;/P&gt;&lt;P&gt;You can modify the above to get your 4 expressions.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 19:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252705#M1208475</guid>
      <dc:creator />
      <dc:date>2010-04-20T19:08:25Z</dc:date>
    </item>
    <item>
      <title>How to write an expression so selection on variable-name is excluded from computation in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252706#M1208476</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;you could use formulas as under:&lt;/P&gt;&lt;P&gt;For counting the young males = count ( if ( Gender = 'Male' and Age = 'Young' , ID,))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you would need to repeat for all the 4 criterias.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252706#M1208476</guid>
      <dc:creator />
      <dc:date>2010-04-21T06:52:02Z</dc:date>
    </item>
    <item>
      <title>How to write an expression so selection on variable-name is excluded from computation in the expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252707#M1208477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill, Umang approach is very straight forward and easy to understand, however I suggest trying with set analysis which is commonly faster, or even better, try both and I see what works for you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 15:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-expression-so-selection-on-variable-name-is/m-p/252707#M1208477</guid>
      <dc:creator />
      <dc:date>2010-04-21T15:31:05Z</dc:date>
    </item>
  </channel>
</rss>

