<?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: Background color performance on million rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832262#M658241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe your 'Complex Expression' can be simplified.&lt;/P&gt;&lt;P&gt;Can you show us?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 12:13:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-27T12:13:16Z</dc:date>
    <item>
      <title>Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832261#M658240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a straight table or pivot with approx. &lt;STRONG&gt;400 million rows&lt;/STRONG&gt; and &lt;STRONG&gt;8 columns&lt;/STRONG&gt;, where each is a dimension and get a &lt;STRONG&gt;backgorund color&lt;/STRONG&gt; in case of an &lt;STRONG&gt;complex expression&lt;/STRONG&gt;. As one of you might expect, if there is no filter it will be&lt;STRONG&gt; terrible slow&lt;/STRONG&gt; and consuming a lot of ram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be enough, if the expression will be active, if one important filter is active, so that the perfomance will be better.&lt;/P&gt;&lt;P&gt;I tried for this following expression :&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetSelectedCount(FILTER_FIELD)&amp;gt;=1,if(COMPLEX EXPRESSION),RGB(255,255,204))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the perfomance is terrible, as i think he still analyses every row.&lt;/P&gt;&lt;P&gt;Any idea how can i tell him to start the expression if an filter is active, or the result row number will be smaller than a specific nr.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Or have someone another ideas for a better perfomance, with such a amount of data and coloring filter results?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 12:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832261#M658240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T12:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832262#M658241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe your 'Complex Expression' can be simplified.&lt;/P&gt;&lt;P&gt;Can you show us?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 12:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832262#M658241</guid>
      <dc:creator />
      <dc:date>2015-04-27T12:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832263#M658242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando, see below:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(match(mid(FIELD_VALUE,1,6),$(=(CONCAT(DISTINCT(chr(39)&amp;amp;FIELDSVALUE&amp;amp;chr(39)),', ')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info about this expression see following discussion: &lt;A _jive_internal="true" href="https://community.qlik.com/message/761137"&gt;https://community.qlik.com/message/761137&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 13:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832263#M658242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T13:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832264#M658243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe that there is a practical use of a table with 400 M rows.&amp;nbsp; Or even with 10 thousand rows.&amp;nbsp; My recommendation - conditionally enable calculations only if the number of rows &amp;lt; than some reasonable number, e.g. 10,000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 13:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832264#M658243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T13:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832265#M658244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, &lt;/P&gt;&lt;P&gt;i share your opinion, but how can i "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;conditionally enable calculations only if the number of rows &amp;lt; x&lt;/STRONG&gt;" ??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832265#M658244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832266#M658245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the chart properties, tab general, find Calculation condition.&amp;nbsp; Write your condition there.&amp;nbsp; I can't guess how to calculate number of rows in your case.&amp;nbsp; Typically there is a field that identifies the row, e.g. some ID.&amp;nbsp; In this case:&lt;/P&gt;&lt;P&gt;count(distinct ID)&amp;lt;10000&lt;/P&gt;&lt;P&gt;Next, you can add some flexibility.&amp;nbsp; Create a variable vMaxRows, and add an input box with this variable.&amp;nbsp; Use it in calculated conditions:&lt;/P&gt;&lt;P&gt;count(distinct ID)&amp;lt;vMaxRows&lt;/P&gt;&lt;P&gt;Besides, to help your users, modify the message "calculation condition unfulfilled" to a something more helpful, e.g.:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85161_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832266#M658245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T14:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832267#M658246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Michael,&lt;/P&gt;&lt;P&gt;that helped me a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i have 8 Dimensions inside a pivot, and count the rows to display results that are equal or smaller than 100&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;count(aggr(DIM1,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;2,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;3,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;4,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;5,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;6,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;7,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DIM&lt;/SPAN&gt;8))&amp;lt;=100&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there a better way to achive this? (&lt;EM&gt;tried already &lt;SPAN style="font-size: 10pt;"&gt;RowNo &amp;amp; &lt;/SPAN&gt;NoofRows but they are not working and slower&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 08:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832267#M658246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-28T08:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832268#M658247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your condition looks fine.&amp;nbsp; Just to keep in mind that it count also the rows where all expressions are 0, and if you hide them (by "suppress zero-values"), the count will be off.&amp;nbsp; If you don suppress zero-values, you count is good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 11:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832268#M658247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-28T11:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Background color performance on million rows</title>
      <link>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832269#M658248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe for any one else interesting : For a better perfomance than counting &lt;/P&gt;&lt;P&gt;set that &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;one or more meaningfull filter(s) need to be choosen, before the calculation starts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I achieved that using : &lt;STRONG&gt;GetSelectedCount(NEEDED_FILTER_FIELD)&amp;gt;=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Inside the error message we set the names of the fields that are necessary for the object!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works really perfomant now on a huge data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-color-performance-on-million-rows/m-p/832269#M658248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-28T12:10:44Z</dc:date>
    </item>
  </channel>
</rss>

