<?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: Optomize select in field using AGGR and triggers? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976918#M333849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, is the issue only with performance that you are guessing because of aggr() ? Try to share a sample qvw with representative data to work on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 04:36:04 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2015-12-09T04:36:04Z</dc:date>
    <item>
      <title>Optomize select in field using AGGR and triggers?</title>
      <link>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976917#M333848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application where the user can enter the minimum number of admissions per patient and based on a variable and trigger, the app will select the patient ID's that meet the criteria.&amp;nbsp; Once the variable is set, a variable trigger is executed to select patients.&amp;nbsp; Here is the expression that does the selection using the select in field action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;='(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Patient ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Patient ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Admission_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Patient ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_Admissions&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Patient ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '|') &amp;amp; ')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;v_Admissions is the variable that the user is entering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there an easier way to do this selection?&amp;nbsp; I have about 750k patients in this application and it takes a little bit for this selection to happen.&amp;nbsp; The aggr must happen on the fly since the user could filter on other dimensions such as payor, location, date, etc.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 03:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976917#M333848</guid>
      <dc:creator>phcaptjim</dc:creator>
      <dc:date>2015-12-09T03:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Optomize select in field using AGGR and triggers?</title>
      <link>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976918#M333849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, is the issue only with performance that you are guessing because of aggr() ? Try to share a sample qvw with representative data to work on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 04:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976918#M333849</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-12-09T04:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Optomize select in field using AGGR and triggers?</title>
      <link>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976919#M333850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try it without the concat() only with the search-expression as condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;='=aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Patient ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Admission_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Patient ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;v_Admissions'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also: &lt;A href="https://community.qlik.com/qlik-blogpost/4107"&gt;The Expression Search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976919#M333850</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-09T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Optomize select in field using AGGR and triggers?</title>
      <link>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976920#M333851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies.&amp;nbsp; I'm finally getting back to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did two things, first I took the suggestion that Marcus gave for the search-expression and then I created a table in my data model that just has hospital admissions (instead of searching the entire fact table).&amp;nbsp; With those two changes the selections now occur immediately instead of waiting 4-6 seconds for the selections to be made.&amp;nbsp; This should really make our users happy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 17:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optomize-select-in-field-using-AGGR-and-triggers/m-p/976920#M333851</guid>
      <dc:creator>phcaptjim</dc:creator>
      <dc:date>2016-03-29T17:11:19Z</dc:date>
    </item>
  </channel>
</rss>

