<?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: Tricky set analysis question? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346274#M414240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=min(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitDate = {"$(='&amp;lt;=' &amp;amp; Date(V_SELECTED))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;patientID = p({&amp;lt;VisitDate = {"$(='&amp;gt;=' &amp;amp; Date(V_3DaysAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_SELECTED))"}&amp;gt;} patientID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitDate)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 17:04:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-20T17:04:22Z</dc:date>
    <item>
      <title>Tricky set analysis question?</title>
      <link>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346273#M414239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Here is my question:- Get all the patient visits (before a selected date) for the patients who visited clinic in the previous three days based upon user selected date.&amp;nbsp; For example, if user selected 1/7/2017, Patient1,2,3,5 had visits between 1/5/2017 and 1/7/2017, I need to get all the visits before 1/7/2017 (not only the visits between&amp;nbsp; 1/5/2017 and 1/7/2017) for these patient.&amp;nbsp; Right now I can only get the patient visits in the past three days before the selected date by using set analysis (below) in straight table.&lt;/P&gt;&lt;P&gt;=max(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;VisitDate=,&lt;/P&gt;&lt;P&gt;VisitDate = {"$(='&amp;gt;=' &amp;amp; Date(V_3DaysAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_SELECTED))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;VisitDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here V_SELECTED and V_3DaysAgo are the variable I defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 16:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346273#M414239</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-07-20T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky set analysis question?</title>
      <link>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346274#M414240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=min(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitDate = {"$(='&amp;lt;=' &amp;amp; Date(V_SELECTED))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;patientID = p({&amp;lt;VisitDate = {"$(='&amp;gt;=' &amp;amp; Date(V_3DaysAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_SELECTED))"}&amp;gt;} patientID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VisitDate)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 17:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346274#M414240</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-20T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky set analysis question?</title>
      <link>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346275#M414241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response. I do not know p() modifier. It will allow me to do a lot of things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 17:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tricky-set-analysis-question/m-p/1346275#M414241</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-07-20T17:23:16Z</dc:date>
    </item>
  </channel>
</rss>

