<?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 Range Analysis Techinques - Assistance Needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512634#M687338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikCommunity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently in need of assistance with Range Analysis techniques which can be utilized in my script to create a QVD.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My issue is with implementing the proper Range Analysis technique to correctly identify a consecutive series of hours that exceed unique criteria.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an entity in my data set, hourly data is evaluated and can only contain one threshold label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To obtain a threshold label of Extreme, the hourly sales total could be the first, second, or third hour in a series of hours to exceed both 15% of target and $20,000.&amp;nbsp; There must be at least three consecutive hours all exceeding the threshold to obtain this label. Two consecutive hours would receive no label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am only able to identify the second and third hour in a series correctly when performing the initial load of data.&amp;nbsp; Any assistance with identifying the range analysis technique I should utilize will be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ultimate goal is to create a QVD containing the properly applied labels to the hours which exceeded the thresholds.&amp;nbsp; This is needed due to the labels will affect calculations in subsequent analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Background:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Twenty distinct entities are being evaluated under the same conditions and calculations&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Each entity has a different hourly target amount&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Data for each entity is hourly&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Deviations from sales targets can be positive or negative&lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;a. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Negative Deviation - hourly sales are less than the hourly sales target&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;b. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Positive Deviation - hourly sales are greater than the hourly sales target&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;If a sales target deviation is reoccurring in the same direction, it needs to be identified and the trend labeled/ grouped into one of the following thresholds&lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;a. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Extreme - both 15 % of the hourly target amount and $20,000 in each hour for 3 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;b. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;High - both 7.5 % of the hourly target amount and $10,000 in each hour for 6 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;c. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Moderate - both 1.5 % of the hourly target amount and $5,000 in each hour for 12 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;d. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Low - both 1.5 % of the hourly target amount and $2,000 in each hour for 24 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Nov 2013 21:46:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-30T21:46:25Z</dc:date>
    <item>
      <title>Range Analysis Techinques - Assistance Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512634#M687338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikCommunity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently in need of assistance with Range Analysis techniques which can be utilized in my script to create a QVD.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My issue is with implementing the proper Range Analysis technique to correctly identify a consecutive series of hours that exceed unique criteria.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an entity in my data set, hourly data is evaluated and can only contain one threshold label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To obtain a threshold label of Extreme, the hourly sales total could be the first, second, or third hour in a series of hours to exceed both 15% of target and $20,000.&amp;nbsp; There must be at least three consecutive hours all exceeding the threshold to obtain this label. Two consecutive hours would receive no label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am only able to identify the second and third hour in a series correctly when performing the initial load of data.&amp;nbsp; Any assistance with identifying the range analysis technique I should utilize will be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ultimate goal is to create a QVD containing the properly applied labels to the hours which exceeded the thresholds.&amp;nbsp; This is needed due to the labels will affect calculations in subsequent analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Background:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Twenty distinct entities are being evaluated under the same conditions and calculations&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Each entity has a different hourly target amount&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Data for each entity is hourly&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Deviations from sales targets can be positive or negative&lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;a. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Negative Deviation - hourly sales are less than the hourly sales target&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;b. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Positive Deviation - hourly sales are greater than the hourly sales target&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;If a sales target deviation is reoccurring in the same direction, it needs to be identified and the trend labeled/ grouped into one of the following thresholds&lt;/SPAN&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;a. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Extreme - both 15 % of the hourly target amount and $20,000 in each hour for 3 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;b. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;High - both 7.5 % of the hourly target amount and $10,000 in each hour for 6 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;c. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Moderate - both 1.5 % of the hourly target amount and $5,000 in each hour for 12 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;d. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Low - both 1.5 % of the hourly target amount and $2,000 in each hour for 24 consecutive hours or more in the same direction&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Nov 2013 21:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512634#M687338</guid>
      <dc:creator />
      <dc:date>2013-11-30T21:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Range Analysis Techinques - Assistance Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512635#M687339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this using the peek function, but you'll need a big if statements, especially for the 12 and 24 hour series. The data needs to be ordered by Entity, Date and then Hour. For the three hour series the if statement (for the positive deviation) would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( Entity=peek(Entity,-1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Entity=peek(Entity,-2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;HourlySales &amp;gt; HourlyTarget*0.15 and HourlySales &amp;gt; 20000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and peek(HourlySales,-1) &amp;gt; HourlyTarget*0.15 and peek(HourlySales,-1) &amp;gt; 20000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and peek(HourlySales,-2) &amp;gt; HourlyTarget*0.15 and peek(HourlySales,-2) &amp;gt; 20000&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; , 1, 0) as ThresholdA&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2013 12:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512635#M687339</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-01T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Range Analysis Techinques - Assistance Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512636#M687340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variation of this is what I utilized to resolve my issue.&amp;nbsp; Thank you again for your assistance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 19:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-Analysis-Techinques-Assistance-Needed/m-p/512636#M687340</guid>
      <dc:creator />
      <dc:date>2014-07-23T19:07:44Z</dc:date>
    </item>
  </channel>
</rss>

