<?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: List, SubField and textCount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974502#M980049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Load DISTICNT solves the problem but when we have repititive values(Emp#6 ,7 and &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; the graph is not accurate(when nothing is selected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee,Like,dislike,Cat_Code&lt;/P&gt;&lt;P&gt;1,Q1;Q2,P1,AAA;BBB&lt;/P&gt;&lt;P&gt;2,Q1,P2,AAA;BBB&lt;/P&gt;&lt;P&gt;3,Q1;Q3;Q4,P1;P2,CCC&lt;/P&gt;&lt;P&gt;4,Q2,P3,DDD;EEE;AAA;BBB&lt;/P&gt;&lt;P&gt;5,Q3,P3;P4;P2,FFF&lt;/P&gt;&lt;P&gt;6,Q4,P1,AAA&amp;nbsp; /*when nothing is selected Count is shown as 3 but expected value for AAA should be 6*/&lt;/P&gt;&lt;P&gt;7,Q4,P1,AAA&lt;/P&gt;&lt;P&gt;8,Q4,P1,AAA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Aug 2015 20:48:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-23T20:48:52Z</dc:date>
    <item>
      <title>List, SubField and textCount</title>
      <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974500#M980047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TextCount is not reflective on Charts....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1. Load Script is shownbelow.&lt;/P&gt;&lt;P&gt;Step2. Create 3 Pie Charts using Dimension as Like_s, Dislike_s and Cat_Code_s and Expression as textcount(Like_S), textcount(Dislike_s) and textcount(Cat_Code_s) respectively. Refer Attachment.&lt;/P&gt;&lt;P&gt;Step3: Select Employee = 1 and then Pie Chart with Cat_Code_s shows Count for AAA as 2 and Count of BBB as 2.&lt;/P&gt;&lt;P&gt;Expected Count should be AAA as 1 and BBB as 1. Refer Attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SampleData:&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;Employee,Like,dislike,Cat_Code&lt;BR /&gt;1,Q1;Q2,P1,AAA;BBB&lt;BR /&gt;2,Q1,P2,AAA;BBB&lt;BR /&gt;3,Q1;Q3;Q4,P1;P2,CCC&lt;BR /&gt;4,Q2,P3,DDD;EEE;AAA;BBB&lt;BR /&gt;5,Q3,P3;P4;P2,FFF&lt;BR /&gt;6,Q4,P1,AAA&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Link_Like:&lt;BR /&gt;load&lt;BR /&gt;&amp;nbsp; Like,&lt;BR /&gt;&amp;nbsp; trim(subfield(Like, ';')) as Like_S&lt;BR /&gt;Resident SampleData;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Link_dislike:&lt;BR /&gt;load&lt;BR /&gt;&amp;nbsp; dislike,&lt;BR /&gt;&amp;nbsp; trim(subfield(dislike, ';')) as dislike_s&lt;BR /&gt;Resident SampleData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link_ManagerCat_Code:&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp; Cat_Code,&lt;BR /&gt;&amp;nbsp; trim(subfield(Cat_Code, ';')) as Cat_Code_S&lt;BR /&gt;Resident SampleData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 19:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974500#M980047</guid>
      <dc:creator />
      <dc:date>2015-08-21T19:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: List, SubField and textCount</title>
      <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974501#M980048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Employee links to Cat_Code_S via Cat_Code 'AAA;BBB'.&lt;/P&gt;&lt;P&gt;Since in your SampleData table, there are two entries for Cat_Code 'AAA;BBB' (Emp 1 and 2), there are also two records for Cat_Code_S values 'AAA' resp. 'BBB'. I can't see anything wrong here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you maybe after a DISTINCT LOAD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Link_ManagerCat_Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load DISTINCT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; Cat_Code,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; trim(subfield(Cat_Code, ';')) as Cat_Code_S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Resident SampleData;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 20:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974501#M980048</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-21T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: List, SubField and textCount</title>
      <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974502#M980049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Load DISTICNT solves the problem but when we have repititive values(Emp#6 ,7 and &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; the graph is not accurate(when nothing is selected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee,Like,dislike,Cat_Code&lt;/P&gt;&lt;P&gt;1,Q1;Q2,P1,AAA;BBB&lt;/P&gt;&lt;P&gt;2,Q1,P2,AAA;BBB&lt;/P&gt;&lt;P&gt;3,Q1;Q3;Q4,P1;P2,CCC&lt;/P&gt;&lt;P&gt;4,Q2,P3,DDD;EEE;AAA;BBB&lt;/P&gt;&lt;P&gt;5,Q3,P3;P4;P2,FFF&lt;/P&gt;&lt;P&gt;6,Q4,P1,AAA&amp;nbsp; /*when nothing is selected Count is shown as 3 but expected value for AAA should be 6*/&lt;/P&gt;&lt;P&gt;7,Q4,P1,AAA&lt;/P&gt;&lt;P&gt;8,Q4,P1,AAA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 20:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974502#M980049</guid>
      <dc:creator />
      <dc:date>2015-08-23T20:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: List, SubField and textCount</title>
      <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974503#M980050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you want a&lt;/P&gt;&lt;P&gt;=Count(Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of your TextCount(Cat_Code_S) then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 21:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974503#M980050</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-23T21:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: List, SubField and textCount</title>
      <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974504#M980051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So after using distinct load and count(employee)...When we select a value on the List, say- 'AAA'. other values which intersect say - 'BBB' are not visible on the graph... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 01:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974504#M980051</guid>
      <dc:creator />
      <dc:date>2015-08-24T01:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: List, SubField and textCount</title>
      <link>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974505#M980052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the standard QV behaviour, isn't it? When you select a value in a dimension, all other dimension values will be excluded. Your original script and charts as described above show the same behaviour, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see the connected Cat_Code_S values (which is a new and different requirement), I think you would need set analysis in your chart expression, something like&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Cat_Code = p(), Cat_Code_S =&amp;gt;} Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 19:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-SubField-and-textCount/m-p/974505#M980052</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-24T19:21:48Z</dc:date>
    </item>
  </channel>
</rss>

