<?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 count certain posts in a datefield? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273454#M496378</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;Can you explain the expression &lt;SPAN style="color: blue; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'_',2)))&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;)) a bit more Henric?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;I´m new to QV and not´t&amp;nbsp; that good at expressions. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2012 12:39:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-13T12:39:48Z</dc:date>
    <item>
      <title>How to count certain posts in a datefield?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273451#M496375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope someone can help me with a exprecssion for the count of just ceratin post in my datefield.&lt;/P&gt;&lt;P&gt;When I select month I get all post in the datekey that have something to do with this month. But how can I in a chart just show the ones that have a end date of the selected month?&amp;nbsp;&amp;nbsp; Sort of Count({'Datekey=*_2011-Current selectedMonth})%DateKey) and vice vers for started same month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qw123.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/10304_qw123.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;All suggestions and hints are welcome! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 11:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273451#M496375</guid>
      <dc:creator />
      <dc:date>2012-01-13T11:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to count certain posts in a datefield?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273452#M496376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try creating a variable defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSearch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '"*_' &amp;amp; Only(Year) &amp;amp; '-' &amp;amp; Only(Month) &amp;amp; '-*"'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to figure out how to get the month in numeric format though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Then in your chart you can use something like Count( {&amp;lt; Key = {$(vSearch)} &amp;gt;} Key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more efficient way would be to check in the script if the year-month matches the last part of the key field and flag rows that do. Then the expression would be something like Count( {&amp;lt; Flag = {1} &amp;gt;} Key). Make another similar flag for the first part if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 11:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273452#M496376</guid>
      <dc:creator>teempi</dc:creator>
      <dc:date>2012-01-13T11:59:29Z</dc:date>
    </item>
    <item>
      <title>How to count certain posts in a datefield?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273453#M496377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9pt; font-family: Calibri;"&gt;There are several ways to do this using string functions. One way could be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: normal; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;,'_',2)))&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9pt; font-family: Calibri;"&gt;where the subfield function extracts the string found after the underscore character. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 12:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273453#M496377</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-01-13T12:07:03Z</dc:date>
    </item>
    <item>
      <title>How to count certain posts in a datefield?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273454#M496378</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;Can you explain the expression &lt;SPAN style="color: blue; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'_',2)))&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;)) a bit more Henric?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;I´m new to QV and not´t&amp;nbsp; that good at expressions. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 12:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273454#M496378</guid>
      <dc:creator />
      <dc:date>2012-01-13T12:39:48Z</dc:date>
    </item>
    <item>
      <title>How to count certain posts in a datefield?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273455#M496379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9pt;"&gt;The &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt; function is used to pick out a substring from a field value that is in fact a list of values. So the &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;,'_',1) &lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;call will interpret the &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt; as a list of field values separated by underscores (specified by the 2&lt;SUP&gt;nd&lt;/SUP&gt; parameter) and return the first value in the list (specified by the 3&lt;SUP&gt;rd&lt;/SUP&gt; parameter). Which is your start date.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: black; font-size: 9pt; mso-ansi-language: EN; font-family: Calibri;"&gt;Then you can use this information in different ways. You can for instance test if there is a start date at all:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;len&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;trim&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;,'_',1)))&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;...&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;and you can (in a chart or text box) count the &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;s that lack a start date:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;Count&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;len&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;trim&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;,'_',1)))=0,&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;or you can count the &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;s that &lt;STRONG style="mso-bidi-font-weight: normal; text-decoration: underline;"&gt;have&lt;/STRONG&gt; end dates:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;Count&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;len&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;trim&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;,'_',2)))&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; line-height: 115%; font-size: 9pt; mso-ansi-language: EN;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: black; font-size: 9pt; mso-ansi-language: EN; font-family: Calibri;"&gt;Does this make sense?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 12:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-certain-posts-in-a-datefield/m-p/273455#M496379</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-01-13T12:58:40Z</dc:date>
    </item>
  </channel>
</rss>

