<?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: Bad performance when coloring cells in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897367#M1012796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be working.&lt;/P&gt;&lt;P&gt;However, if I have repeated colors in my Colors table I get the wrong colors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the ColorRGB using the ID in the Colors table? The second parameter of FieldValue&amp;nbsp; is the value found in the position n(by load order) and if I have repeated values I wont get a one-to-one relationship between ID and ColorRGB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 16:59:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-27T16:59:10Z</dc:date>
    <item>
      <title>Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897363#M1012789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that is working OK, but when I try to apply a background color to the cells based based on a dimension value, it becomes slow and uses a lot of RAM(from 160 mb to 3.6 GB).&lt;/P&gt;&lt;P&gt;Has anyone had this issue before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached my sample file. Right now the color expression is commented under the measure background color expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 16:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897363#M1012789</guid>
      <dc:creator />
      <dc:date>2015-04-23T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897364#M1012790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same sample file(zip format).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897364#M1012790</guid>
      <dc:creator />
      <dc:date>2015-04-24T20:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897365#M1012792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try loading the colors in a seperate table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colors:&lt;/P&gt;&lt;P&gt;LOAD CategoryID as ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgb(R,G,B) as ColorRGB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;RESIDENT Category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this expression to get the colors: FieldValue('ColorRGB', CategoryID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 08:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897365#M1012792</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-25T08:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897366#M1012795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Think you have some problem with data. Your fact table has almost 27 ml rows.&lt;/P&gt;&lt;P&gt;It looks like you don't have values in Account field in Fact table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85037_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 11:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897366#M1012795</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2015-04-25T11:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897367#M1012796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be working.&lt;/P&gt;&lt;P&gt;However, if I have repeated colors in my Colors table I get the wrong colors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the ColorRGB using the ID in the Colors table? The second parameter of FieldValue&amp;nbsp; is the value found in the position n(by load order) and if I have repeated values I wont get a one-to-one relationship between ID and ColorRGB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897367#M1012796</guid>
      <dc:creator />
      <dc:date>2015-04-27T16:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897368#M1012797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, for the fieldvalue function to work there should be a one-to-one relationship to ID and color. Otherwise you'll have to use something like the pick function: pick(CategoryID, $(=concat(ColorRGB , ',', ColorID)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897368#M1012797</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-27T17:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897369#M1012798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;Yes, I have a list of Ids and each Id has one color. Like this:&lt;/P&gt;&lt;P&gt;CategoryColors:&lt;/P&gt;&lt;P&gt;LOAD ColorID, RGB(R,G,B) as ColorRGB INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColorID, R, G, B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 192,192,192&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 255, 255, 255&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3, 255, 255, 255&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4, 153, 204, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; 5, 255, 255, 255&lt;/P&gt;&lt;P&gt;&amp;nbsp; 6, 255, 255, 255&lt;/P&gt;&lt;P&gt;&amp;nbsp; 7, 153, 204, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8, 153, 204, 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 9, 255, 255, 255&lt;/P&gt;&lt;P&gt;&amp;nbsp; 10, 255, 255, 255&lt;/P&gt;&lt;P&gt;&amp;nbsp; 11, 255, 255, 255&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, If I try to lookup FieldValue('ColorRGB', 3), it returns RGB(153, 204, 0) instead of RGB(255, 255, 255).&lt;/P&gt;&lt;P&gt;Also, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;FieldValue('ColorRGB', 4) returns NULL. The &lt;SPAN style="font-size: 13.3333330154419px;"&gt;FieldValue second parameter does not use the ColorID but the load order.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897369#M1012798</guid>
      <dc:creator />
      <dc:date>2015-04-27T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bad performance when coloring cells in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897370#M1012799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you can do is add a ColorID field to the Category table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category:&lt;/P&gt;&lt;P&gt;LOAD *, autonumber(Color) as ColorID;&lt;/P&gt;&lt;P&gt;LOAD CategoryID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; G, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgb(R,G,B) as Color&lt;/P&gt;&lt;P&gt;FROM [Category.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Category into Category.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colors:&lt;/P&gt;&lt;P&gt;LOAD ColorID as ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgb(R,G,B) as ColorRGB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM [Category.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the fieldvalue function with ColorID as second parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 19:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-performance-when-coloring-cells-in-pivot-table/m-p/897370#M1012799</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-27T19:21:47Z</dc:date>
    </item>
  </channel>
</rss>

