<?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: Count within Quarter periods using InQuarter ()  function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537094#M200728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;means length of the date should be &amp;gt;0(there should be some value present in it)&lt;BR /&gt;it wont take empty space&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 04:48:14 GMT</pubDate>
    <dc:creator>saumyashah90</dc:creator>
    <dc:date>2013-10-11T04:48:14Z</dc:date>
    <item>
      <title>Count within Quarter periods using InQuarter ()  function?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537091#M200725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My main Calendar Dim (Mstr_QuarterYear) is from a Island Calendar so its &lt;STRONG&gt;not&lt;/STRONG&gt; linked. based on this &lt;A _jive_internal="true" href="https://community.qlik.com/message/56030#56030"&gt;post&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;I use that for my Quarterly Spread on X axis. Then I want to count or sum up all Opportunities withing that given Quarter&lt;/P&gt;&lt;P&gt;based on the range of Create and Close dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now it wont display anything.&amp;nbsp; I was hoping this function would make things relatively simple.&lt;/P&gt;&lt;P&gt;No matter what combo of dates I plug in it displays nothing or the count is the same across the entire chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are two ways I have tried:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;InQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CloseDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 0 ), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CountOpps&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;InQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CloseDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;), 0 ), &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CountOpps&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) ) Shows one bar &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;A name="kanchor488"&gt;&lt;/A&gt;&lt;A name="InQuarter"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;InQuarter&lt;/SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;date, basedate , shift [, first_month_of_year = 1]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;See attached image of Dim tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG __jive_id="47409" alt="2013-10-09_190612.png" class="jive-image" height="230" src="https://community.qlik.com/legacyfs/online/47409_2013-10-09_190612.png" style="width: 509px; height: 229.3387358184765px;" width="509" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;If( Min(CreateDate) &amp;lt; Max(CloseDate),Sum(CountOpps))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG __jive_id="47411" alt="2013-10-09_191225.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/47411_2013-10-09_191225.png" style="width: 620px; height: 76px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 23:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537091#M200725</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-09T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate within Quarter periods using InQuarter ()  urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537092#M200726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using that try using&lt;/P&gt;&lt;P&gt;Date_Dimensions:&lt;/P&gt;&lt;P&gt;Load Date&lt;/P&gt;&lt;P&gt;Month(Date) as Month,&lt;/P&gt;&lt;P&gt;Week(Date) as Week,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month([Date]/3) as Quarter,&lt;/P&gt;&lt;P&gt;Year(Date) as Year&lt;/P&gt;&lt;P&gt;Resident Tablename&lt;/P&gt;&lt;P&gt;where len(LTrim(Date))&amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use you expression for aggregation&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 04:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537092#M200726</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T04:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count within Quarter periods using InQuarter ()  function?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537093#M200727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you explain the logic of this statement: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;where len(LTrim(Date))&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I can crate a flag for each opportunity this active each day until closed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 17:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537093#M200727</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-10T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count within Quarter periods using InQuarter ()  function?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537094#M200728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;means length of the date should be &amp;gt;0(there should be some value present in it)&lt;BR /&gt;it wont take empty space&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 04:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-within-Quarter-periods-using-InQuarter-function/m-p/537094#M200728</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-11T04:48:14Z</dc:date>
    </item>
  </channel>
</rss>

