<?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 Set Analysis Using Date Islands to Get Max Populated Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227369#M79480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done.&lt;/P&gt;&lt;P&gt;I'm agree with Nick Bor, use Set Analysis or IF condition or both .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 15:51:16 GMT</pubDate>
    <dc:creator>mihaiturturica</dc:creator>
    <dc:date>2010-07-21T15:51:16Z</dc:date>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227360#M79471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7610.Test.zip:550:0]Hi, I have a StatusHistory table which includes the following:&lt;/P&gt;&lt;P&gt;Table - StausHistory:&lt;BR /&gt;Field - Status&lt;BR /&gt;Field - ChangeDate&lt;/P&gt;&lt;P&gt;There are two delinked Date tables which need to be used to select a To Date and a From Date. It's important to keep in mind the date filters are delinked. Based on the selected date range, I need to show a count of only the statuses that apply to the max date for each contact. Each contact may have a status on a different max date.&lt;/P&gt;&lt;P&gt;For instance, a patient has the following statuses and associated changedates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="width: 197.1pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 0in 0in 0in;" width="263"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="width: 74.55pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="99"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;PATIENT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 74.55pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="99"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;CHANGEDATE&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;STATUS&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1;"&gt;&lt;TD style="width: 74.55pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="99"&gt;&lt;P&gt;PATIENT1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 74.55pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="99"&gt;&lt;P&gt;1/1/2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;Active&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 2;"&gt;&lt;TD style="width: 74.55pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="99"&gt;&lt;P&gt;PATIENT1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 74.55pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="99"&gt;&lt;P&gt;2/1/2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;Hold&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 3; mso-yfti-lastrow: yes;"&gt;&lt;TD style="width: 74.55pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="99"&gt;&lt;P&gt;PATIENT1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 74.55pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="99"&gt;&lt;P&gt;3/1/2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;Inactive&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;With no date selections, 3/1 is the max change date with an Inactive status:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="width: 270.3pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 0in 0in 0in;" width="360"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="width: 63pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="84"&gt;&lt;P&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;PATIENT&lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 1in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="96"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;CHANGEDATE&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 39.3pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="52"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Active&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Hold&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Inactive&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1; mso-yfti-lastrow: yes;"&gt;&lt;TD style="width: 63pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="84"&gt;&lt;P&gt;PATIENT1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 1in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="96"&gt;&lt;P&gt;3/1/2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 39.3pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="52"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 48pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;With 12/31/09 to 1/15/10 selected, 1/1 is the max change date with an Active status:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin: auto auto auto -0.75pt; width: 341.4pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 0in 0in 0in;" width="455"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="width: 7.8pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="10"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 51.45pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="69"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;PATIENT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 94.5pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="126"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;CHANGEDATE&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 0.75in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="72"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Active&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 40.5pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="54"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Hold&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 93.15pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="124"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Inactive&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1; mso-yfti-lastrow: yes;"&gt;&lt;TD style="width: 7.8pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="10"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 51.45pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="69"&gt;&lt;P&gt;PATIENT1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 94.5pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="126"&gt;&lt;P&gt;1/1/2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 0.75in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="72"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 40.5pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="54"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 93.15pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="124"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;With 12/31/09 to 2/15/10 selected, 2/1 is the max change date with a Hold status:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin: auto auto auto -0.75pt; width: 333.6pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 0in 0in 0in;" width="445"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="width: 59.25pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="79"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;PATIENT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 99pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="132"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;CHANGEDATE&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 0.75in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="72"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Active&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 0.5in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="48"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Hold&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 85.35pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="114"&gt;&lt;P style="font-weight: bold; mso-bidi-font-weight: normal"&gt;Inactive&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1; mso-yfti-lastrow: yes;"&gt;&lt;TD style="width: 59.25pt; height: 15pt; background-color: transparent; border: #f0f0f0; padding: 0in;" valign="top" width="79"&gt;&lt;P&gt;PATIENT1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 99pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="132"&gt;&lt;P&gt;2/1/2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 0.75in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="72"&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 0.5in; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="48"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 85.35pt; padding-top: 0in; height: 15pt; background-color: transparent; border: #f0f0f0;" valign="bottom" width="114"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;TXStatusCount is the fact that represents the count.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The actual pivot table does not show the patient or the date. It show's the Patient's Account Manager in Rows and Treatment Status as columns in a pivot table. I'm open to using fixed expressions instead of Status as a dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could someone please steer me in the right direction with this? I'm having difficulty finding applicable documentation or examples.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 16:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227360#M79471</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-19T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Island to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227361#M79472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use set analysis for this functionality:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=only({&amp;lt;ChangeDate={"$(=max(ChangeDate))"}&amp;gt;}Status)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 18:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227361#M79472</guid>
      <dc:creator />
      <dc:date>2010-07-19T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Island to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227362#M79473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. ChangeDate will not be a filtered value. There are two delinked date fields in separate delinked tables: ToDate and FromDate. The max ChangeDate needs to fall between these two selected values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 20:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227362#M79473</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-19T20:19:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Island to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227363#M79474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use GetFieldSelections(Todate) and GetFieldSelections(Fromdate) to get the selected todate and fromdate and then compare it with Change date in the expression. GetFieldSelections() can be used in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 09:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227363#M79474</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-07-20T09:13:27Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Island to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227364#M79475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syed, can you help me understand how this would be used in returning the value at the top of the date range for each contact?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 15:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227364#M79475</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-20T15:21:05Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227365#M79476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In attach you will find an example with autogenerate.&lt;/P&gt;&lt;P&gt;Select in Date field values:From Date ... To Date.&lt;/P&gt;&lt;P&gt;The result will be like in your examples.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0677.max-folder.rar:550:0]&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mihai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 16:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227365#M79476</guid>
      <dc:creator>mihaiturturica</dc:creator>
      <dc:date>2010-07-20T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227366#M79477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example that correctly uses the date range variables. All it needs now is the incorporation of the max CHANGEDATE for each patient. This applies to the example I attached to the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=&lt;BR /&gt;sum({$&amp;lt;[CHANGEDATE={"&amp;gt;=$(vFromDate)&amp;lt;=$(vToDate)"}&amp;gt;} TxStatusCount)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 19:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227366#M79477</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-20T19:26:36Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227367#M79478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm almost convinced this can't be done with QlikView, especially when you take into acocunt Patient and CHANGEDATE aren't actually dimensions in the chart.&lt;/P&gt;&lt;P&gt;Anyone have any other thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 02:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227367#M79478</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-21T02:02:09Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227368#M79479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything is doable.&lt;BR /&gt;&lt;BR /&gt;Set Analysis can be applied for whole chart object only. If you need individual approach for each row in a chart you should use IF conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 15:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227368#M79479</guid>
      <dc:creator />
      <dc:date>2010-07-21T15:32:02Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227369#M79480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done.&lt;/P&gt;&lt;P&gt;I'm agree with Nick Bor, use Set Analysis or IF condition or both .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 15:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227369#M79480</guid>
      <dc:creator>mihaiturturica</dc:creator>
      <dc:date>2010-07-21T15:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227370#M79481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned earlier, the following expression works for the date range, but I still only need to count the value that applies to the max CHANGEDATE for each patient even though CHANGEDATE and PATIENT are not dimensions of the chart:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({$&amp;lt;[CHANGEDATE={"&amp;gt;=$(vFromDate)&amp;lt;=$(vToDate)"}&amp;gt;} TxStatusCount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I would need to complete the expression above is that max value for each patient, but it just does't work. Everything I've setup keeps getting back the overall max date, not the one for each patient. Aggr has not worked either, at least not how I've had it implemented. The following expression returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({$&amp;lt;CHANGEDATE]={&lt;STRONG&gt;&lt;EM&gt;"$(=aggr(max(IF[CHANGEDATE&amp;gt;= $(vFromDate) and CHANGEDATE&amp;lt;= $(vToDate),CHANGEDATE) ),CONTACTID))"&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} TxStatusCount)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've also tried combinations of firstsortedvalue, which works if I have CONTACTID in the chart, but it doesn't aggregate correctly when using account manager as the dimension. It then only shows the first sortedvalue for each account manager even though i'm using the TOTAL &amp;lt;CONTACTID&amp;gt; qualifiers. Here it is before my failed attempts at aggregation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;firstsortedvalue(if(STATUS='Hold', TxStatusCount),-CHANGEDATE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Plus, firstsortedvalue won't give me a column total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 16:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227370#M79481</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-21T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Using Date Islands to Get Max Populated Value</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227371#M79482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to find a solution without using set. If anyone can find another solution that does the same thing using set, I'd like to see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=if(vFromDateCount=1 and vToDateCount=1,&lt;BR /&gt;count(if([Treatment Status]='Active' and [Treatment Status Date Change]=aggr(nodistinct max(if([Treatment Status Date Change]&amp;gt;=&lt;B&gt;&lt;I&gt;'$(vFromDate)'&lt;/I&gt;&lt;/B&gt; and [Treatment Status Date Change]&amp;lt;=&lt;B&gt;&lt;I&gt;'$(vToDate)'&lt;/I&gt;&lt;/B&gt;, [Treatment Status Date Change]) ), CONTACTID),CONTACTID)),&lt;BR /&gt;if(vFromDateCount&amp;gt;1 and vToDateCount&amp;gt;1,|&lt;BR /&gt;count(if([Treatment Status]='Active' and [Treatment Status Date Change]=aggr(nodistinct max([Treatment Status Date Change]), CONTACTID),CONTACTID))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 20:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Using-Date-Islands-to-Get-Max-Populated-Value/m-p/227371#M79482</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2010-07-22T20:40:58Z</dc:date>
    </item>
  </channel>
</rss>

