<?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: Count Distinct 2 fields in script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433959#M695044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh autonumber did it, thank you.&amp;nbsp; I was thinking it would scramble A, scramble B, and then concatenate them together, but it instead concatenates then scrambles, which is what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2013 15:05:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-03T15:05:09Z</dc:date>
    <item>
      <title>Count Distinct 2 fields in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433955#M695040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bar graph dimension:&lt;/P&gt;&lt;P&gt;FieldA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have a bar graph expression:&lt;/P&gt;&lt;P&gt;Count(DISTINCT FieldB &amp;amp; FieldC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfectly, however, I don't want FieldC to be available to everyone (I would like to drop it in the script).&amp;nbsp; However, I still need to be able to pivot on dimension A.&amp;nbsp; Is there any way to get just the count of distinct B &amp;amp; C for each A in the script, and then drop C?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 14:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433955#M695040</guid>
      <dc:creator />
      <dc:date>2013-06-03T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct 2 fields in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433956#M695041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a new field in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;fieldA &amp;amp; FieldB as myField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can delete FieldB and use myField in the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 14:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433956#M695041</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-06-03T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct 2 fields in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433957#M695042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FieldB in my case is a user identification number, which I want to hide, so concatenating it to myField would still allow others to see and even sort it easily using Right().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping to eliminate it entirely.&amp;nbsp; Scrambling it somehow may work, but I think there's a way to model it away - just struggling to find a way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 14:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433957#M695042</guid>
      <dc:creator />
      <dc:date>2013-06-03T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct 2 fields in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433958#M695043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that if you need that value in a chart you have to keep it somehow ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function autonumberhash(FieldA,FieldB) as myField, no one will evesìr suspect that the code created will contain a user id ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 14:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433958#M695043</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-06-03T14:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct 2 fields in script?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433959#M695044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh autonumber did it, thank you.&amp;nbsp; I was thinking it would scramble A, scramble B, and then concatenate them together, but it instead concatenates then scrambles, which is what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 15:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-2-fields-in-script/m-p/433959#M695044</guid>
      <dc:creator />
      <dc:date>2013-06-03T15:05:09Z</dc:date>
    </item>
  </channel>
</rss>

