<?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: Set Analysis Not Working Unless Selection is Made in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326201#M824186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added a new column&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {&amp;lt;[HMHK_REFERRAL_PLACED]={'1'}&amp;gt;} MRN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This basically is a field that is in the load script that gives the patient a '1' if they have ever had a referral (Referral Date is not null). Thus, in the sample data, each of those patients has a 1 in this column. I was trying to filter out those patients who do not have a referral. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2017 13:09:16 GMT</pubDate>
    <dc:creator>proctors</dc:creator>
    <dc:date>2017-07-18T13:09:16Z</dc:date>
    <item>
      <title>Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326194#M824174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason one of my set analysis expressions works without any values selected, while the other must have something selected. How can I modify the expression to show a value regardless of what is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 216px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;MRN&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;HMHK_REFERRAL_DATE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Completed Office Visit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/12/2017&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/25/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5/9/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/14/2017&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2/21/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5/2/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;7/11/2017&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="216"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="64"&gt;MRN&lt;/TD&gt;&lt;TD class="xl65" width="88"&gt;HMHK_REFERRAL_DATE&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Completed Office Visit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;4/12/2017&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;4/25/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;4/14/2017&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;P&gt;5/2/2017&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expressions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Referral Date = aggr(Min({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} HMHK_REFERRAL_DATE), MRN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next Completed Office Visit (after referral date has passed): aggr(Min({$&amp;lt;[Completed Office Visit]={"&amp;gt;=$(=aggr(Min({&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} HMHK_REFERRAL_DATE), MRN))"}&amp;gt;} [Completed Office Visit]), MRN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second expression (Next Completed Office Visit) does not show a value until I select a MRN and is blank otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326194#M824174</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326195#M824176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MRN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} HMHK_REFERRAL_DATE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} Aggr(If(Min({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} TOTAL &amp;lt;MRN&amp;gt; [Completed Office Visit]) &amp;gt;= Only({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} HMHK_REFERRAL_DATE), [Completed Office Visit]), MRN, [Completed Office Visit]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326195#M824176</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-18T12:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326196#M824178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but that just made the second expression blank with or without an expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326196#M824178</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2017-07-18T12:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326197#M824179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} Aggr(If(Min({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} TOTAL &amp;lt;MRN&amp;gt; HMHK_REFERRAL_DATE) &amp;lt;= Only({$&amp;lt;HMHK_REFERRAL_DATE&amp;gt;} [Completed Office Visit]), [Completed Office Visit]), MRN, [Completed Office Visit]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked for me in the sample data&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170557_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326197#M824179</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-18T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326198#M824181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nearly there! It worked, but now the second expression's data disappears when selections are made. Is this the way it has to be or can there be a tweak to allow it to respect selections too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326198#M824181</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2017-07-18T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326199#M824183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which selection is causing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326199#M824183</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-18T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326200#M824184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but see if this works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326200#M824184</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-18T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326201#M824186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added a new column&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT {&amp;lt;[HMHK_REFERRAL_PLACED]={'1'}&amp;gt;} MRN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This basically is a field that is in the load script that gives the patient a '1' if they have ever had a referral (Referral Date is not null). Thus, in the sample data, each of those patients has a 1 in this column. I was trying to filter out those patients who do not have a referral. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326201#M824186</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2017-07-18T13:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326202#M824187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try to do it in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MRN, HMHK_REFERRAL_DATE, Completed Office Visit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 4/12/2017, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, , 4/25/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, , 5/9/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 4/14/2017, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, , 2/21/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, , 5/2/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, , 7/11/2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table)&lt;/P&gt;&lt;P&gt;LOAD MRN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(max(HMHK_REFERRAL_DATE)) as &lt;STRONG&gt;HMHK_REFERRAL_DATE_Final&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group by MRN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table)&lt;/P&gt;&lt;P&gt;LOAD MRN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(min(if([Completed Office Visit]&amp;gt;HMHK_REFERRAL_DATE_Final,[Completed Office Visit]))) as &lt;STRONG&gt;[Completed Office Visit final]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group by MRN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create the table box like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170568_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326202#M824187</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-18T13:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Not Working Unless Selection is Made</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326203#M824189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Not-Working-Unless-Selection-is-Made/m-p/1326203#M824189</guid>
      <dc:creator>proctors</dc:creator>
      <dc:date>2017-07-18T15:05:39Z</dc:date>
    </item>
  </channel>
</rss>

