<?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: Calculated percentage on specific date in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616723#M684738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, Please try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$&amp;lt;withinfix={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count({&amp;lt;location={'CLO'}&amp;gt;}callref)&lt;/SPAN&gt; , '##0.00%' )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression, the &lt;STRONG&gt;Num&lt;/STRONG&gt; function should be return the % Value. If not please calculate the % by multiplying with 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$&amp;lt;withinfix={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count({&amp;lt;location={'CLO'}&amp;gt;}callref)&lt;/SPAN&gt; , '##0.0000' ) *100 &amp;amp; '%'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 13:58:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-07T13:58:34Z</dc:date>
    <item>
      <title>Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616718#M684733</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 have the below expression which calculates the percentage of calls where the &lt;STRONG&gt;withinfix&lt;/STRONG&gt; field is No by doing a count of the field &lt;STRONG&gt;callref.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(count({$&amp;lt;[withinfix]={No}&amp;gt;} withinfix)&amp;nbsp; / count(callref), '##.00%')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I want to filter it futher by picking up the above only if the &lt;STRONG&gt;location&lt;/STRONG&gt; field = 'CLO'.&amp;nbsp; How would I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616718#M684733</guid>
      <dc:creator />
      <dc:date>2014-02-06T15:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616719#M684734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jon, try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(count({$&amp;lt;[withinfix]={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count(callref), '##.00%')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 16:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616719#M684734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-06T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616720#M684735</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 forgot to mention that my &lt;STRONG&gt;callref&lt;/STRONG&gt; field pulls out all the calls references in the database, so I have to run the below so my callref field only pulls out a location of CLO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(count({$&amp;lt;[withinfix]={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count(if(location = 'CLO', callref)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the above script, it pull through the following: 0.13337, which is correct but how would I display this as a percentage because if I add in the '##.00%', it pull up all my callref which is 68000 instead of my CLO call ref which is 1522.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616720#M684735</guid>
      <dc:creator />
      <dc:date>2014-02-07T12:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616721#M684736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, it is better to be consistent - if you use set analysis in the numerator, use it in denominator as well.&amp;nbsp; &lt;BR /&gt;count({$&amp;lt;withinfix={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count({&amp;lt;location={'CLO'}&amp;gt;}callref)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use "if" in both:&lt;BR /&gt;count(if(withinfix='No' and location='CLO', withinfix))&amp;nbsp; / count(if(location='CLO', callref))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, about formatting.&lt;BR /&gt;If you use this expression within a chart, it is better to define format in the chart properties, tab "Number".&amp;nbsp; No need to define format in expression itself.&lt;BR /&gt;If your expression is outside of the chart, your formatting should work.&amp;nbsp; Check the syntax, especially the parenthesis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616721#M684736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T13:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616722#M684737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response back, I am using the expression in a text object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616722#M684737</guid>
      <dc:creator />
      <dc:date>2014-02-07T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616723#M684738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, Please try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$&amp;lt;withinfix={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count({&amp;lt;location={'CLO'}&amp;gt;}callref)&lt;/SPAN&gt; , '##0.00%' )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression, the &lt;STRONG&gt;Num&lt;/STRONG&gt; function should be return the % Value. If not please calculate the % by multiplying with 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({$&amp;lt;withinfix={No}, location={'CLO'}&amp;gt;} withinfix)&amp;nbsp; / count({&amp;lt;location={'CLO'}&amp;gt;}callref)&lt;/SPAN&gt; , '##0.0000' ) *100 &amp;amp; '%'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616723#M684738</guid>
      <dc:creator />
      <dc:date>2014-02-07T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated percentage on specific date in field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616724#M684739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to both of you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 14:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-percentage-on-specific-date-in-field/m-p/616724#M684739</guid>
      <dc:creator />
      <dc:date>2014-02-07T14:11:06Z</dc:date>
    </item>
  </channel>
</rss>

