<?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: Combination Count+Distinct+Modifier in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3616#M257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try this&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;Count(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; {$&amp;lt;Kone_Country__c={Germany},Status={qualified},IsConverted={0},IsDeleted={0},Business_Type__c={"Doors","VA Repairs"}&amp;gt;} [Id-LeadId])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jan 2018 20:35:01 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-19T20:35:01Z</dc:date>
    <item>
      <title>Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3615#M256</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 wan to extract unique values out of the label "ID-LeadID". In the data base I loaded the actual status of all existing Leads (whatever the actual status is) and the changes. I only want the data defined selections:&lt;/P&gt;&lt;P&gt;({$&amp;lt;Kone_Country__c={Germany},Status={qualified},IsConverted={0},IsDeleted={0},Business_Type__c={"Doors","VA Repairs"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this selection there are 126 unique Leads with 317 changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I want to know the unique number of Leads, I tried this Formula:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Kone_Country__c={Germany},Status={qualified},IsConverted={0},IsDeleted={0},Business_Type__c={"Doors","VA Repairs"}&amp;gt;}[Id-LeadId])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is 317, as expected (changes). I tried several combinations of formula with distinct (many different positions in the formula), but I did not get once the result of 126 unique values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Result was either 0 or 317 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR from Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 13:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3615#M256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-19T13:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3616#M257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try this&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;Count(&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; {$&amp;lt;Kone_Country__c={Germany},Status={qualified},IsConverted={0},IsDeleted={0},Business_Type__c={"Doors","VA Repairs"}&amp;gt;} [Id-LeadId])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 20:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3616#M257</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-19T20:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3617#M258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, Distinct count of Id-LeadId is 127 or is a portion of Id-LeadId's distinct count is 127? Little confused &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 20:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3617#M258</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-19T20:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3618#M259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌i did the formula, but the result was still 317 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this was also my first guess, but it wasn‘t the right solution.&lt;/P&gt;&lt;P&gt;Is may another position possible for the distinct value weithin the formula the Key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i give some more Informations about the tables loaded for understanding.&lt;/P&gt;&lt;P&gt;The data are loaded in two tables:&lt;/P&gt;&lt;P&gt;Table A (table for actual status):&lt;/P&gt;&lt;P&gt;Lead id (unique=126)/ status / business type c/ Country&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B (table for changes)&lt;/P&gt;&lt;P&gt;lead id (not unique=317 changes for the 126 lead)/ isconverted/isdeleted/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2018 07:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3618#M259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-20T07:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3619#M260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the lead-id the key between the tables A and B or is there a different key and the lead-id fields in both tables are different? Are further tables connected to these tables? I think a screenshot from the tableviewer would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3619#M260</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-23T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3620#M261</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;the lead id key is between table A (lead) and table B (Lead history) and the keys are not different.&lt;/P&gt;&lt;P&gt;There are other tables connected, but the formula contains no request to other tables.&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191418_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Key link between the tables is strong as you can see in the screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/191420_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3620#M261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-25T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Count+Distinct+Modifier</title>
      <link>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3621#M262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the general qlik recommendation is not to use key-fields within calculations else to use duplicated fields for it, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Lead.Id as UniqueLeadID,&lt;/P&gt;&lt;P&gt;autonumber(Lead.Id) as KeyBetweenTables,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and by larger datasets will be an autonumber-key result in smaller RAM consumptions and therefore with better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combination-Count-Distinct-Modifier/m-p/3621#M262</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-25T16:44:57Z</dc:date>
    </item>
  </channel>
</rss>

