<?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 Getting Rank analysis using the fractile()  function in a calculated dimension to work across time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Rank-analysis-using-the-fractile-function-in-a/m-p/1528461#M438580</link>
    <description>&lt;P&gt;I cannot get Rank analysis using the fractile()&amp;nbsp; function in a calculated dimension&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;compute across time periods.&lt;/P&gt;&lt;P&gt;I am trying to use the fractile() function in a calculated dimension to show regional sales by "Quartile"&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bottom 25% = Quartile 4,&amp;nbsp;&lt;SPAN&gt;25-50% = Quartile 3, 50- 75% = Quartile 2, &amp;gt;75% =&amp;nbsp;Quartile 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The below calculated dimension works when displaying charts that do not display the time period (2016, 2017, 2018).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(aggr(sum(Profit),Region,Period) &amp;lt;= fractile(TOTAL (aggr(sum(Profit),Region,Period)), .25),4,&lt;BR /&gt;if(aggr(sum(Profit),Region,Period) &amp;lt;= fractile(TOTAL (aggr(sum(Profit),Region,Period)), .50),3,&lt;BR /&gt;if(aggr(sum(Profit),Region,Period) &amp;lt;= fractile(TOTAL (aggr(sum(Profit),Region,Period)), .75),2,1)))&lt;/P&gt;&lt;P&gt;However, when displaying period in a pivot chart as a dimension, nulls display across certain time periods.&amp;nbsp; If only selecting a single period, the pivots work fine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a screenshot and the qlikview .qvw.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a sheet which uses the rank() function in its charts.&amp;nbsp; Rank() works fine across time.&amp;nbsp; I assume that is because rank ()is a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;I put another post in the "new to qlikview" board, and will remove that one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 15:16:56 GMT</pubDate>
    <dc:creator>dadumas</dc:creator>
    <dc:date>2019-01-09T15:16:56Z</dc:date>
    <item>
      <title>Getting Rank analysis using the fractile()  function in a calculated dimension to work across time</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Rank-analysis-using-the-fractile-function-in-a/m-p/1528461#M438580</link>
      <description>&lt;P&gt;I cannot get Rank analysis using the fractile()&amp;nbsp; function in a calculated dimension&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;compute across time periods.&lt;/P&gt;&lt;P&gt;I am trying to use the fractile() function in a calculated dimension to show regional sales by "Quartile"&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bottom 25% = Quartile 4,&amp;nbsp;&lt;SPAN&gt;25-50% = Quartile 3, 50- 75% = Quartile 2, &amp;gt;75% =&amp;nbsp;Quartile 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The below calculated dimension works when displaying charts that do not display the time period (2016, 2017, 2018).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(aggr(sum(Profit),Region,Period) &amp;lt;= fractile(TOTAL (aggr(sum(Profit),Region,Period)), .25),4,&lt;BR /&gt;if(aggr(sum(Profit),Region,Period) &amp;lt;= fractile(TOTAL (aggr(sum(Profit),Region,Period)), .50),3,&lt;BR /&gt;if(aggr(sum(Profit),Region,Period) &amp;lt;= fractile(TOTAL (aggr(sum(Profit),Region,Period)), .75),2,1)))&lt;/P&gt;&lt;P&gt;However, when displaying period in a pivot chart as a dimension, nulls display across certain time periods.&amp;nbsp; If only selecting a single period, the pivots work fine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a screenshot and the qlikview .qvw.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a sheet which uses the rank() function in its charts.&amp;nbsp; Rank() works fine across time.&amp;nbsp; I assume that is because rank ()is a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;I put another post in the "new to qlikview" board, and will remove that one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 15:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Rank-analysis-using-the-fractile-function-in-a/m-p/1528461#M438580</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2019-01-09T15:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Rank analysis using the fractile()  function in a calculated dimension to work across ti</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Rank-analysis-using-the-fractile-function-in-a/m-p/1529440#M438634</link>
      <description>&lt;P&gt;Being a SQL God :), I decided to code a stored proc to populate a [YTD quartile] (1,2,3,4) directly into the fact records.&amp;nbsp; Since this now exists as part of the load, I can use it without being a calced dimension.&amp;nbsp; &amp;nbsp;Right now users are satisfied this exists at the region level.&amp;nbsp;&amp;nbsp;If they also want to see it at the salesperson level, I will have to add that logic to the stored proc.&amp;nbsp;&amp;nbsp;So this becomes a workaround.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 11:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Rank-analysis-using-the-fractile-function-in-a/m-p/1529440#M438634</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2019-01-11T11:41:48Z</dc:date>
    </item>
  </channel>
</rss>

