<?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 If relations - Put labells on orders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210544#M65094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even shorter (but untested) and probably faster if the amount of data is huge as it sums twice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Sum(Sales) &amp;lt;= 100, 'Small', If(Sum(Sales) &amp;lt; 500, 'Medium', 'Large'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 08:26:16 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-09-21T08:26:16Z</dc:date>
    <item>
      <title>If relations - Put labells on orders</title>
      <link>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210542#M65092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a report where I would like to add a column saying that if an order is less than 100 EUR it should be labelled "Small", if it's between 101 EUR and 499 EUR it should be labelled "Medium" and if it's 500 EUR or more it should be labelled "Large". Do you have any suggestion on how I should write the formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;(((Sum(Sales))) &amp;lt; 100, 'Small' , 'Large') &lt;P&gt;&lt;/P&gt;(((Sum(Sales))) &amp;lt; 100, 'Small' , 'Large') &lt;P&gt;(((Sum(Sales))) &amp;lt; 100, 'Small' , 'Large')&lt;/P&gt;&lt;P&gt;worked when I just wanted to have two labells but I only get zeros in the report when trying to input a third range.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;/Maria&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 07:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210542#M65092</guid>
      <dc:creator />
      <dc:date>2010-09-21T07:04:56Z</dc:date>
    </item>
    <item>
      <title>If relations - Put labells on orders</title>
      <link>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210543#M65093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this and see. Hope it will work for you.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if(sum(sales)&amp;lt;=100,'small',if(sum(sales)&amp;gt;100 and sum(sales)&amp;lt;500,'medium',if(sum(sales)&amp;gt;=500,'large')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nilupa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 07:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210543#M65093</guid>
      <dc:creator />
      <dc:date>2010-09-21T07:19:54Z</dc:date>
    </item>
    <item>
      <title>If relations - Put labells on orders</title>
      <link>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210544#M65094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even shorter (but untested) and probably faster if the amount of data is huge as it sums twice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Sum(Sales) &amp;lt;= 100, 'Small', If(Sum(Sales) &amp;lt; 500, 'Medium', 'Large'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 08:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-relations-Put-labells-on-orders/m-p/210544#M65094</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-21T08:26:16Z</dc:date>
    </item>
  </channel>
</rss>

