<?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 Generating counts in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171419#M41420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gang - very new to Qlikview and need some simple (?) assistance&lt;/P&gt;&lt;P&gt;I have a status field in a fact table - based around email delivery (well - actually a StatusID - which links to a Dimension :))&lt;/P&gt;&lt;P&gt;The status field has a number of values e.g. 'sent', 'bounced','delivered','opened','clicked' etc.&lt;/P&gt;&lt;P&gt;I need to add an expression that does the following;&lt;/P&gt;&lt;P&gt;SUM(Opened) / SUM(Delivered)&lt;/P&gt;&lt;P&gt;This will give me an 'Opened %' for each Email campaign&lt;/P&gt;&lt;P&gt;Help please&lt;/P&gt;&lt;P&gt;Mark...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 15:08:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-23T15:08:07Z</dc:date>
    <item>
      <title>Generating counts in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171419#M41420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gang - very new to Qlikview and need some simple (?) assistance&lt;/P&gt;&lt;P&gt;I have a status field in a fact table - based around email delivery (well - actually a StatusID - which links to a Dimension :))&lt;/P&gt;&lt;P&gt;The status field has a number of values e.g. 'sent', 'bounced','delivered','opened','clicked' etc.&lt;/P&gt;&lt;P&gt;I need to add an expression that does the following;&lt;/P&gt;&lt;P&gt;SUM(Opened) / SUM(Delivered)&lt;/P&gt;&lt;P&gt;This will give me an 'Opened %' for each Email campaign&lt;/P&gt;&lt;P&gt;Help please&lt;/P&gt;&lt;P&gt;Mark...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 15:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171419#M41420</guid>
      <dc:creator />
      <dc:date>2010-08-23T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Generating counts in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171420#M41421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression it´s ok, just put as dimension a field has a status!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 15:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171420#M41421</guid>
      <dc:creator />
      <dc:date>2010-08-23T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Generating counts in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171421#M41422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry - poor explantion from me&lt;/P&gt;&lt;P&gt;What is need is;&lt;/P&gt;&lt;P&gt;((Count(1) where [Email status] = 'Opened') / (Count(1) where [Email status] = 'Delivered'))&lt;/P&gt;&lt;P&gt;is probably a better explantion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 15:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171421#M41422</guid>
      <dc:creator />
      <dc:date>2010-08-23T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Generating counts in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171422#M41423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a crude solution, but you can try something like this.&lt;/P&gt;&lt;P&gt;Sum( if([Email Status] = 'Opened', 1, null()) ) / Sum( if([Email Status] = 'Delivered', 1, null()) )&lt;/P&gt;&lt;P&gt;Preferably I'd rather take care of that in the load script creating a counter for my "Devlivered" and "Opened".&lt;/P&gt;&lt;P&gt;if([Email Status] = 'Opened', 1, null()) ) as [Open Counter],&lt;/P&gt;&lt;P&gt;if([Email Status] = 'Delivered', 1, null()) ) as [Delivered Counter]&lt;/P&gt;&lt;P&gt;Then you can simplify your expression.&lt;/P&gt;&lt;P&gt;Sum([Open Counter]) / Sum([Delivered Counter])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 17:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-counts-in-an-expression/m-p/171422#M41423</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2010-08-23T17:24:29Z</dc:date>
    </item>
  </channel>
</rss>

