<?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: Bug with SubField and Concat function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69375#M607566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get first value you need to add the third parameter of the SubField function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(concat(DISTINCT [Enrollment Status],',',Match([Enrollment Status],'Completed','No Show')),','&lt;SPAN style="color: #ff0000;"&gt;, 1&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198746_Capture.PNG" style="height: 192px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I wonder, how it is picking the value without the parameter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2018 13:18:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-04-06T13:18:36Z</dc:date>
    <item>
      <title>Bug with SubField and Concat function?</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69374#M607565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I suspect I found a bug and would need a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load this simple data:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; City, Name, Enrollment Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New York, Mark, Completed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New York, Mark, No Show&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chicago, Larry, Completed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chicago, Larry, No Show&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I create a Straight Table with the following dimensions:&lt;/P&gt;&lt;P&gt;City&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the following measures:&lt;/P&gt;&lt;P&gt;count(DISTINCT [Enrollment Status])&lt;/P&gt;&lt;P&gt;SubField(concat(DISTINCT [Enrollment Status],',',Match([Enrollment Status],'Completed','No Show')),',')&lt;/P&gt;&lt;P&gt;concat(DISTINCT [Enrollment Status],',',Match([Enrollment Status],'Completed','No Show'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the result I get is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikBugTable.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198741_QlikBugTable.PNG" style="height: 82px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;How comes that I get a different result in the SubField formula for Mark and Larry?&lt;/P&gt;&lt;P&gt;The concatenation of fields is the same for the two, as shown in the last column, but when I try to get the first value I get the wrong one for Larry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any feedback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69374#M607565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-06T13:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with SubField and Concat function?</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69375#M607566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get first value you need to add the third parameter of the SubField function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(concat(DISTINCT [Enrollment Status],',',Match([Enrollment Status],'Completed','No Show')),','&lt;SPAN style="color: #ff0000;"&gt;, 1&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198746_Capture.PNG" style="height: 192px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I wonder, how it is picking the value without the parameter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69375#M607566</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-06T13:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with SubField and Concat function?</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69376#M607567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-with-SubField-and-Concat-function/m-p/69376#M607567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-06T13:28:20Z</dc:date>
    </item>
  </channel>
</rss>

