<?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 How to calculate % expression by a  specific variable in a straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221995#M461252</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;In the attached excel file, I have provided an example of&amp;nbsp; what I am trying to do in my qlikview dashboard. But I am not able to come up with&amp;nbsp; a solution to achieve it. If someone can help me, that'd be a big help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation of what I want to achieve&lt;/P&gt;&lt;P&gt;- There are two dimensions 'Agent Name' and 'Date&lt;SPAN style="font-size: 10pt;"&gt;' associated with the 'Agent Name'. Then there is one expression column 'Availabitly %' which gives a percentage value. I need to create another expression, which first checks if the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt; 'Availabitly %'value is greater than 80% and if yes then count the date for that particular row divide it by total count of # of dates for that particular agent.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 16:57:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-06T16:57:47Z</dc:date>
    <item>
      <title>How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221995#M461252</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;In the attached excel file, I have provided an example of&amp;nbsp; what I am trying to do in my qlikview dashboard. But I am not able to come up with&amp;nbsp; a solution to achieve it. If someone can help me, that'd be a big help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation of what I want to achieve&lt;/P&gt;&lt;P&gt;- There are two dimensions 'Agent Name' and 'Date&lt;SPAN style="font-size: 10pt;"&gt;' associated with the 'Agent Name'. Then there is one expression column 'Availabitly %' which gives a percentage value. I need to create another expression, which first checks if the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="font-size: 13.3333px;"&gt; 'Availabitly %'value is greater than 80% and if yes then count the date for that particular row divide it by total count of # of dates for that particular agent.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221995#M461252</guid>
      <dc:creator />
      <dc:date>2017-02-06T16:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221996#M461253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(If(Availability% &amp;gt; 0.80, Date, 0))/Count(DISTINCT TOTAL &amp;lt;[Agent Name]&amp;gt; Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221996#M461253</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221997#M461254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tweaked a bit of your logic i.e. &lt;STRONG&gt;=if([Availability %]&amp;gt;=0.84,Count(Date1)/ Count(DISTINCT TOTAL &amp;lt;AgentName&amp;gt; Date1),0) &lt;/STRONG&gt;and it worked for individual rows. But for the subtotal per each agent, like the one in attached excel file, what shallI do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221997#M461254</guid>
      <dc:creator />
      <dc:date>2017-02-06T17:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221998#M461255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, is the same, but appears the zero:&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Availabitly %]={"&amp;gt;80"}&amp;gt;}1)/count(Total &amp;lt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Agent Name]&lt;/STRONG&gt;&amp;gt; Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221998#M461255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-06T17:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221999#M461256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;SPAN style="color: #ff0000;"&gt;Sum(Aggr(&lt;/SPAN&gt;If([Availability %]&amp;gt;=0.84,Count(Date1)/ Count(DISTINCT TOTAL &amp;lt;AgentName&amp;gt; Date1), 0)&lt;SPAN style="color: #ff0000;"&gt;, AgentName, Date))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1221999#M461256</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-06T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222000#M461257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Didn't work. Gave me all 0's on each row instead of giving correct value. The subtotal is basically sum of all the individual value for each agent. If I convert the straight table to Pivot, I have an option to do the partial sum by Agent Name, but that also doesn't help. Btw the actual table has multiple expression apart from the two I explained. But I don't think that can be a problem in showing the partial sum..can it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 00:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222000#M461257</guid>
      <dc:creator />
      <dc:date>2017-02-07T00:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222001#M461258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had you apply this one:&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;count({&amp;lt;[&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Availability %]&lt;/STRONG&gt;]={"&amp;gt;80"}&amp;gt;}1)/count(Total &amp;lt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Agent Name]&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt; Date) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222001#M461258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T09:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222002#M461259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample or image of what you are seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222002#M461259</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T10:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % expression by a  specific variable in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222003#M461260</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;Yes I tried your logic too but didn't work. Using your logic, irrespective of [Availability %] is &amp;gt;80 or not,&amp;nbsp; it count the value as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other way I can do with set analysis. The [Availability %] is an expression which is again calculated based on another expression. Not sure if that's throwing an error in calculation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 21:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-expression-by-a-specific-variable-in-a-straight/m-p/1222003#M461260</guid>
      <dc:creator />
      <dc:date>2017-02-08T21:34:01Z</dc:date>
    </item>
  </channel>
</rss>

