<?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 condition question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170184#M40693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a sales person table in that i have 5 persons. I want to find the revenue for 2 sales persons and revenue for the rest.&lt;/P&gt;&lt;P&gt;In the If condition how can i check. Is this like this?&lt;/P&gt;&lt;P style="font-weight: bold"&gt;IF(Sale_person = ('A' and 'B'), Revenue, Revenue)&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 15:28:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-01T15:28:09Z</dc:date>
    <item>
      <title>IF condition question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170184#M40693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a sales person table in that i have 5 persons. I want to find the revenue for 2 sales persons and revenue for the rest.&lt;/P&gt;&lt;P&gt;In the If condition how can i check. Is this like this?&lt;/P&gt;&lt;P style="font-weight: bold"&gt;IF(Sale_person = ('A' and 'B'), Revenue, Revenue)&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 15:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170184#M40693</guid>
      <dc:creator />
      <dc:date>2009-12-01T15:28:09Z</dc:date>
    </item>
    <item>
      <title>IF condition question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170185#M40694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(Sale_person = 'A' Or Sale_person = 'B',Revenue,Revenue)&lt;/P&gt;&lt;P&gt;I guest you incase of A and B you want the revenue to be summed up, ..if so u need to Edit the dimension&lt;/P&gt;&lt;P&gt;If(Sale_person = 'B','A',Sale_person)&lt;/P&gt;&lt;P&gt;and expression will be Revenue only without any if condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 15:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170185#M40694</guid>
      <dc:creator />
      <dc:date>2009-12-01T15:50:58Z</dc:date>
    </item>
    <item>
      <title>IF condition question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170186#M40695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;if u want to sum of A and B &lt;STRONG&gt;Revenue&lt;/STRONG&gt; togather and Sum of other 3 togather then you can do like this&lt;/P&gt;&lt;P&gt;Sum(IF(&lt;STRONG&gt;Sale_person='A' or Sale_person='B' ,Revenue,Revenue&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;but i want to know against which dimention you want to show this Sum i.e(in the Script or in the chart)&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 15:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170186#M40695</guid>
      <dc:creator />
      <dc:date>2009-12-01T15:53:02Z</dc:date>
    </item>
    <item>
      <title>IF condition question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170187#M40696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Dimension you should enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;IF(Sale_Person = 'A' OR Sale_Person = 'B', Sale_Person, 'others')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;The expression then should be SUM(Revenue). &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;if you wish to see just the revenue of the two person, the expression you should enter as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM(IF(Sale_Person = 'A' OR Sale_Person = 'B',Revenue))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Dimension then can be left blank, or has Sale_person ... &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 15:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170187#M40696</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-12-01T15:57:16Z</dc:date>
    </item>
    <item>
      <title>IF condition question</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170188#M40697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys for your suggestions.&lt;/P&gt;&lt;P&gt;Peter -- I cannot restrict in the dimension, because i have combine A &amp;amp; B only and for other i have to show their revenues. It would be better to give in the expression only.&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 17:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-question/m-p/170188#M40697</guid>
      <dc:creator />
      <dc:date>2009-12-01T17:24:09Z</dc:date>
    </item>
  </channel>
</rss>

