<?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 do I number price-range periods? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14417#M771039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I think this could help (assuming rows are in the correct order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;Produt,min(RecNo()) as minrn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident &lt;/P&gt;&lt;P&gt;Price_records&lt;/P&gt;&lt;P&gt;group by Produt&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;left join(Price_records)&lt;/P&gt;&lt;P&gt;load Produt,minrn&lt;/P&gt;&lt;P&gt;resident t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load *,recno()- minrn+1 as Period&lt;/P&gt;&lt;P&gt;resident Price_records;&lt;/P&gt;&lt;P&gt;drop table t,Price_records;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2018 15:46:12 GMT</pubDate>
    <dc:creator>olivierrobin</dc:creator>
    <dc:date>2018-05-25T15:46:12Z</dc:date>
    <item>
      <title>How do I number price-range periods?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14414#M771036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community, &lt;/P&gt;&lt;P&gt;I'd be grateful if someone could help me with the following situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following price list, with diferent date ranges.&lt;/P&gt;&lt;P&gt;Already ordered by date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 337px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="text-align: center;" width="64"&gt;Product&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="53"&gt;Price_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="96"&gt;FromDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="79"&gt;ToDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="45"&gt;Price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/01/2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/03/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;15.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10050&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/04/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;30/11/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;16.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10090&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/04/2018&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;17.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_BBB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10020&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/02/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/05/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;32.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_BBB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10040&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/06/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/10/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;34.8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to number price-range periods for&amp;nbsp; each product, as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="150" style="width: 389px; height: 152px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="text-align: center;" width="64"&gt;Product&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="53"&gt;Price_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="96"&gt;FromDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="79"&gt;ToDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="45"&gt;Price&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="45"&gt;Period&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/01/2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/03/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;15.8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10050&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/04/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;30/11/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;16.6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_AAA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10090&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/12/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/04/2018&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;17.8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_BBB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10020&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/02/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/05/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;32.5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none; text-align: center;"&gt;Prod_BBB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none; text-align: center;"&gt;10040&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;01/06/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;31/10/2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;34.8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find as follows script to generate above example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Price_records:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Produt, Price_ID, FromDate, ToDate, Price&lt;/P&gt;&lt;P&gt;Prod_AAA, 10001, 01/01/2016, 31/03/2017, 15.8&lt;/P&gt;&lt;P&gt;Prod_AAA, 10050, 01/04/2017, 30/11/2017, 16.6&lt;/P&gt;&lt;P&gt;Prod_AAA, 10090, 01/12/2017, 31/04/2018, 17.8&lt;/P&gt;&lt;P&gt;Prod_BBB, 10020, 01/02/2017, 31/05/2017, 32.5&lt;/P&gt;&lt;P&gt;Prod_BBB, 10040, 01/06/2017, 31/10/2017, 34.8];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14414#M771036</guid>
      <dc:creator>leonardo_clavel</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I number price-range periods?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14415#M771037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(RowNo(), Product) as Period&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Product = Previous(Product), RangeSum(Peek('Period'), 1), 1) as Period&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 15:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14415#M771037</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-25T15:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I number price-range periods?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14416#M771038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Price_records:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Product = Previous(Product), RangeSum(Peek('Period'), 1), 1) as Period,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(RowNo(), Product) as Period1;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, Price_ID, FromDate, ToDate, Price&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prod_AAA, 10001, 01/01/2016, 31/03/2017, 15.8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prod_AAA, 10050, 01/04/2017, 30/11/2017, 16.6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prod_AAA, 10090, 01/12/2017, 31/04/2018, 17.8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prod_BBB, 10020, 01/02/2017, 31/05/2017, 32.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Prod_BBB, 10040, 01/06/2017, 31/10/2017, 34.8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 15:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14416#M771038</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-25T15:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I number price-range periods?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14417#M771039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I think this could help (assuming rows are in the correct order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;Produt,min(RecNo()) as minrn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resident &lt;/P&gt;&lt;P&gt;Price_records&lt;/P&gt;&lt;P&gt;group by Produt&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;left join(Price_records)&lt;/P&gt;&lt;P&gt;load Produt,minrn&lt;/P&gt;&lt;P&gt;resident t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load *,recno()- minrn+1 as Period&lt;/P&gt;&lt;P&gt;resident Price_records;&lt;/P&gt;&lt;P&gt;drop table t,Price_records;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 15:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14417#M771039</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-25T15:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I number price-range periods?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14418#M771040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great job Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 15:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14418#M771040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-25T15:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I number price-range periods?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14419#M771041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 15:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-number-price-range-periods/m-p/14419#M771041</guid>
      <dc:creator>leonardo_clavel</dc:creator>
      <dc:date>2018-05-25T15:56:26Z</dc:date>
    </item>
  </channel>
</rss>

