<?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: Quarterly reporting - reporting last day activity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455311#M169913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guilty of carelessness on this one. The additional dimensions should be included in the aggr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SUM(aggr(FirstSortedValue(PeriopSuspendedFlag, -DATEValue-1), SourceIdentifier, &lt;STRONG&gt;FinancialYear, Quarter&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 18:55:45 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2012-10-02T18:55:45Z</dc:date>
    <item>
      <title>Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455306#M169908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing some quarterly reporting where I have to report on sums of activity for Elective Surgery reduction.&amp;nbsp; This is fine, but where I am getting in trouble is reporting a special type of activity on the last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&amp;nbsp; Over the 3 month period a patient may be suspended on the list due to ill health.&amp;nbsp; If they are Not suspended on the last day of the month I need to show them as Not Suspended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachment shows a patient who was suspended off the waiting list for the first part of the July - September quarter.&amp;nbsp;&amp;nbsp; If someone looked at my report for early August I would want them to see that this patient is Suspended.&amp;nbsp; However,&amp;nbsp; if they were to look at the report from end of August onward (where the patient is no longer suspended) I would want the count of suspended to = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've placed some comments in my attachment and hope that someone can help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 05:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455306#M169908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-01T05:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455307#M169909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the file &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 06:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455307#M169909</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2012-10-01T06:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455308#M169910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sivaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for replying.&amp;nbsp; I tried something similiar (using a variable to get MAX(DATEValue)) but wasn't able to get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works for the last day of the quarter, but what if you select a DATEValue range of 31/07/2012 - 15/08/2012?&amp;nbsp; All of these have the suspension flag set to 1 and the value of MAX(DATEValue) should now be 15/08/2012.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet the count of Suspended is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to say is that the report needs to be accurate at any given point during the current quarter - or historically if the user selects an earlier month - Say July.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 22:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455308#M169910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-01T22:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455309#M169911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum(aggr(FirstSortedValue(PeriopSuspendedFlag, -DATEValue), SourceIdentifier))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 01:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455309#M169911</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-10-02T01:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455310#M169912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; This is quite ingenious and seemed at first to do the job.&amp;nbsp; However, I'm still getting an incorrect count of Suspended patients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new attachment now has two patients in it.&amp;nbsp; Both are suspended on the last day of September however, the pivot table only shows a count of 1 suspended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 02:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455310#M169912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-02T02:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455311#M169913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guilty of carelessness on this one. The additional dimensions should be included in the aggr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SUM(aggr(FirstSortedValue(PeriopSuspendedFlag, -DATEValue-1), SourceIdentifier, &lt;STRONG&gt;FinancialYear, Quarter&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 18:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455311#M169913</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-10-02T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Quarterly reporting - reporting last day activity</title>
      <link>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455312#M169914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that one day the mysteries of AGGR() will be clearer to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 22:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarterly-reporting-reporting-last-day-activity/m-p/455312#M169914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-02T22:31:05Z</dc:date>
    </item>
  </channel>
</rss>

