<?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: Unexpected Result from an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141259#M753665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With old or new?. New one I shared ignored gender selection for the denominator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2018 12:39:03 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2018-10-09T12:39:03Z</dc:date>
    <item>
      <title>Unexpected Result from an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141256#M753662</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 am trying to calculate the percentage for a Dimension (M/F). When the Gender Dimension is selected in the Filter the result from the calculation is wrong (weird). Obviously my expression is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count({$&amp;lt; Gender = {"M"}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count(&amp;nbsp; SalesOrderNumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gender_percentage_expression.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215371_gender_percentage_expression.PNG" style="height: 325px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;When the Female Gender is selected the % Male calculation is expected to be zero. That is what I am expecting.&lt;/P&gt;&lt;P&gt;How to get that?&lt;/P&gt;&lt;P&gt;Attaching the file.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141256#M753662</guid>
      <dc:creator>sqlpuzzle</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Result from an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141257#M753663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ignore the Gender dimension in the denominator. if you dont you are dividing male count/female count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Count({$&amp;lt; Gender = {'M'}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count( {$&amp;lt; Gender = &amp;gt;} SalesOrderNumber)&lt;/P&gt;&lt;P&gt; Count({$&amp;lt; Gender = {'F'}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count( {$&amp;lt; Gender = &amp;gt;} SalesOrderNumber)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 21:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141257#M753663</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-08T21:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Result from an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141258#M753664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why the filter is not getting rid of the filtered dimension? &lt;/P&gt;&lt;P&gt;If I select M in the filter, I was thinking the Female records will be filtered out and the percentage will either dissappear or become zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 12:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141258#M753664</guid>
      <dc:creator>sqlpuzzle</dc:creator>
      <dc:date>2018-10-09T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Result from an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141259#M753665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With old or new?. New one I shared ignored gender selection for the denominator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 12:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141259#M753665</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-10-09T12:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Result from an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141260#M753666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need these expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Count({$&amp;lt; Gender *= {"M"}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count({&amp;lt;Gender&amp;gt;}SalesOrderNumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Count({$&amp;lt; Gender *= {"F"}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count({&amp;lt;Gender&amp;gt;}SalesOrderNumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215464_Capture.PNG" style="height: 327px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 12:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141260#M753666</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-09T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Result from an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141261#M753667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;= Count({$&amp;lt; Gender = {"M"}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count(TOTAL SalesOrderNumber)&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;= Count({$&amp;lt; Gender = {"F"}&amp;gt;}&amp;nbsp; SalesOrderNumber)/ Count(TOTAL SalesOrderNumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 13:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-Result-from-an-Expression/m-p/141261#M753667</guid>
      <dc:creator>Jesh19</dc:creator>
      <dc:date>2018-10-09T13:02:01Z</dc:date>
    </item>
  </channel>
</rss>

