<?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: Identify multiple values in one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97659#M15669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution could be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Count(DISTINCT{&amp;lt;[Patient Ref No]={"=Count(Distinct {&amp;lt;&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;[Alert Code]&lt;/SPAN&gt;={&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;'&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;ATSI&lt;/SPAN&gt;'&lt;/SPAN&gt;,&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;'&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;CITFU&lt;/SPAN&gt;'&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;[Alert Code]&lt;/SPAN&gt;)=2"}&amp;gt;}[Patient Ref No])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 09:07:15 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-08-02T09:07:15Z</dc:date>
    <item>
      <title>Identify multiple values in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97658#M15668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic for my calculation is to count the IDs which have both Alert Code = '&lt;SPAN style="font-size: 13.3333px;"&gt;ATSI' AND '&lt;SPAN style="font-size: 13.3333px;"&gt;CITFU'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below gives me the correct list of IDs if I have ID as dimension and the below as the calculation in a straight table.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubStringCount(Concat(DISTINCT '|' &amp;amp; [Alert Code] &amp;amp; '|'), '|ATSI|') and&amp;nbsp; SubStringCount(Concat(DISTINCT '|' &amp;amp; [Alert Code] &amp;amp; '|'),'|CITFU|')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The expression value for each ID is -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is now how I turn this into a calculation to give me the count of these IDs.&lt;/P&gt;&lt;P&gt;I have tried this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((SubStringCount(concat([Alert Code]), 'ATSI') and SubStringCount(concat([Alert Code]), 'CITFU')) &amp;lt; 0, count(distinct[Patient Ref No]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This gives me a number much higher than the one that I'm after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Asa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 08:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97658#M15668</guid>
      <dc:creator>asamariaekrickl</dc:creator>
      <dc:date>2018-08-02T08:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Identify multiple values in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97659#M15669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution could be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Count(DISTINCT{&amp;lt;[Patient Ref No]={"=Count(Distinct {&amp;lt;&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;[Alert Code]&lt;/SPAN&gt;={&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;'&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;ATSI&lt;/SPAN&gt;'&lt;/SPAN&gt;,&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;'&lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;CITFU&lt;/SPAN&gt;'&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="font-size: 13px; color: #3d3d3d;"&gt;[Alert Code]&lt;/SPAN&gt;)=2"}&amp;gt;}[Patient Ref No])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 09:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97659#M15669</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-08-02T09:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify multiple values in one field</title>
      <link>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97660#M15670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic! Thank you soooo much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 09:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identify-multiple-values-in-one-field/m-p/97660#M15670</guid>
      <dc:creator>asamariaekrickl</dc:creator>
      <dc:date>2018-08-02T09:28:33Z</dc:date>
    </item>
  </channel>
</rss>

