<?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: quantile(Q1 &amp; Q3) calculation in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914714#M989661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching a sample sample for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(Date) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Rand() * 50) as Value;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;04/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;05/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;06/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;07/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;08/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;09/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;04/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;05/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;06/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;07/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;08/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;09/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93983_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jul 2015 11:44:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-07-25T11:44:58Z</dc:date>
    <item>
      <title>quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914711#M989658</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 a straight table where i am assigning each row to one category out of 4 categories based on calculation of sales increase/decrease compared to previous year in previous column expression. Then i want to calculate the q1 ans q3 quantiles for each category assigned in the straight table. i am aware fractile command can be used to calculate the quantiles values but i am not successful in calculating this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am adding a new expression in the straight table where i wanted to calculate the q1 and q3 for each category but i am not sure if this is the way to approach it. Please suggest the best way to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Srividya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914711#M989658</guid>
      <dc:creator />
      <dc:date>2015-07-24T20:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914712#M989659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might have missed the 2nd Argument:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 1st Quartile: &lt;STRONG&gt;Fractile(YourField, 0.25)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For 3rd Quartile: &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Fractile(YourField, 0.75)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914712#M989659</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-24T20:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914713#M989660</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;I have applied the formula: fractile(sales,0.25) as an expression in the straight table where sales is also a expression and i get "-" in every row of the fractile column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 05:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914713#M989660</guid>
      <dc:creator />
      <dc:date>2015-07-25T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914714#M989661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching a sample sample for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(Date) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(Date) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(Date) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Rand() * 50) as Value;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;04/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;05/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;06/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;07/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;08/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;09/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12/01/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;04/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;05/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;06/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;07/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;08/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;09/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12/01/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93983_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 11:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914714#M989661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-25T11:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914715#M989662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you are trying to use an expression label "sales" in the fractile function, which I believe will not work.&lt;/P&gt;&lt;P&gt;Maybe you need advanced aggregation (aggr() function) here to enable you to apply fractile() on a custom table (like categorized sales values). Or maybe you can do the categorization in the script and use fractile() with a set analysis filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a bit unclear to me what you are trying to achieve and how your setting looks like.&lt;/P&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 12:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914715#M989662</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-25T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914716#M989663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;attached file. I am selecting country in the 2nd sheet intra 80% where i select the top 80% contributors to sales. cllicking on the button rediects to the 3rd sheet where i plot graphs of these contributors and i need to assign them to high,medium and low risk categories by assigning a color to each of high,medium and low risk in graph. i need to calculate the quartiles on the YOY expression for the Top Revenue decline contributors.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hope i have made myself clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 18:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914716#M989663</guid>
      <dc:creator />
      <dc:date>2015-07-25T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914717#M989664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see anything attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 19:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914717#M989664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-25T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: quantile(Q1 &amp; Q3) calculation in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914718#M989665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry! qvw not uploading.. i have attached an image to explain the scenario. the points in the scatterplot is the ID of the contributors which fall in the Top Revenue declining category. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calculation of YOY used: (Sum({&amp;lt;Fiscal_Half={"$(vFiscalHalf2)"}&amp;gt;} Sales_Out))-(Sum({&amp;lt;Fiscal_Half={"$(vFiscalHalf1)"}&amp;gt;} Sales_Out))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to calculate the quantiles in the script as it needs to be done dynamically when a particular country is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am considering to calculate the quantiles of YOY expression and store it in a variable using macro.&amp;nbsp; then the variable vallue can be used in the graph to set different color to high ,medium n low risk areas depending of the q1 and q3 quartiles.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93976_1.png" style="height: 333px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 19:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quantile-Q1-Q3-calculation-in-straight-table/m-p/914718#M989665</guid>
      <dc:creator />
      <dc:date>2015-07-25T19:54:06Z</dc:date>
    </item>
  </channel>
</rss>

