<?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: Subfield and Count in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75057#M773986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the UI or script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA for a script solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SubField(Subject, '|') as SubjectSeparated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201924_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 07:15:15 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-05-09T07:15:15Z</dc:date>
    <item>
      <title>Subfield and Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75056#M773985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a column like below which has the data in a pipe delimited form,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 371px; height: 103px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Subject&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Maths|Chemistry|Physics&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Chemistry|Maths&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Physics&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Chemistry|Physics&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Physics|English&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the Count of users for each of the subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the output I am looking for and I am stuck up in getting the correct expressions in Dimension and in Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 193px; height: 76px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Subject&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;User Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Maths&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Physics&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Chemistry&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;English&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to use Subfield(Subject,'|') for the calculated dimension and I am able to get the unique list of subject in the dimension. But I am not able to get the expression to get the count of users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sarathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75056#M773985</guid>
      <dc:creator>sarathi_pm</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75057#M773986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the UI or script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA for a script solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SubField(Subject, '|') as SubjectSeparated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201924_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 07:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75057#M773986</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-05-09T07:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Count in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75058#M773987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. this is for Chart Dimension. I am able to get the output with the expression you have sent. But I am doing one more step on top of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user 1 logs in, I need to see the below output, When I add another expression for "Logged in User", that is not evaluating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I am desiring is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; border-image: none;"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH class="header" style="padding: 2px; border: 1px solid #000000; border-image: none; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Subject&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="padding: 2px; border: 1px solid #000000; border-image: none; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;User Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="padding: 2px; border: 1px solid #000000; border-image: none; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Logged in User&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;Maths&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;Physics&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;Chemistry&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;English&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; border: 1px solid #000000; border-image: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using section access since I will not get the User Count from other users if use section access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I using another table with NTName which is similar to the User.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on how to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sarathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 09:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Count-in-Expression/m-p/75058#M773987</guid>
      <dc:creator>sarathi_pm</dc:creator>
      <dc:date>2018-05-09T09:24:31Z</dc:date>
    </item>
  </channel>
</rss>

