<?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: Optimizing Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49959#M8250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not quite clear what the aim behind your expression is. Do I understand it right that within the real data there could be dozens or maybe even hundreds of measures which are included in the pick(match())? If yes a different kind of the datamodel by using &lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt; to transform your tables might be useful. Also you are using some kind of linktable between Type and the measures which is rather adverse from a performance point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 15:09:25 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-04-17T15:09:25Z</dc:date>
    <item>
      <title>Optimizing Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49958#M8249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a situation.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am attaching a qlikview file here:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have 1 table and 2 filters in my original app(Just like the sample I am attaching here)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The problem is that the expression (specified below) is taking a lot of time to calculate when the number of patients increases.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="color: #ff0000;"&gt;&lt;STRONG&gt;=Pick(Match('['&amp;amp;Type&amp;amp;']',$(=Concat(DISTINCT chr(39)&amp;amp;'['&amp;amp;Type&amp;amp;']'&amp;amp;chr(39), ','))),&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&lt;EM&gt;&amp;nbsp; $(=Concat(DISTINCT 'Sum($(vfilter)[' &amp;amp;Type&amp;amp;'])' ,','))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;The application &lt;/STRONG&gt;i&lt;STRONG&gt; am developing is in &lt;/STRONG&gt;qliksense&lt;STRONG&gt;. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have made a Qlikview app and attached here just to give a reference. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It would be great if anyone has any other way to optimize this.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Chhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49958#M8249</guid>
      <dc:creator>chhavi376</dc:creator>
      <dc:date>2018-04-17T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49959#M8250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not quite clear what the aim behind your expression is. Do I understand it right that within the real data there could be dozens or maybe even hundreds of measures which are included in the pick(match())? If yes a different kind of the datamodel by using &lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt; to transform your tables might be useful. Also you are using some kind of linktable between Type and the measures which is rather adverse from a performance point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 15:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49959#M8250</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-17T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49960#M8251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcus,&lt;/P&gt;&lt;P&gt;Thanks for responding. &lt;/P&gt;&lt;P&gt;Please refer to the app i have attached.&lt;/P&gt;&lt;P&gt;I cannot pivot the data because of the following requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/199971_3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The table gives us the sum marked above.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199970_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we select 'include' filter, the following should be the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/199973_3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="5.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/199974_5.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we select 'exclude' filter, the following should be the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.png" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/199976_3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="6.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/199977_6.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this, a variable (vfilter) has been created which has the set analysis to be used in the expession.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Chhavi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 05:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49960#M8251</guid>
      <dc:creator>chhavi376</dc:creator>
      <dc:date>2018-04-18T05:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49961#M8252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's further not really clear for me how the filters should be applied and how the results should be look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the include/exclude numbers mean that a fieldvalue of 1 should be included/excluded or is the sum of the fieldvalues meant? Further if they should be applied within set analysis conditions why are they linked with the data? Therefore the intended output is unclear, too and deduced from this why such a pick(match()) to assign the appropriate expression is used?&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, 18 Apr 2018 07:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimizing-Expression/m-p/49961#M8252</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-18T07:09:02Z</dc:date>
    </item>
  </channel>
</rss>

