<?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: Setting a status based on rows within a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281360#M498049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview sometimes is a little overzealous in indicating syntax errors in script/expressions and bad field names in expressions. They are 'bad' because they are not field names, but column references. You could replace t1/t2 with column(n), ir referencing the column by number rather than by name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 17:41:24 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-09-27T17:41:24Z</dc:date>
    <item>
      <title>Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281351#M498040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m trying to figure something out that seems complicated toexplain, but I’ll give it a try. My goal is to look at a table with multipledimensions and assign “Green” and “Red” statuses at the various dimensionlevels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each row has a Value, and let’s say that if the number ispositive it’s Green and if it is not it is Red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each row has three dimensions, D1 being the highest rollupdimension, D2 the next down, and D3 being the lowest rollup dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each Dimension is scored as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D3 (lowest) is green if the number of green rows is greaterthan the number of red rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D2 (middle) is green if the number of D3 green rows isgreater than the number of D3 red rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D1 (top) is green if the number of D2 green rows is greaterthan the number of D3 red rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I’m looking for is some sort of function that tellsme the number of D3 rows in each D2, each D2 in each D1, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual "green" and "red" aren't as important (that is, I can display these statuses in multiple ways if I wish), but I don't know how to set up a set of drill-down charts that will show me the needed Green and Red status at the various levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a way to implement this solely through existing QV functions, that would be best, but naturally if it is primarily a scripting solution, that would be OK too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281351#M498040</guid>
      <dc:creator />
      <dc:date>2011-09-21T19:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281352#M498041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume that you have a straight table with D1, D2, D3 and Value as dimensions - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Expression: ValueStatus&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;=If(Sum(Value) &amp;gt;= 0, 'Green', 'Red')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: D3 status&lt;/P&gt;&lt;P&gt;=If(Count({&amp;lt;Value={"&amp;gt;=0"}&amp;gt;} total &amp;lt;D1,D2,D3&amp;gt; Value) &amp;gt;= Count({&amp;lt;Value={"&amp;lt;0"}&amp;gt;} total &amp;lt;D1,D2,D3&amp;gt; Value), 'Green', 'Red')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: D2 status&lt;/P&gt;&lt;P&gt;=If(Count({&amp;lt;Value={"&amp;gt;=0"}&amp;gt;} total &amp;lt;D1,D2&amp;gt; Value) &amp;gt;= Count({&amp;lt;Value={"&amp;lt;0"}&amp;gt;} total &amp;lt;D1,D2&amp;gt; Value), 'Green', 'Red')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: D1 status&lt;/P&gt;&lt;P&gt;If(Count({&amp;lt;Value={"&amp;gt;=0"}&amp;gt;} total &amp;lt;D1&amp;gt; Value) &amp;gt;= Count({&amp;lt;Value={"&amp;lt;0"}&amp;gt;} total &amp;lt;D1&amp;gt; Value), 'Green', 'Red')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file as an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 20:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281352#M498041</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-21T20:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281353#M498042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your sample above, do D1, D2, D3 represent the FIELD NAMES or Field Values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since D1 status is dependant upon the cumulative of D2s that make it up, shouldn't the last expression be:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333;"&gt;Expression: D1 status&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333;"&gt;If(Count({&amp;lt;Value={"&amp;gt;=0"}&amp;gt;} total &amp;lt;D2&amp;gt; Value) &amp;gt;= Count({&amp;lt;Value={"&amp;lt;0"}&amp;gt;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total &amp;lt;D2&amp;gt; Value), 'Green', 'Red')&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still working with this, but I need to understand these expressions. Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 13:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281353#M498042</guid>
      <dc:creator />
      <dc:date>2011-09-23T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281354#M498043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;r316811r wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;In your sample above, do D1, D2, D3 represent the FIELD NAMES or Field Values? &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field names&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;r316811r wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since D1 status is dependant upon the cumulative of D2s that make it up, shouldn't the last expression be:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333;"&gt;Expression: D1 status&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE class="notranslate"&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333;"&gt;If(Count({&amp;lt;Value={"&amp;gt;=0"}&amp;gt;} total &amp;lt;D2&amp;gt; Value) &amp;gt;= Count({&amp;lt;Value={"&amp;lt;0"}&amp;gt;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total &amp;lt;D2&amp;gt; Value), 'Green', 'Red')&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't think so - as the count of D1 records (top level of hierarchy) is the same regardless of the D2 records. The count at the top level does not matter how the lower levels are structured.This is in contrast with D3, at the lowest level of the hierarchy, where the reference is only relevant within the context of a specific D1 and D2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps to clarify the expressions&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281354#M498043</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-23T14:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281355#M498044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I'm beginning to understand, but I don't think this is it, just yet. I'm going to be attaching a QV document that will show what I'm doing, but this image will help, &lt;IMG __jive_id="7512" alt="test.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/7512_test.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Notice the red and green indicators. The first column is based on the value of GOODBAD. the 2nd column should be based on the red/green status in the first column and actually seems to work. However, the third and fourth columns should be red, because the LU's have more red indicators than Green, and the Hospital column should also be red because it has more red LUs than green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the expressions you have given to me take their status based on the lowest levels (quarters) not the immedialy lower down levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 16:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281355#M498044</guid>
      <dc:creator />
      <dc:date>2011-09-23T16:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281356#M498045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third and fourth column look correct to me - you have 17 green and 15 red indicators in the first column. From your initial post I understood that to mean if there were more green than red in the first then the result should be green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I have not fully understood your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Sep 2011 06:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281356#M498045</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-24T06:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281357#M498046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your continued help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I have not explained it well enough. The 3rd column should be based on the 2nd column (that is, in this case, there are more red Indicaters than green in the 2nd column, so column 3 should be red); and the 4th column should be based on the 3rd column in a similar fashion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in the image, you can see that the column for Indicators (column 2) looks good. Column 3 (LU's) consists of four Indicators in column 2 (IND-1, IND-2, IND-3, IND-4). IND-1 is green, but the other three are red, so LU-A should be coded as red, since there are more red Indicators than green Indicators. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for your patience; imagine how difficult this was getting the requirements out of the user!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281357#M498046</guid>
      <dc:creator />
      <dc:date>2011-09-26T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281358#M498047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the problem. Have a look at the attached - I think its what you are after. I created two hidden columns to track the number of greens and reds and use the counts of the hidden columns to ensure that each level uses the previous level's green/red count, rather than the base level green/red count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately your test data appears not to have LU;s and hospitals that come out green, so I can't be sure that it is working, but it seems to be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 17:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281358#M498047</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-26T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281359#M498048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assure you, I am pouring over your suggestions and cracking my brains. I'm not sure how this new version will work, since I see the following 'bad field name(s)' errors when you reference T1 and T2 in the expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7563" alt="bad field names.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/7563_bad+field+names.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I see where you're going with this, but will this work, since t1 and t2 aren't fields in the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the input data so you can play around with it...I simplified this version, just one hospital and one LU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, I really appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 13:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281359#M498048</guid>
      <dc:creator />
      <dc:date>2011-09-27T13:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281360#M498049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview sometimes is a little overzealous in indicating syntax errors in script/expressions and bad field names in expressions. They are 'bad' because they are not field names, but column references. You could replace t1/t2 with column(n), ir referencing the column by number rather than by name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 17:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281360#M498049</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-27T17:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281361#M498050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I don't understand then. I added a couple of fields to show the left- and right- sides of the comparison within T2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the left side is based on a count of t1's that are equal to 1, and the right side is based on the count of t1's that are equal to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both sides of the comparison show a count if '0'. Yet, in the screen print below, I can see t1's with a value of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I not getting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="t2.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7570_t2.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 17:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281361#M498050</guid>
      <dc:creator />
      <dc:date>2011-09-27T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281362#M498052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why its not working for you. What have you changed? &lt;/P&gt;&lt;P&gt;Perhaps you could post that again and I could have a look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 18:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281362#M498052</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-27T18:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281363#M498054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely. Here they are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 18:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281363#M498054</guid>
      <dc:creator />
      <dc:date>2011-09-27T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281364#M498055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - had another commitment!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at the file and admit that I am stumped - I even tried with column(6) instead and the expression returns zero no matter what I try. Its late here now - perhaps it will be clearer in the morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 20:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281364#M498055</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-27T20:38:11Z</dc:date>
    </item>
    <item>
      <title>Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281365#M498056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I played around some more with this model and I think that it may be corrupt, as it is behaving very strangely. I would try reloading the data from the source and starting again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 10:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281365#M498056</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-28T10:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281366#M498057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took your advice and rebuilt the application from the ground up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still getting the same results. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2 - left is the left side of the comparision expression in t2&lt;/P&gt;&lt;P&gt;t2 - right is the right side of the t2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 16:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281366#M498057</guid>
      <dc:creator />
      <dc:date>2011-09-28T16:40:00Z</dc:date>
    </item>
    <item>
      <title>Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281367#M498058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to get this working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 21:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281367#M498058</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-29T21:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281368#M498059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet, thanks for asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 10:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281368#M498059</guid>
      <dc:creator />
      <dc:date>2011-09-30T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281369#M498060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realise what the problem is - you&amp;nbsp; cannot use result columns in aggregation expressions - so we cannot use them in a count() statement. Qlikview returns zero from the count and this what we have been seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will work on a complete expression for each level of the hierarchy that does not use intermediate column results and will post this here shortly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2011 16:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281369#M498060</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-10-01T16:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a status based on rows within a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281370#M498061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the solution (see attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on a hierarchty Level 3 (lowest level), Level 2 Level 1 (highest). Field status is set to Bad if the value is zero or below, Good if the status is above zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions for each of the levels status indicators are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Level 3:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Sum({&amp;lt;Status={'Bad'}&amp;gt;} RecCount) &amp;lt; Sum({&amp;lt;Status={'Good'}&amp;gt;} RecCount), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;(Pretty straightfoward)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Level 2:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Sum(Total &amp;lt;Level1, Level2&amp;gt; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum({&amp;lt;Status={'Bad'}&amp;gt;} RecCount) &amp;gt;= Sum({&amp;lt;Status={'Good'}&amp;gt;} RecCount), -1, 1), Level1, Level2, Level3)) &amp;gt; 0, &lt;/P&gt;&lt;P&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;(Level 3 expression in Aggr, adding 1 for good and subtracting 1 for bad, and comparing the results with zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Level 1:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Sum(Total &amp;lt;Level1&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(Total &amp;lt;Level1, Level2&amp;gt; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum({&amp;lt;Status={'Bad'}&amp;gt;} RecCount) &amp;gt;= Sum({&amp;lt;Status={'Good'}&amp;gt;} RecCount), -1, 1), Level1, Level2, Level3)) &amp;gt; 0, 1, -1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level1, Level2, Level3)) &amp;gt; 0, &lt;/P&gt;&lt;P&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;(Level 2 xpression in Aggr, adding 1 for good and subtracting 1 for bad, and comparing the results with zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested this quite carefuly and I am confident that it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2011 20:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-status-based-on-rows-within-a-dimension/m-p/281370#M498061</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-10-01T20:08:35Z</dc:date>
    </item>
  </channel>
</rss>

