<?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: How to create intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531570#M748124</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this solution&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Client, Quantity , Price&lt;/P&gt;&lt;P&gt;Sara , 2 , 20 Eiro&lt;/P&gt;&lt;P&gt;Sara, 4 , 15 Eiro&lt;/P&gt;&lt;P&gt;Sara , 6 , 10 Eiro&lt;/P&gt;&lt;P&gt;];&lt;BR /&gt;&lt;BR /&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;tmp1:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;IF(PREVIOUS(Quantity) &amp;gt; Quantity AND PREVIOUS(Quantity) &amp;lt;&amp;gt; Quantity OR ROWNO() =1,&lt;BR /&gt;NUM(Quantity - 0.01)) AS [NewField]&lt;/P&gt;&lt;P&gt;RESIDENT tmp&lt;BR /&gt;ORDER BY Price ASC&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="difference in values.JPG" style="width: 445px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3948iBCC83EEA10D9002A/image-size/large?v=v2&amp;amp;px=999" role="button" title="difference in values.JPG" alt="difference in values.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 13:21:10 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2019-01-17T13:21:10Z</dc:date>
    <item>
      <title>How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531507#M748119</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Hope for your help with a general task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the Table_1:&lt;/P&gt;&lt;P&gt;Client Quantity&amp;nbsp; &amp;nbsp; Price&lt;/P&gt;&lt;P&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20 Eiro&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15 Eiro&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 Eiro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create additional table with intervals, like Table_2:&lt;/P&gt;&lt;P&gt;Client&amp;nbsp; &amp;nbsp; QuantityFrom&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;QuantityTo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Price&lt;/P&gt;&lt;P&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.999&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.999&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;P.S.: it is a subtask for my general goal&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531507#M748119</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531509#M748120</link>
      <description>&lt;P&gt;The first row in the input table had a quantity of 2, why is the output beginning with 0 instead of 2? Also, the last row of output goes up to 10,000? Does it always stay at 10,000 or can this vary?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 12:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531509#M748120</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-17T12:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531510#M748121</link>
      <description>mmm .. we just have such historical restricment in the system.&lt;BR /&gt;We can't put the 0 value to the quantity...&lt;BR /&gt;and 100000 represents any MAX value, in fact more or equal than 6 is 10 Eiro</description>
      <pubDate>Thu, 17 Jan 2019 12:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531510#M748121</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2019-01-17T12:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531514#M748122</link>
      <description>Wait is the max 10,000 or 100,000? Previously you mentioned 10,000, but now you have 100,000? Also, what do you mean by this -&amp;gt; "in fact more or equal than 6 is 10 Eiro"</description>
      <pubDate>Thu, 17 Jan 2019 12:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531514#M748122</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-17T12:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531540#M748123</link>
      <description>&lt;P&gt;My goal is to define the correct price for a client. The minimal price which he can get is 10 Eiro in case, when he puchae more (or equal) than 6 KG of a product.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our case he will never get more than 10 000 (or 100 000) Kg of the product&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 12:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531540#M748123</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2019-01-17T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531570#M748124</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this solution&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Client, Quantity , Price&lt;/P&gt;&lt;P&gt;Sara , 2 , 20 Eiro&lt;/P&gt;&lt;P&gt;Sara, 4 , 15 Eiro&lt;/P&gt;&lt;P&gt;Sara , 6 , 10 Eiro&lt;/P&gt;&lt;P&gt;];&lt;BR /&gt;&lt;BR /&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;tmp1:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;IF(PREVIOUS(Quantity) &amp;gt; Quantity AND PREVIOUS(Quantity) &amp;lt;&amp;gt; Quantity OR ROWNO() =1,&lt;BR /&gt;NUM(Quantity - 0.01)) AS [NewField]&lt;/P&gt;&lt;P&gt;RESIDENT tmp&lt;BR /&gt;ORDER BY Price ASC&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="difference in values.JPG" style="width: 445px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3948iBCC83EEA10D9002A/image-size/large?v=v2&amp;amp;px=999" role="button" title="difference in values.JPG" alt="difference in values.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 13:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531570#M748124</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2019-01-17T13:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531583#M748125</link>
      <description>Thanks, it will help me a lot ... I will only put comparison with the MAX and MIN value in order to put 0 or 100 000</description>
      <pubDate>Thu, 17 Jan 2019 13:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervals/m-p/1531583#M748125</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2019-01-17T13:29:51Z</dc:date>
    </item>
  </channel>
</rss>

