<?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: Percentage of Gender in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840087#M470635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stuart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please share your app? let me check if its a data issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 10:17:31 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2015-05-12T10:17:31Z</dc:date>
    <item>
      <title>Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840081#M470629</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;Having some issues with a dimensionless straight table; sure its something easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Data has the following columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustomerID, Gender&lt;/P&gt;&lt;P&gt;1111, Male&lt;/P&gt;&lt;P&gt;2222, Male&lt;/P&gt;&lt;P&gt;3333, Female&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I properly calculate the percentage of Male customer ID's? I seem to be able to calculate it fine but when selections are made the percentage does not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(count(distinct{$&amp;lt;Gender={'Male'}&amp;gt;}&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;count( DISTINCT &lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives 52% with no selections. When I choose Male in a Filter box it shows 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT when I choose Female in a list box it shows 132%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing incorrect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 07:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840081#M470629</guid>
      <dc:creator />
      <dc:date>2015-05-12T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840082#M470630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you choose Male the Female will be filtered out so for each ID 1111,2222 there is only one Male so is 100%&lt;/P&gt;&lt;P&gt;What do you expect when choosing Female with your current expression(Male).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use {1}&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Gender={'Male'}&amp;gt;}&amp;nbsp; CustomerID)/count({1} Gender)&lt;/P&gt;&lt;P&gt;To disregard all selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 09:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840082#M470630</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-05-12T09:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840083#M470631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you filter Female your expression perfom the calculation &lt;STRONG&gt;Male / Female.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a single expression to calculate percentage dinamically based on Gender selection try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Gender={"$(=GetFieldSelections(Gender))"}&amp;gt;}DISTINCT Customer) / Count({1}DISTINCT Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 09:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840083#M470631</guid>
      <dc:creator />
      <dc:date>2015-05-12T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840084#M470632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you perform a selection the sub set formed in numerator is always releated to the total Customer count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: selections: Gender = Male, City = New York&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation: Male in New York / Total Customers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 09:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840084#M470632</guid>
      <dc:creator />
      <dc:date>2015-05-12T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840085#M470633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I choose female then the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Female percent should be 100%&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(count(distinct{$&amp;lt;Gender={'Female'}&amp;gt;}&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;CustomerID&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count( DISTINCT &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;male percent should be 0%&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(count(distinct{$&amp;lt;Gender={'Male'}&amp;gt;}&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;CustomerID&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count( DISTINCT &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;even if the percentages were a percentage of the total count.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;No selections = M 50% F 50%&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Select F = M 0% F50%&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Select New York - M 0% F 35%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840085#M470633</guid>
      <dc:creator />
      <dc:date>2015-05-12T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840086#M470634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - i tried your expression but it returns '-'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840086#M470634</guid>
      <dc:creator />
      <dc:date>2015-05-12T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840087#M470635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stuart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please share your app? let me check if its a data issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840087#M470635</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-05-12T10:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840088#M470636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stuart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post a sample data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840088#M470636</guid>
      <dc:creator>mohammadkhatimi</dc:creator>
      <dc:date>2015-05-12T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840089#M470637</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;the set expression {$&amp;lt;Gender={'Male'}&amp;gt;} lets your count of male customers &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;disregard the gender selection, while &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count( DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit; color: #3d3d3d;"&gt;CustomerID&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) only counts the selected female customers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;so possible solution could be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14314272037934958 jive_text_macro" jivemacro_uid="_14314272037934958"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(distinct{$*1&amp;lt;Gender={'Male'}&amp;gt;}&amp;nbsp; CustomerID)/count( DISTINCT CustomerID)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14314271999554623" jivemacro_uid="_14314271999554623"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(distinct{$&amp;lt;CustomerID=p({$&amp;lt;Gender={'Male'}&amp;gt;} CustomerID)&amp;gt;}&amp;nbsp; CustomerID)/count( DISTINCT CustomerID)&lt;/SPAN&gt;&lt;/PRE&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="QlikCommunity_Thread_163605_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86282_QlikCommunity_Thread_163605_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_163605_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/86283_QlikCommunity_Thread_163605_Pic2.JPG" style="height: auto;" /&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;IMG alt="QlikCommunity_Thread_163605_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/86284_QlikCommunity_Thread_163605_Pic3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_163605_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/86285_QlikCommunity_Thread_163605_Pic4.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840089#M470637</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-12T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of Gender</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840090#M470638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is it possible to have another calculation where essentially the percentage decreases the more selections ones makes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Male = 50%&lt;/P&gt;&lt;P&gt;Choose Age 25-35 = 20%&lt;/P&gt;&lt;P&gt;Choose Country America = 3%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 13:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-of-Gender/m-p/840090#M470638</guid>
      <dc:creator />
      <dc:date>2015-05-12T13:01:08Z</dc:date>
    </item>
  </channel>
</rss>

