<?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: AND clause based on same column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127000#M19241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here PERSON_ID will be your dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2018 12:54:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-07-10T12:54:41Z</dc:date>
    <item>
      <title>AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126996#M19237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a new cloumn based on field values from another and I am having some issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a handful of clients who have a service, these clients can have more than one service allocated to them. I need to create an IF and AND statement based on a client ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of services here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207443_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;And this is the same person with two different services, so I want to group her by her person ID and if she has 'home care' and 'hoem care medication' then she should be in the category ' home care' (which is the new column I want to create).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/207445_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;So essentially I need to create this new column based on the person ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have explained this well enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 10:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126996#M19237</guid>
      <dc:creator>samantha92</dc:creator>
      <dc:date>2018-07-10T10:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126997#M19238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this something you want to do in the script or front end of the application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126997#M19238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126998#M19239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing it in the script would be more efficient but I'm thinking that front end might give me my results I am after?&lt;/P&gt;&lt;P&gt;I do something similar when working out the total costs for a client:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(TOTAL &amp;lt;PERSON_ID&amp;gt; FINANCIAL_WKLY_COST)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I assumed it would be something similar to this but adding an if statement and removing the sum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126998#M19239</guid>
      <dc:creator>samantha92</dc:creator>
      <dc:date>2018-07-10T12:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126999#M19240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubStringCount(Concat(DISTINCT '|' &amp;amp; Service &amp;amp; '|'), '|HOME CARE|') &amp;gt; 0 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubStringCount(Concat(DISTINCT '|' &amp;amp; Service &amp;amp; '|'), '|HOME CARE MEDICATION|') &amp;gt; 0, 'Home Care')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/126999#M19240</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127000#M19241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here PERSON_ID will be your dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127000#M19241</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127001#M19242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how this works please? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 13:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127001#M19242</guid>
      <dc:creator>samantha92</dc:creator>
      <dc:date>2018-07-10T13:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: AND clause based on same column</title>
      <link>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127002#M19243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are checking if HOME CARE and HOME CARE MEDICATION are one of the values in the concatenated list of services.... if they are... then the value is Home Care&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 13:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-clause-based-on-same-column/m-p/127002#M19243</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T13:24:45Z</dc:date>
    </item>
  </channel>
</rss>

