<?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: Color Dimension result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804767#M536740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I would like is when I populate my report the results chow as below screenshot where Y is filled with green and N with red, have tried your example buy there is no is no change in color&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivering the best in Foodservice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 17:53:23 GMT</pubDate>
    <dc:creator>dmxmikey</dc:creator>
    <dc:date>2014-11-10T17:53:23Z</dc:date>
    <item>
      <title>Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804762#M536735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have the attached script that I would like to highlight results depended on result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is my script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804762#M536735</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-10T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804763#M536736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attachment is missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804763#M536736</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-10T17:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804764#M536737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the attachment sorry&lt;/P&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;&lt;P&gt;Delivering the best in Foodservice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804764#M536737</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-10T17:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804765#M536738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry am a bit new to scripting, basically what I need to do is for the results on the table its either a Y or N, so what i would like is to get the Y in a green background and N in red background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the script im using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr( Concat( DISTINCT&lt;/P&gt;&lt;P&gt;if([ALL.alg-code]='GLUT',if([ALL.alg-stat]='N','N',if([ALL.alg-stat]='Y','Y',)),null()),'-')&lt;/P&gt;&lt;P&gt;,[p-code],[PRODUCTS.p-desc],[PRODUCTS.p-size],PRODUCTS.origin)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804765#M536738</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-10T17:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804766#M536739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You already have a another thread open with almost the same question (&lt;A href="https://community.qlik.com/thread/141141"&gt;script to return image if its a certain value&lt;/A&gt;) Instead of opening new threads with the same try to explain better what your problem is, with examples of what you have and what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is your dimension(?) in e.g. a straight table(?) and you want different colors for the Y and N, click on the plus sign of the dimension and in Background color use this same expression, but instead of the Y and N use an rgb code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=aggr( Concat( DISTINCT&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([ALL.alg-code]='GLUT',if([ALL.alg-stat]='N',rgb(255,0,0),if([ALL.alg-stat]='Y',rgb(0,255,0),)),null()),'-')&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[p-code],[PRODUCTS.p-desc],[PRODUCTS.p-size],PRODUCTS.origin)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804766#M536739</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-11-10T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804767#M536740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I would like is when I populate my report the results chow as below screenshot where Y is filled with green and N with red, have tried your example buy there is no is no change in color&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivering the best in Foodservice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804767#M536740</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-10T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804768#M536741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is very little info for me to go on and you seem to have difficulties in explaining where the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general you need an expression which results in a green or red color in the same way you determine whether it is a Y or N. This expression needs to be either in the background color of the dimension or the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more help then please post a sample of your qvw file, if you're worried about data sensitivity then please read this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 10:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804768#M536741</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-11-11T10:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804769#M536742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that info, I have attached my qvw. And you will note on my dimension background I have put the script to color the Y in Green and N in red but the actual output is not colored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivering the best in Foodservice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 10:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804769#M536742</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-11T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804770#M536743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the below code for peanuts at background color section of your calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr( Concat( DISTINCT&lt;/P&gt;&lt;P&gt;if([ALL.alg-code]='PNUT',if([ALL.alg-stat]='N','N',if([ALL.alg-stat]='Y','Y',)),null()),'-')&lt;/P&gt;&lt;P&gt;,[p-code],[PRODUCTS.p-desc],[PRODUCTS.p-size],PRODUCTS.origin)='N',RGB(255,0,0),RGB(0,255,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 10:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804770#M536743</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-11-11T10:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804771#M536744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work for Gluten&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(&lt;/P&gt;&lt;P&gt;aggr( Concat( DISTINCT&lt;/P&gt;&lt;P&gt;if([ALL.alg-code]='GLUT',if([ALL.alg-stat]='N','N',if([ALL.alg-stat]='Y','Y',)),null()),'-')&lt;/P&gt;&lt;P&gt;,[p-code],[PRODUCTS.p-desc],[PRODUCTS.p-size],PRODUCTS.origin)&lt;/P&gt;&lt;P&gt;='N',rgb(255,0,0),rgb(0,255,0)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 11:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804771#M536744</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-11-11T11:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804772#M536745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that script, seems to be working and have amended the other data, is it possible to change the script so where there is no data that field is left uncoloured?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivering the best in Foodservice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 11:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804772#M536745</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-11T11:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804773#M536746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;possibly this:&lt;/P&gt;&lt;P&gt;=if(aggr( Concat( DISTINCT if([ALL.alg-code]='PNUT',if([ALL.alg-stat]='N','N',if([ALL.alg-stat]='Y','Y',)),null()),'-'),[p-code],[PRODUCTS.p-desc],[PRODUCTS.p-size],PRODUCTS.origin)='N',RGB(255,0,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr( Concat( DISTINCT if([ALL.alg-code]='PNUT',if([ALL.alg-stat]='N','N',if([ALL.alg-stat]='Y','Y',)),null()),'-'),[p-code],[PRODUCTS.p-desc],[PRODUCTS.p-size],PRODUCTS.origin)='Y',RGB(255,0,0),''))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically, added another IF (expression is 'Y') then change bg color to Green, then at the end you have this part ,'')) which is any other result aside from&amp;nbsp; 'N' and 'Y'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 11:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804773#M536746</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-11-11T11:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804774#M536747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont see any null values on your attached file, i haven't really dig in to your calculated dimension expression, but is there any chance you can have a null result?&lt;/P&gt;&lt;P&gt;Looking at your ALL table, alg-stat is 100% dense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 11:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804774#M536747</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-11-11T11:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Color Dimension result</title>
      <link>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804775#M536748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivering the best in Foodservice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 12:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-Dimension-result/m-p/804775#M536748</guid>
      <dc:creator>dmxmikey</dc:creator>
      <dc:date>2014-11-11T12:12:06Z</dc:date>
    </item>
  </channel>
</rss>

