<?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: peek or pervious when simular number in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179721#M21730</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 tried both and both give me same answer I have been getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other ideas please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 12:39:40 GMT</pubDate>
    <dc:creator>joeybird</dc:creator>
    <dc:date>2016-07-19T12:39:40Z</dc:date>
    <item>
      <title>peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179718#M21727</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 am trying to see if next number is lower than the next...but I am having issues when it sees the first number or next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried both expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((Sales)&amp;lt; peek(sales),'1','0') as flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((Sales)&amp;lt; previous(sales),'1','0') as flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month 1 , sales = 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...flag = 1&lt;/P&gt;&lt;P&gt;Month 2,&amp;nbsp; sales = 9.8&amp;nbsp;&amp;nbsp; ... flag = 1&lt;/P&gt;&lt;P&gt;Month 3,&amp;nbsp; sales = 9.9&amp;nbsp; ....flag =&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;Month 4&amp;nbsp; Sales = 9.9&amp;nbsp;&amp;nbsp; ... flag = 0&lt;/P&gt;&lt;P&gt;Month 5&amp;nbsp; Sales = 15&amp;nbsp;&amp;nbsp; .... flag = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I make Month 1 flag be 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179718#M21727</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2016-07-19T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179719#M21728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the field Sales or &lt;SPAN style="text-decoration: underline;"&gt;s&lt;/SPAN&gt;ales - QV field names are case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct syntax would be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Sales &amp;lt; Alt(previous(Sales), 0), 1, 0) as flag,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179719#M21728</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-07-19T11:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179720#M21729</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;Please find the attachement of QVF of your requirement ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I am assuming&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;'Sales'&lt;/STRONG&gt; as field name ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179720#M21729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179721#M21730</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 tried both and both give me same answer I have been getting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other ideas please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 12:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179721#M21730</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2016-07-19T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179722#M21731</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;You need to make sure you data is orders by the month,&lt;/P&gt;&lt;P&gt;Then you Can do something like&lt;/P&gt;&lt;P&gt;IF(RowNo() = 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Sales &amp;lt; previous(Sales),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple years you can add a check for year in a similar fashion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 13:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179722#M21731</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-07-19T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179723#M21732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are your months strings or numbers ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are string, then try adding a number and apply the sort on a descending way, peek or previous should work as long as you use the same field name, like Jonathan already suggested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 13:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179723#M21732</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2016-07-19T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179724#M21733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still a problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading in from SQL tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried order by month too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(replace(Sales, ' ', '')) as Sales... to make sure it sees a number field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing its rounding the figure? because its decimal places?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 15:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179724#M21733</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2016-07-19T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: peek or pervious when simular number</title>
      <link>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179725#M21734</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;after some testing ..it only works, if field is cast as an int ...not numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks guys for your help x&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 08:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/peek-or-pervious-when-simular-number/m-p/1179725#M21734</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2016-07-20T08:58:14Z</dc:date>
    </item>
  </channel>
</rss>

