<?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 simplify SetAnalysis expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171801#M501987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Firstly, I would check the data structure. If PreubaFami, TipoAviso and/or Terminal (and indeed the chart/table dimensions) are in large tables that are not linked to each other, this would result in a memory-gobbling cross join, which could be your problem.&lt;/P&gt;&lt;P&gt;If that is not the case, you might get some joy by defining a variable in the script, for example:&lt;/P&gt;&lt;P&gt;Set vCountTiene = count({&amp;lt;PruebaFami={"Tiene"}&amp;gt;} TipoAviso)&lt;/P&gt;&lt;P&gt;and then using $(vCountTiene) in your expression instead, like:&lt;/P&gt;&lt;P&gt;if($(vCountTiene) &amp;lt; 3,&lt;BR /&gt; if(count({1&amp;lt;Terminal&amp;gt;} Terminal)=1, $(vCountTiene),&lt;BR /&gt; if($(vCountTiene) &amp;lt; 2, $(vCountTiene))))&lt;/P&gt;&lt;P&gt;I have seen some discussions that imply that QV does some caching of expressions in variables. It was in a different context and may or may not work here.&lt;/P&gt;&lt;P&gt;Just some thoughts which I hope are helpful.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jan 2011 16:30:59 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-01-19T16:30:59Z</dc:date>
    <item>
      <title>simplify SetAnalysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171799#M501985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have this "huge" and specialy slowly expression:&lt;/P&gt;&lt;P&gt;if(count({&amp;lt;PruebaFami={"Tiene"}&amp;gt;} TipoAviso)&amp;lt;3,&lt;BR /&gt; if(count({1&amp;lt;Terminal&amp;gt;} Terminal)=1,count({&amp;lt;PruebaFami={"Tiene"}&amp;gt;} TipoAviso),&lt;BR /&gt; if(count({&amp;lt;PruebaFami={"Tiene"}&amp;gt;} TipoAviso)&amp;lt;2,count({&amp;lt;PruebaFami={"Tiene"}&amp;gt;} TipoAviso))))&lt;/P&gt;&lt;P&gt;When accept it, qlikview cannot show the results, the system hangs and i need to close the Qv.exe process using Ctrl-Alt-Sup.&lt;/P&gt;&lt;P&gt;What i need is to get the count of TipoAviso that have every Terminal, but with some conditions:&lt;BR /&gt;- Firstly i only need to show results if count of TipoAviso &amp;lt; 3 and PruebaFami = "Tiene".&lt;BR /&gt;- Then if the count of Terminal (Terminals with same value) = 1, must appear the count results of each Terminal.&lt;BR /&gt;- Otherwise (when the count of Terminals &amp;lt;&amp;gt; 1, what means it &amp;gt;1), for these cases i only need the results when the count of TipoAviso = "Tiene" &amp;lt; 2.&lt;/P&gt;&lt;P&gt;how to do it simpler and effective?&lt;/P&gt;&lt;P&gt;I hope your help, please.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 12:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171799#M501985</guid>
      <dc:creator />
      <dc:date>2011-01-17T12:43:25Z</dc:date>
    </item>
    <item>
      <title>simplify SetAnalysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171800#M501986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added and example to help find the solution.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 16:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171800#M501986</guid>
      <dc:creator />
      <dc:date>2011-01-17T16:12:46Z</dc:date>
    </item>
    <item>
      <title>simplify SetAnalysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171801#M501987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Firstly, I would check the data structure. If PreubaFami, TipoAviso and/or Terminal (and indeed the chart/table dimensions) are in large tables that are not linked to each other, this would result in a memory-gobbling cross join, which could be your problem.&lt;/P&gt;&lt;P&gt;If that is not the case, you might get some joy by defining a variable in the script, for example:&lt;/P&gt;&lt;P&gt;Set vCountTiene = count({&amp;lt;PruebaFami={"Tiene"}&amp;gt;} TipoAviso)&lt;/P&gt;&lt;P&gt;and then using $(vCountTiene) in your expression instead, like:&lt;/P&gt;&lt;P&gt;if($(vCountTiene) &amp;lt; 3,&lt;BR /&gt; if(count({1&amp;lt;Terminal&amp;gt;} Terminal)=1, $(vCountTiene),&lt;BR /&gt; if($(vCountTiene) &amp;lt; 2, $(vCountTiene))))&lt;/P&gt;&lt;P&gt;I have seen some discussions that imply that QV does some caching of expressions in variables. It was in a different context and may or may not work here.&lt;/P&gt;&lt;P&gt;Just some thoughts which I hope are helpful.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 16:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simplify-SetAnalysis-expression/m-p/171801#M501987</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-01-19T16:30:59Z</dc:date>
    </item>
  </channel>
</rss>

