<?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: Doing multiple compares in if() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980349#M468010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. That did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 18:59:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-05T18:59:14Z</dc:date>
    <item>
      <title>Doing multiple compares in if()</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980347#M468008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everybody,&lt;/P&gt;&lt;P&gt;Sorry for the long winded email but I've banged my head against a wall with this one. &lt;/P&gt;&lt;P&gt;I'm having some trouble doing a countif within a chart. I'm hoping that someone has done something like this before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard which lays out account(Account_New) and what presence exists by product(Group/Driver). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically there are 4 levels of presence that we can have at an account. &lt;/P&gt;&lt;P&gt;Active - The account has an active product&lt;/P&gt;&lt;P&gt;Opportunity - We are negotiating with the account for that product&lt;/P&gt;&lt;P&gt;Lead - We are talking with a contact at an account for a product but we don't have sizing or a prelim contract&lt;/P&gt;&lt;P&gt;White - No presence for that product. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one chart which shows the highest level in each Group/Account combination. That works fine. &lt;/P&gt;&lt;P&gt;The problem is with a chart which shows the # breakdown of accounts by Group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a way for the Opp, Lead and White columns to exclude any of the accounts that are included in the previous columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically if an account has at least 1 active driver then its active for the entire group and should not be counted in the Opp, Lead or White Column. &lt;/P&gt;&lt;P&gt;Same for Opp (Shouldn't been in Lead, White)&lt;/P&gt;&lt;P&gt;Same for Lead (Shouldn't be in White) - This last piece I did solve as I'm doing a Count(Acct) - Count(if(Active, Opp, Lead, Acct))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The # of accounts is the table I need to get working right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The List of Account Ids shows the account Ids by Group &amp;amp; Level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following but it didn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Created a hidden column in the straight table which concatenates the Active for that BU (List of Account Table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Then tried to add an extra logic to my if - Index(ACTIVELIST, Account_New)=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thinking was that it will take the text in the column (ACTIVELIST) and look for the Account_New but its not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980347#M468008</guid>
      <dc:creator />
      <dc:date>2015-10-01T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Doing multiple compares in if()</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980348#M468009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;have a look at the attach example &lt;/P&gt;&lt;P&gt;hope it helps you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980348#M468009</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-10-01T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Doing multiple compares in if()</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980349#M468010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. That did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 18:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-multiple-compares-in-if/m-p/980349#M468010</guid>
      <dc:creator />
      <dc:date>2015-10-05T18:59:14Z</dc:date>
    </item>
  </channel>
</rss>

