<?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: Assistance with an expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129344#M9065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one: Count({$&amp;lt;[Overall Status]={"Completed"}&amp;gt;} [GREW ID]) / Count({$&amp;lt;&lt;STRONG&gt;[Overall Status]=&lt;/STRONG&gt;&amp;gt;}[GREW ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or this one: Count({$&amp;lt;[Overall Status]&lt;STRONG&gt;*=&lt;/STRONG&gt;{"Completed"}&amp;gt;} [GREW ID]) / Count({$&amp;lt;&lt;STRONG&gt;[Overall Status]=&lt;/STRONG&gt;&amp;gt;}[GREW ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2018 13:44:24 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-10-23T13:44:24Z</dc:date>
    <item>
      <title>Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129343#M9064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression, which works perfectly, except under one condition: Count({$&amp;lt;[Overall Status]={"Completed"}&amp;gt;} [GREW ID]) / Count([GREW ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that as soon as I place a filter on the Overall Status field my KPI's no longer work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the expression above divides the number of cases that have an Overall Status of Completed, against a total count of all cases giving me a percentage. Nice and simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I filter my data by any data item other than Overall Status the KPI works exactly as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem with this KPI/expression comes in when a user filters the overall status. For example, if the user decides they want to filter Overall Status to "Closed" I would expect the KPI to reflect 0%, after all there are no longer any cases with an Overall Status of Completed and so 0 divided by anything that is not 0 would result in 0...... but not with Qlik Sense. With Qlik Sense I get my KPI showing 933.8% for that specific example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked the raw data, there are no blank entries for Overall Status, and so no reason that I can see as to why this expression does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My head is blown on this one, I have no idea why Qlik would list anything other than 0%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129343#M9064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129344#M9065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one: Count({$&amp;lt;[Overall Status]={"Completed"}&amp;gt;} [GREW ID]) / Count({$&amp;lt;&lt;STRONG&gt;[Overall Status]=&lt;/STRONG&gt;&amp;gt;}[GREW ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or this one: Count({$&amp;lt;[Overall Status]&lt;STRONG&gt;*=&lt;/STRONG&gt;{"Completed"}&amp;gt;} [GREW ID]) / Count({$&amp;lt;&lt;STRONG&gt;[Overall Status]=&lt;/STRONG&gt;&amp;gt;}[GREW ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129344#M9065</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-23T13:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129345#M9066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, that seems to have fixed it. I'm relatively new to Qlik Expressions. Out of interest, what is your addition at the end actually telling Qlik?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129345#M9066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129346#M9067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Overall Status]= tells Qlik to ignore any selections in the Overall Status field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129346#M9067</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-23T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129347#M9068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, I'll store that away in my mind. Thank you for your help. Still don't get how Qlik got 933.8% instead of the correct 0%, but this works so I'm good to go!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129347#M9068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T13:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129348#M9069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you divide two numbers. The first is always the count of GREW ID with Completed as Overall Status. The second was the count of GREW ID with whatever Overall Status the user selected (no selection means all GREW ID's). Those two numbers are divided by each other, so if you get 993.8% you have a lot more GREW ID's that were completed then there where with whatever status the user selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129348#M9069</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-23T13:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129349#M9070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting. I thought that as the user had filtered the data to exclude Completed the expression would find 0 matches and mark accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did not realise that it would kind of bypass the filter placed on the dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129349#M9070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an expression</title>
      <link>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129350#M9071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;{$&amp;lt;[Overall Status]={"Completed"}&amp;gt;} means ignore any selection in Overall Status and use "Completed" instead. So it doesn't matter here what the user selects. The expression will always only count Completed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Assistance-with-an-expression/m-p/129350#M9071</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-10-23T14:04:29Z</dc:date>
    </item>
  </channel>
</rss>

