<?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: Excluding null targets from RAG Rating in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209495#M876081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly!! Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Nov 2016 20:51:23 GMT</pubDate>
    <dc:creator>infock12</dc:creator>
    <dc:date>2016-11-05T20:51:23Z</dc:date>
    <item>
      <title>Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209488#M876074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expert opinion is appreciated. I have a pivot table with the following dimensions.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Site, Department and Median.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Median is the target, which I created through an inline table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some departments which does not have a target. How do I exclude the Departments from RAG rating when they do not have a target please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below says, If(Results)&amp;lt;Median, Red, Green). But I wanted to say IF Median IS NOT BLANK, &lt;SPAN style="font-size: 13.3333px;"&gt;then apply the below formula otherwise &lt;/SPAN&gt;leave it as Blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(sum(CompletedAbs)/Sum(List)&amp;lt;Median, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_y.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear and any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209488#M876074</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209489#M876075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not very clear on your requirement, but give a try with the below:&lt;/P&gt;&lt;P&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;=If(Len(Median) &amp;gt; 0 And&amp;nbsp; sum(CompletedAbs)/Sum(List)&amp;lt;Median, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_y.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209489#M876075</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-04T15:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209490#M876076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes all the RAG rating blank, not sure why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your query is correct in logic. IF Median has value, then calculate. But we also wanted to say what to do if a Median does not exist for a department. Something like the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Len(Median)&amp;gt;0 And sum(......) - this is the first part. The second part I am looking for is when &lt;SPAN style="font-size: 13.3333px;"&gt;IF(Len(Median) IS NULL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is there a way to say, only calculate the RAG rating when there is a value in Median?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209490#M876076</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2016-11-04T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209491#M876077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make it more clear, I am looking for something like the below.&lt;/P&gt;&lt;P&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; background-color: #f2f2f2;"&gt;=If(Len(Median) IS NULL, 'blank', BUT IF&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;(Len(Median)&lt;/SPAN&gt;&amp;gt; 0 And&amp;nbsp; sum(CompletedAbs)/Sum(List)&amp;lt;Median, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_y.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209491#M876077</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2016-11-04T16:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209492#M876078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wondering why all the RAG's are blank...One reason you are getting blanks is because your Median do not have any value.&lt;/P&gt;&lt;P&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;=If(Len(Median) &amp;gt; 0 And&amp;nbsp; sum(CompletedAbs)/Sum(List)&amp;lt;Median, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_y.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;In the above expression I am saying, if length of Median is &amp;gt;0 And Sum (...) &amp;lt; Median. So I am guessing you do not have any value in the Median, Can you please check and let me know. If you think you have the values for Median, then can you please share a sample app to take a look.&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;&lt;BR /&gt;&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;Note: I am attaching a sample app based on your logic and see if that helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209492#M876078</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-04T16:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209493#M876079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the below expression helps...&lt;/P&gt;&lt;P&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; background-color: #f2f2f2;"&gt;=If(Len(Median) =0, 'Blank',&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; background-color: #f2f2f2;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;(Len(Median)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;&amp;gt; 0 And&amp;nbsp; sum(CompletedAbs)/Sum(List)&amp;lt;Median, 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_y.png') )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209493#M876079</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-04T16:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209494#M876080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌thanks TD. The Median has no values&amp;nbsp; for a few departments (Which is one of the dimension) but others have values. I will give it a go with the above and let you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209494#M876080</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2016-11-04T16:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209495#M876081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly!! Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2016 20:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209495#M876081</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2016-11-05T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding null targets from RAG Rating</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209496#M876082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to know that the expression is working for you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2016 01:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-null-targets-from-RAG-Rating/m-p/1209496#M876082</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-11-06T01:45:59Z</dc:date>
    </item>
  </channel>
</rss>

