<?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: Need help with Quarter Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502397#M556445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;YearQuarterID= {$(=max(YearQuarterID)}, Year=, Month=, Date=&amp;gt;} [Patient ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jul 2013 07:40:28 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-07-20T07:40:28Z</dc:date>
    <item>
      <title>Need help with Quarter Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502396#M556444</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 new to Qlikview and learning the ropes. I am kind of stumped on this issue and was hoping someone can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario where i Have a table with patients, disease and date. The requirement is to display count of patients in a bar chart by disease as a stacked bar by Quarter Year for current and last 3 quarters based on year and month selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is i have created a master calendar and was able to get quarter year and was able to get last 3 quarter values using the following expression&lt;/P&gt;&lt;P&gt;Count({&amp;lt;YearQuarterID= {"&amp;lt;=$(=max(YearQuarterID)) &amp;gt;$(=max(YearQuarterID)-4) "}, Year=, Month=, Date=&amp;gt;} [Patient ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i was informed I need not aggreate the months values in a QTR but display the values for the last month in each quarter. So if some one selects Year = 2013, Month = Feb. The chart should display Q1 13 with Feb count value as one bar followed by Q4 12 with Dec 12 count value and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas how we can do this? Or get the count of the last month of the quarter in which the month selected falls in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 20:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502396#M556444</guid>
      <dc:creator />
      <dc:date>2013-07-19T20:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Quarter Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502397#M556445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;YearQuarterID= {$(=max(YearQuarterID)}, Year=, Month=, Date=&amp;gt;} [Patient ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 07:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502397#M556445</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-20T07:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Quarter Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502398#M556446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No sorry, when i try that all i get is no data to display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 14:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502398#M556446</guid>
      <dc:creator />
      <dc:date>2013-07-22T14:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Quarter Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502399#M556447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So with the help of jagan mohan's previous post&amp;nbsp; i was able to write an expression to get the max month value in a quarter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Aggr(If(Max(TOTAL&amp;lt;YearQuarter, Disease&amp;gt; YearMonthID) = YearMonthID, Count([Patient ID])), YearQuarter, Disease YearMonthID)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now is there a way i can display last 3 quarters values? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 16:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Quarter-Calculations/m-p/502399#M556447</guid>
      <dc:creator />
      <dc:date>2013-07-22T16:23:43Z</dc:date>
    </item>
  </channel>
</rss>

