<?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 Statistics on calculated fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214220#M67775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the solution, but I did not get the expected results. Besides that, the actual example is a bit more difficult (attached with this post).&lt;/P&gt;&lt;P&gt;I created a statistics object where I define if a target date is met by using a combination of expression...&lt;/P&gt;&lt;P&gt;Now I would like to know for that object &lt;B&gt;how much (in percentage) of all reports meet the actual target date&lt;/B&gt;. It should be shown &lt;B&gt;per week.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be quite simple, but I'm a bit overwhelmbed by the vast amount of code the calculated field contains now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 07:20:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-15T07:20:55Z</dc:date>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214217#M67772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Attached I created a QV document, in wich I have created a small table.&lt;BR /&gt;Afterwards I created a statistics object, in which I added a new calculated column (via an expression).&lt;BR /&gt;&lt;BR /&gt;The expression could be something like this:&lt;BR /&gt;[CODE]if(([End]-[Start])&amp;lt;='1','Yes','No')[/CODE]&lt;BR /&gt;&lt;BR /&gt;Now, as a next step, I would like to know the percentage of 'Yes' (2) compared to the total of records (5) ==&amp;gt; So, the outcome should be 40%.&lt;BR /&gt;&lt;BR /&gt;In the long end the goal is to see per [START] (timestamp) the percentage of 'Yes' as a chart.&lt;BR /&gt;So, in my example,&lt;BR /&gt;for [START]=1, I would want to see 33%&lt;BR /&gt;for [START]=2, I would want to see 100%&lt;BR /&gt;for [START]=3, I would want to see 0%&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;Ps: I prefer not to do changes in the script. I would like to know if it is possible with either macro's, set analysis, ...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Maarten&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 15:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214217#M67772</guid>
      <dc:creator />
      <dc:date>2011-04-13T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214218#M67773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, this is possible with advanced aggregation (aggr). Your expression would be: sum(aggr(if(End-Start&amp;lt;=1,1),Id,Start))/sum(aggr(1,Id,Start,End))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 16:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214218#M67773</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-04-13T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214219#M67774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad, I'll give that one a try!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 15:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214219#M67774</guid>
      <dc:creator />
      <dc:date>2011-04-14T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214220#M67775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the solution, but I did not get the expected results. Besides that, the actual example is a bit more difficult (attached with this post).&lt;/P&gt;&lt;P&gt;I created a statistics object where I define if a target date is met by using a combination of expression...&lt;/P&gt;&lt;P&gt;Now I would like to know for that object &lt;B&gt;how much (in percentage) of all reports meet the actual target date&lt;/B&gt;. It should be shown &lt;B&gt;per week.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be quite simple, but I'm a bit overwhelmbed by the vast amount of code the calculated field contains now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 07:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214220#M67775</guid>
      <dc:creator />
      <dc:date>2011-04-15T07:20:55Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214221#M67776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maarten,&lt;/P&gt;&lt;P&gt;Please see the attached solution.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 13:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214221#M67776</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-04-15T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214222#M67777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad,&lt;/P&gt;&lt;P&gt;Exactly what I needed! Thanks a lot... I will take a closer look at your solution, asspecially where you configured the vOnTime variable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 07:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214222#M67777</guid>
      <dc:creator />
      <dc:date>2011-04-18T07:59:07Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214223#M67778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To view variables, go to Settings&amp;gt;Variable Overview. The vOnTime variable is your exact expression just pasted into a variable so we can use it elsewhere without having to retype the whole thing. The functionality is the same, it's just a matter of convenience.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214223#M67778</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-04-18T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Statistics on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214224#M67779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vlad,&lt;/P&gt;&lt;P&gt;Thanks for the information! ... (and sorry for my late reply, I was enjoying a week of holidays :-)).&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 08:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Statistics-on-calculated-fields/m-p/214224#M67779</guid>
      <dc:creator />
      <dc:date>2011-04-26T08:48:29Z</dc:date>
    </item>
  </channel>
</rss>

