<?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: Converting the Algorithm into Qlikview Code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996823#M970520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/qlik-blogpost/3837"&gt;Recipe for a Box Plot&lt;/A&gt;. It is not exactly the same, but the calculations are similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 11:40:14 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2015-09-22T11:40:14Z</dc:date>
    <item>
      <title>Converting the Algorithm into Qlikview Code</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996822#M970517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this list box full of Metrics Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="159" style="border: 1px solid #000000; width: 147px; height: 161px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Metrics Name&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each Metric has a value for several ID's. Say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="130" style="border: 1px solid #000000; width: 242px; height: 132px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Metric Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Metric Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;20.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;10.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;12.6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, it goes on for all the ID's and each Metric. My requirement is to come up with a benchmark value for a Particular Metric. This is the Algorithm I found online (Box and Whiskers Plot Algorithm)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sort the values for a particular Metric in ascending order.&lt;/P&gt;&lt;P&gt;2. If there are more than 10 values (count), then do the following (else Chart should not be displayed for that metric)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1. Find Q1 = Fractile (MetricValue,0.25)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.2. Find Q2 = Fractile (MetricValue,0.5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.3. Find Q3 = Fractile (MetricValue,0.75)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.4. Find IQR = Q3-Q1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.5. Find &lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt;"&gt;LB = Q1 - 1.5 * IQR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.6. Find&lt;SPAN style="color: #575757;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;UB = Q3 + 1.5 * IQR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.7. The values Lower than LB and higher than UB should be eliminated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;3. If (MetricType='Some Type', Fractile(MetricValue,0.85), Fractile(MetricValue,0.15)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Algorithm needs to be implemented in Chart Expression, so that if a Metric is selected, the Chart will be shown accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure, whether this is possible in Qlikview. It would be great if someone can throw some light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching the Sample working of the Algorithm in an Excel File.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996822#M970517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting the Algorithm into Qlikview Code</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996823#M970520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/qlik-blogpost/3837"&gt;Recipe for a Box Plot&lt;/A&gt;. It is not exactly the same, but the calculations are similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 11:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996823#M970520</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-22T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting the Algorithm into Qlikview Code</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996824#M970522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Henric. Let me Check whether it works for me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 11:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-the-Algorithm-into-Qlikview-Code/m-p/996824#M970522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-22T11:47:17Z</dc:date>
    </item>
  </channel>
</rss>

