<?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 in Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314237#M408178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more than 50,000 distinct groupId and each groupId maybe have more than one record&lt;/P&gt;&lt;P&gt;in my sample u can see groupId &amp;amp; have 4 record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Jul 2017 07:55:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-16T07:55:00Z</dc:date>
    <item>
      <title>Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314231#M408172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikers&lt;/P&gt;&lt;P&gt;I have Straight table in my dashboard and wants something like below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170328_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;each GroupId has specific Color .the count of groupId is about 50000&lt;/P&gt;&lt;P&gt;i did it by formula :&lt;/P&gt;&lt;P&gt; if(even(aggr(distinct row(),GroupId )),gray(),white()) &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;=if(Mod(aggr(NODISTINCT rowno(),GroupID),9)=0,RGB(0,0,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Mod(aggr(NODISTINCT rowno(),GroupID),9)=1,RGB(30,30,30),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Mod(aggr(NODISTINCT rowno(),GroupID),9)=2,RGB(60,60,60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Mod(aggr(NODISTINCT rowno(),GroupID),9)=3,RGB(90,90,90),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(aggr(NODISTINCT rowno(),GroupID),9)=4,RGB(120,120,120),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Mod(aggr(NODISTINCT rowno(),GroupID),9)=5,RGB(150,150,150),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Mod(aggr(NODISTINCT rowno(),GroupID),9)=7,RGB(180,180,180),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Mod(aggr(NODISTINCT rowno(),GroupID),9)=8,RGB(210,210,210),RGB(240,240,240)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ))))))))&lt;/P&gt;&lt;P&gt;but when I sort Table by Amount Column maybe tow same color with different groupId be&amp;nbsp; side each other&lt;/P&gt;&lt;P&gt;what should i do to have table like below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/170329_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Appreciate for answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 05:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314231#M408172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-16T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314232#M408173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically if your expectation is just to get the same bgcolor for similar groups then sorting will definitely seperate the rows. How do you want it to be displayed??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 06:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314232#M408173</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2017-07-16T06:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314233#M408174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samane,&lt;/P&gt;&lt;P&gt;You can use below eample.&lt;/P&gt;&lt;P&gt;Store the color codes in table/excel instead of writing complex expression.&lt;/P&gt;&lt;P&gt;PFA Solution and let me know for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 06:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314233#M408174</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-07-16T06:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314234#M408175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have more than 50,000 groupId and can't set distinct rgb() for them &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 07:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314234#M408175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-16T07:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314235#M408176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want each groupId has it's own color even in seprate form&lt;/P&gt;&lt;P&gt;for example i have&amp;nbsp; four groupId those are '7' with perple color&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 07:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314235#M408176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-16T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314236#M408177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you mean there are 50000 record each with different color?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 07:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314236#M408177</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-07-16T07:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314237#M408178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more than 50,000 distinct groupId and each groupId maybe have more than one record&lt;/P&gt;&lt;P&gt;in my sample u can see groupId &amp;amp; have 4 record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 07:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314237#M408178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-16T07:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314238#M408179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression i think till group ID 8 there are fix set of colors and then &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RGB(240,240,240) for other groupid's. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is this what you require?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 10:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314238#M408179</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-07-16T10:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314239#M408180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samane, you can try with:&lt;/P&gt;&lt;P&gt;Mod(&lt;SPAN style="font-size: 13.3333px;"&gt;FieldIndex('&lt;SPAN style="font-size: 13.3333px;"&gt;GroupID&lt;/SPAN&gt;',&lt;SPAN style="font-size: 13.3333px;"&gt;GroupID&lt;/SPAN&gt;)&lt;/SPAN&gt;,9)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return a number based on the value of the field, not the position on the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 16:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Background-Color-in-Straight-table/m-p/1314239#M408180</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-07-16T16:29:53Z</dc:date>
    </item>
  </channel>
</rss>

