<?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 Distinct Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910109#M653876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But still why we can't use Distinct here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 18:11:47 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-07-22T18:11:47Z</dc:date>
    <item>
      <title>Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910102#M653869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 07-22-15 at 12.17 PM.JPG" class="jive-image image-1" src="/legacyfs/online/93663_Screen Shot 07-22-15 at 12.17 PM.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;On QV, I'd like to see these situations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 07-22-15 at 12.17 PM 001.JPG" class="jive-image image-2" src="/legacyfs/online/93664_Screen Shot 07-22-15 at 12.17 PM 001.JPG" style="height: 138px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Actually, I've achieve this merging the columns Goa1, Goal2 and Goal3 (Goal1&amp;amp;','&amp;amp;Goal2&amp;amp;','&amp;amp;Goal3 as Goal4) and then applying an subfield function, generating the field Goal Final ((SubField(Goal4,',') as Goal_Final).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But I need the same resulting in a way that the expression Count(ID) is equal &lt;STRONG&gt;5&lt;/STRONG&gt; (the same number of IDs), &lt;STRONG&gt;WITHOUT DISTINCT&lt;/STRONG&gt; in the same expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910102#M653869</guid>
      <dc:creator />
      <dc:date>2015-07-22T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910103#M653870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CrossTable(Data,Goal_Final,1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(Goal1))=0,Null(), Goal1) as Goal1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(Goal2))=0,Null(), Goal2) as Goal2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Trim(Goal3))=0,Null(), Goal3) as Goal3&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, Goal1, Goal2, Goal3&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, A1, A2, A3&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2, A1, A3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3, A2, , &lt;/P&gt;&lt;P&gt;&amp;nbsp; 4, A3, A2, &lt;/P&gt;&lt;P&gt;&amp;nbsp; 5, A1, A2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910103#M653870</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-22T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910104#M653871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've gave an simple example. In the real situation, I have thousands of ID fields. I can't assemble them in an Inline table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910104#M653871</guid>
      <dc:creator />
      <dc:date>2015-07-22T15:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910105#M653872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inline is just for example...&lt;/P&gt;&lt;P&gt;you can use in real scenario as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable(Data,Goal_Final,1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Goal1, Goal2, Goal3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OtherField...&lt;/P&gt;&lt;P&gt;From...TableName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910105#M653872</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-22T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910106#M653873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, understood. But the count(ID) (without distinct) now is 10, not 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910106#M653873</guid>
      <dc:creator />
      <dc:date>2015-07-22T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910107#M653874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the logic behind not using Distinct? Please explain !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 17:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910107#M653874</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-22T17:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910108#M653875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes, I have to sum one column values. In these cases, when we have this situation of subfield, I have to use an expression with aggr. It's the situation I'm trying to avoid here, just to keep an simple expression (sum(Value)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 18:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910108#M653875</guid>
      <dc:creator />
      <dc:date>2015-07-22T18:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910109#M653876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But still why we can't use Distinct here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 18:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910109#M653876</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-22T18:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910110#M653877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subfield() or a CROSSTABLE LOAD prefix will only duplicate the attribute fields. &lt;/P&gt;&lt;P&gt;Maybe you can transform your data model, so that any fact will be in a table linked by a key to your table with GOALs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 18:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910110#M653877</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-22T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield and Distinct Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910111#M653878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can. Actually, I always use Distinct. I just want to know if there is another way to deal with this kind of subfield's consequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Value) instead of&amp;nbsp; sum(aggr(sum(Distinct Value),ID)). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 18:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield-and-Distinct-Issue/m-p/910111#M653878</guid>
      <dc:creator />
      <dc:date>2015-07-22T18:29:59Z</dc:date>
    </item>
  </channel>
</rss>

