<?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: TOTAL SALES FILTER in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314075#M408147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omotayo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you seem to be missing is a finalizing statement for your load&lt;/P&gt;&lt;P&gt;such as&lt;/P&gt;&lt;P&gt;Resident [Table Name]&lt;/P&gt;&lt;P&gt;From [File]&lt;/P&gt;&lt;P&gt;Autogenerate(1)&amp;nbsp; or so on to finish the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(totSales &amp;lt; 35000, Dual('Star', 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(totSales &amp;lt; 60000, Dual('Super', 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(totSales &amp;lt; 100000, Dual('Gallant', 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dual('Poor', 7))))as SalesPrice;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; rand()*(1000000-35000) as totSales //just random numbers so that it's possible to see different categories&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate(10);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works alright.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;DIV class="j-post-avatar" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; position: absolute; top: -26px; left: -72px; color: #3d3d3d; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-userid="213604" href="https://community.qlik.com/people/oseimuduame" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; color: #3778c7;" title="Omotayo Olokede"&gt;&lt;IMG alt="Omotayo Olokede" class="jive-avatar" data-avatarid="-1" data-height="46" data-random="2047642840782744" data-username="oseimuduame" height="46" src="https://community.qlik.com/people/oseimuduame/avatar/46.png?a=-1" style="margin: 0px; padding: 0px; border-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline;" title="Omotayo Olokede" width="46" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="position: absolute; font-style: inherit; width: 737.188px; background-color: #ffffff; display: block; padding: 0px; vertical-align: baseline; height: 20px; color: #3d3d3d; overflow: hidden; font-size: 11.7px; white-space: nowrap; left: -8px; margin: 0px; font-family: inherit; border: 0px; top: -31px;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-userid="213604" data-username="oseimuduame" href="https://community.qlik.com/people/oseimuduame" style="margin: 0px; padding: 0px 3px 0px 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; vertical-align: baseline; color: #3778c7;"&gt;Omotayo&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 18:25:16 GMT</pubDate>
    <dc:creator>felipedl</dc:creator>
    <dc:date>2017-05-22T18:25:16Z</dc:date>
    <item>
      <title>TOTAL SALES FILTER</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314074#M408146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to run a report that will give me range in Total Sales of a customers, for example i should be able to click a price filter and get customers that falls under that category. The script below is what i used to determine how old an item is in my stores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(NDay &amp;lt; 32, Dual('1 Month', 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(NDay &amp;lt; 91, Dual('3 Months', 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(NDay &amp;lt; 181, Dual('6 Months', 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(NDay &amp;lt; 361, Dual('12 Months', 4),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(NDay &amp;lt; 541, Dual('18 Months', 5), &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(NDay &amp;lt; 621, Dual('24 Months', 6),Dual('Over 2 Years', 7))))))) as DayRange;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Today() - FIRST_RCVD_DATE as NDay;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which worked very fine i tried to apply the same method but not getting anything similar to the Result i need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;totSales&lt;/SPAN&gt; &amp;lt; 35000, Dual('Star', 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;totSales&lt;/SPAN&gt; &amp;lt; 60000, Dual('Super', 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;totSales&lt;/SPAN&gt; &amp;lt; 100000, Dual('Gallant', 3),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; Dual('Poor', 7))))as SalesPrice;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; INVC_PRICE as totSales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 17:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314074#M408146</guid>
      <dc:creator>oseimuduame</dc:creator>
      <dc:date>2017-05-22T17:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL SALES FILTER</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314075#M408147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omotayo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you seem to be missing is a finalizing statement for your load&lt;/P&gt;&lt;P&gt;such as&lt;/P&gt;&lt;P&gt;Resident [Table Name]&lt;/P&gt;&lt;P&gt;From [File]&lt;/P&gt;&lt;P&gt;Autogenerate(1)&amp;nbsp; or so on to finish the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(totSales &amp;lt; 35000, Dual('Star', 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(totSales &amp;lt; 60000, Dual('Super', 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(totSales &amp;lt; 100000, Dual('Gallant', 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dual('Poor', 7))))as SalesPrice;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; rand()*(1000000-35000) as totSales //just random numbers so that it's possible to see different categories&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate(10);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works alright.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;DIV class="j-post-avatar" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; position: absolute; top: -26px; left: -72px; color: #3d3d3d; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-userid="213604" href="https://community.qlik.com/people/oseimuduame" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; color: #3778c7;" title="Omotayo Olokede"&gt;&lt;IMG alt="Omotayo Olokede" class="jive-avatar" data-avatarid="-1" data-height="46" data-random="2047642840782744" data-username="oseimuduame" height="46" src="https://community.qlik.com/people/oseimuduame/avatar/46.png?a=-1" style="margin: 0px; padding: 0px; border-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline;" title="Omotayo Olokede" width="46" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="position: absolute; font-style: inherit; width: 737.188px; background-color: #ffffff; display: block; padding: 0px; vertical-align: baseline; height: 20px; color: #3d3d3d; overflow: hidden; font-size: 11.7px; white-space: nowrap; left: -8px; margin: 0px; font-family: inherit; border: 0px; top: -31px;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-userid="213604" data-username="oseimuduame" href="https://community.qlik.com/people/oseimuduame" style="margin: 0px; padding: 0px 3px 0px 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; vertical-align: baseline; color: #3778c7;"&gt;Omotayo&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 18:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314075#M408147</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-05-22T18:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL SALES FILTER</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314076#M408148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is values looks for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;INVC_PRICE &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 04:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314076#M408148</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-23T04:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL SALES FILTER</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314077#M408149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This makes my values to zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-SALES-FILTER/m-p/1314077#M408149</guid>
      <dc:creator>oseimuduame</dc:creator>
      <dc:date>2017-06-14T17:11:50Z</dc:date>
    </item>
  </channel>
</rss>

