<?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: Issue with the Color Coding in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957132#M971899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for the reply. The color for attending is right but I am wondering why the status on the side of the chart still reads attending because it should choose the "unregistered" per the max ID. If not use aggr I am not sure whether the if function can help resolve this issue as I thought its more resource intensive.&lt;/P&gt;&lt;P&gt; Please advise. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 17:27:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-17T17:27:37Z</dc:date>
    <item>
      <title>Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957129#M971896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PFA the files for your reference. The issue I have here is with the color coding and I really find it strange. Following are the scenarios I am encountering and I don't know its one of those Qlik quirks or it should definitely be my coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I am trying to create a bar chart with 2 dimensions (Grade &amp;amp; Subject)&amp;nbsp; and trying to display the max ID (expression) on each Grade,Subject combination based on their latest ID(Ignore the date reported field only the ID tells the latest on a record) , I am able to pull the latest ID(data value is also displayed on the top of each bar)&amp;nbsp; and display it but the color coding is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Scenario 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When the expr is aggr(max(ID), Grade,Subject,Status) I can the color coding perfectly but when the expr is excluding the Status in the aggregation part meaning when the expr is &lt;SPAN style="font-size: 13.3333px;"&gt;aggr(max(ID), Grade,Subject) I am unable to the see the same color coding when the max ID is displayed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex: Choose 5th grade, Physics (Expr = &lt;SPAN style="font-size: 13.3333px;"&gt; aggr(max(ID), Grade,Subject,Status)&lt;/SPAN&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; You can see the data value 63 which is the max ID with the red bar and when I change the expr to &lt;SPAN style="font-size: 13.3333px;"&gt;aggr(max(ID), Grade,Subject) the max ID value is stored but not the color (its green now). I am really confused why it doesnt show the same color. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Same thing applies to the values&lt;/P&gt;&lt;P&gt;Grade = Surgical Assoc&lt;/P&gt;&lt;P&gt;Subject = Medicine&lt;/P&gt;&lt;P&gt;Max ID = 1860 (this is right when the (expr = &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(max(ID), Grade,Subject,Status)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;color = Not Met color (Red)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the expr = &lt;SPAN style="font-size: 13.3333px;"&gt;aggr(max(ID), Grade,Subject)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Grade = Surgical Assoc&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Subject = Medicine&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;expected color = Not Met color (Red) but it picks up the Threshold color and I see the value as Threshold &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Could somebody help me with this issue. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 15:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957129#M971896</guid>
      <dc:creator />
      <dc:date>2015-09-15T15:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957130#M971897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Janakiraman,&lt;/P&gt;&lt;P&gt;Are you attempting to grab the combination of the colors from the three fields to populate the RGB in the chart expression &amp;gt; background color, or are you only interested in using RED if one of the items in the RGBRed listbox is selected? Big difference &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;One note - the RGB values from RGBRed, ...Green, ...Blue are too high for RGB Values, as RGB coding is limited to 255,255,255 as a maximum (all white); whereas, RGB(0,0,0) = Black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My immediate "guess" is that your background color logic is erroneous and the other is your RGB values are too high so it returns a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps using an inline to associated RGBRed, etc. can look like this in your edit script:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;in,out&lt;/P&gt;&lt;P&gt;69,rgb(255,0,0)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;41,rgb(0,255,0)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;21,rgb(0,0,255)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;...as an initial consideration.&lt;/P&gt;&lt;P&gt;Another consideration would be to try the colormix wizard (perhaps)?&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957130#M971897</guid>
      <dc:creator>Greg_Williams</dc:creator>
      <dc:date>2015-09-17T16:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957131#M971898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is perfectly logical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select 5th grad and physics, you have the following situation;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99256_Image1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see, you have several values possible in your RGB fields, which means that your color function &lt;/P&gt;&lt;P&gt;=rgb(only(RGBRed),only(RGBGreen),only(RGBBlue))&lt;/P&gt;&lt;P&gt;will evaluate to NULL. Then the color will be picked from the Colors tab in the object properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, you should not use Aggr here. See &lt;A href="https://community.qlik.com/qlik-blogpost/2980"&gt;When should the Aggr() function NOT be used?&lt;/A&gt; And if you use it anyway, you should wrap it in an aggregation function, e.g. Max(Aggr(...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 17:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957131#M971898</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-17T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957132#M971899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for the reply. The color for attending is right but I am wondering why the status on the side of the chart still reads attending because it should choose the "unregistered" per the max ID. If not use aggr I am not sure whether the if function can help resolve this issue as I thought its more resource intensive.&lt;/P&gt;&lt;P&gt; Please advise. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 17:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957132#M971899</guid>
      <dc:creator />
      <dc:date>2015-09-17T17:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957133#M971900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did check the persistent colors check box and I think the problem is more with my expression as Henric has suggested not to use aggr(). I am trying to pick color of the status corresponding to the max ID based on the two dimension values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 17:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957133#M971900</guid>
      <dc:creator />
      <dc:date>2015-09-17T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957134#M971901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That can happen if you have a mismatch between the dimensions in the Aggr() function and the ones in the chart. The Aggr() has Grade and Subject as dimensions, but the chart has Subject and Status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as I said, you shouldn't use Aggr() here. If I remove Aggr() and just use Max(ID) as expression, I get&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99272_Image3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;which I think is correct. Or?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 17:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957134#M971901</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-17T17:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957135#M971902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup the graph showing above is right but my need is that I wanna show a bar chart for a Subject,Status as Dimension with the max ID corresponding to the grouping of Grade and Subject. &lt;/P&gt;&lt;P&gt; In this above case I would like to see only the red bar with the value 63 (the other bars shouldn't show on the chart) on it while "Subject" is on the x-axis and "Max ID value" on the Y-axis with "Status" on the side of the chart with the appropriate Status color reference. &lt;/P&gt;&lt;P&gt;&amp;nbsp; I hope I make sense there. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 21:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957135#M971902</guid>
      <dc:creator />
      <dc:date>2015-09-17T21:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957136#M971903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I used a different approach. I used a Marker to flag those records with the max(ID) for a grade,subject combination by using a Resident table. Then used an expr in the bar chart&lt;/P&gt;&lt;P&gt;If(Marker=ID,ID,NULL()) and it worked fine.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[flag]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grade,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subject,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(ID) as Marker Resident [Source] group by Grade,Subject;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Source] - is the source excel data pull .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 19:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957136#M971903</guid>
      <dc:creator />
      <dc:date>2015-09-21T19:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the Color Coding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957137#M971904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably a much better approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial approach by just saying that you want a bar chart with Subject and Status as Dimensions and max ID per Grade and Subject doesn't make sense: The Aggr() function returns a three-column table - Max(ID), Grade and Subject - and then you try to group that by Subject and Status in the bar chart. This is theoretically not possible, since Status doesn't exist in the three-column table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-the-Color-Coding/m-p/957137#M971904</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-22T07:26:29Z</dc:date>
    </item>
  </channel>
</rss>

