<?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 not working as expected in set expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846454#M70004</link>
    <description>&lt;P&gt;&lt;SPAN&gt;This set expressoin:&amp;nbsp; [COMMANDE]={"=WEEK_SM_REELLE_ZSQ=YEAR_WEEK_REF_TAUX_SERVICE"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is checking if there is a 1:1 match for a COMMANDE between&amp;nbsp;WEEK_SM_REELLE_ZSQ and YEAR_WEEK_REF_TAUX_SERVICE.&amp;nbsp; It's not doing WEEK_SM_REELLE_ZSQ "in" YEAR_WEEK_REF_TAUX_SERVICE.&amp;nbsp; So you are dropping out COMMANDEs that have multiple&amp;nbsp;YEAR_WEEK_REF_TAUX_SERVICE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to do this field = field evaluation, you have to make sure it's at the right granularity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The easiest thing to do is a rowno() field that is unique for each row.&amp;nbsp; you can use that in your set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD rowno() as Key,&lt;/P&gt;&lt;P&gt;[Nr Commande MX],&lt;BR /&gt;[Planned shipment week],&lt;BR /&gt;[Line number],&lt;BR /&gt;Qty,&lt;BR /&gt;[Qty shipped],&lt;BR /&gt;[Shipment week],&lt;BR /&gt;[Line shipped on time],&lt;BR /&gt;[Line not shipped on time]&lt;BR /&gt;FROM excel&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;front-end calc would be&lt;/P&gt;&lt;P&gt;=count (distinct {&amp;lt;[Key]={"=[Planned shipment week]=[Shipment week]"}&amp;gt;}[Nr Commande MX])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why your results were changing with your selections.&amp;nbsp; because your data set is changing and at a COMMANDE grain, you may go from 1:many to 1:1 and it was evaluating true after making filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having said the above for front-end calculation.&amp;nbsp; If you can, do this matching in the load script and flag records that meet criteria, and use that in your set analysis.&amp;nbsp; That is ideal:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;If([Shipment week] = [Planned shipment week], 1)as Date_Match_Flag,&lt;/P&gt;&lt;P&gt;[Nr Commande MX],&lt;BR /&gt;[Planned shipment week],&lt;BR /&gt;[Line number],&lt;BR /&gt;Qty,&lt;BR /&gt;[Qty shipped],&lt;BR /&gt;[Shipment week],&lt;BR /&gt;[Line shipped on time],&lt;BR /&gt;[Line not shipped on time]&lt;BR /&gt;FROM excel&lt;/P&gt;&lt;P&gt;=count (distinct {&amp;lt;Date_Match_Flag={1}&amp;gt;}[Nr Commande MX])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 21:52:41 GMT</pubDate>
    <dc:creator>stevejoyce</dc:creator>
    <dc:date>2021-10-13T21:52:41Z</dc:date>
    <item>
      <title>Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846435#M70003</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;, I was able to fix a first issue using count distinct in a set expression in order to calculate the number of orders late in my qlik detailed straight table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_0-1634157444049.png" style="width: 506px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64182iB84781BFBA0E753C/image-dimensions/506x137?v=v2" width="506" height="137" role="button" title="patricesalem_0-1634157444049.png" alt="patricesalem_0-1634157444049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like now to calculate the number of orders shipped during each "Planned Shipment week".&lt;/P&gt;&lt;P&gt;So in a second straight table (the first one is fully detailed including line orders), I summarize the data of the first table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_1-1634157613564.png" style="width: 276px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64183i50DEF071A2B7A8AC/image-dimensions/276x282?v=v2" width="276" height="282" role="button" title="patricesalem_1-1634157613564.png" alt="patricesalem_1-1634157613564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The excel table tells me that I have 406 orders shipped on week 39.&lt;/P&gt;&lt;P&gt;The following expression in my second table tells me also 406 :&amp;nbsp;&lt;SPAN&gt;=count(distinct {&amp;lt;[Shipment week]={'202139'}&amp;gt;}[Nr Commande MX])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The following expression tells me 247 :&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;=count (distinct {&amp;lt;[COMMANDE]={"=WEEK_SM_REELLE_ZSQ=YEAR_WEEK_REF_TAUX_SERVICE"}&amp;gt;}COMMANDE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WEEK_SM_REELLE_ZSQ is the week of shipment&lt;BR /&gt;YEAR_WEEK_REF_TAUX_SERVICE is the planned shipment week.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I select the week 39 in my second straight table, then the calculation is updated as follow:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_2-1634157857300.png" style="width: 250px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64185iC4694BA78ABD58B3/image-dimensions/250x148?v=v2" width="250" height="148" role="button" title="patricesalem_2-1634157857300.png" alt="patricesalem_2-1634157857300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I don't understand why the result change when I select a week in the straight table.&lt;/P&gt;&lt;P&gt;Second, Qlik makes me crazy as I don't understand why my count distinct expression does not work as expected.&lt;/P&gt;&lt;P&gt;Any idea how to make it work ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846435#M70003</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2024-11-15T23:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846454#M70004</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This set expressoin:&amp;nbsp; [COMMANDE]={"=WEEK_SM_REELLE_ZSQ=YEAR_WEEK_REF_TAUX_SERVICE"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is checking if there is a 1:1 match for a COMMANDE between&amp;nbsp;WEEK_SM_REELLE_ZSQ and YEAR_WEEK_REF_TAUX_SERVICE.&amp;nbsp; It's not doing WEEK_SM_REELLE_ZSQ "in" YEAR_WEEK_REF_TAUX_SERVICE.&amp;nbsp; So you are dropping out COMMANDEs that have multiple&amp;nbsp;YEAR_WEEK_REF_TAUX_SERVICE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to do this field = field evaluation, you have to make sure it's at the right granularity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The easiest thing to do is a rowno() field that is unique for each row.&amp;nbsp; you can use that in your set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD rowno() as Key,&lt;/P&gt;&lt;P&gt;[Nr Commande MX],&lt;BR /&gt;[Planned shipment week],&lt;BR /&gt;[Line number],&lt;BR /&gt;Qty,&lt;BR /&gt;[Qty shipped],&lt;BR /&gt;[Shipment week],&lt;BR /&gt;[Line shipped on time],&lt;BR /&gt;[Line not shipped on time]&lt;BR /&gt;FROM excel&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;front-end calc would be&lt;/P&gt;&lt;P&gt;=count (distinct {&amp;lt;[Key]={"=[Planned shipment week]=[Shipment week]"}&amp;gt;}[Nr Commande MX])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why your results were changing with your selections.&amp;nbsp; because your data set is changing and at a COMMANDE grain, you may go from 1:many to 1:1 and it was evaluating true after making filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having said the above for front-end calculation.&amp;nbsp; If you can, do this matching in the load script and flag records that meet criteria, and use that in your set analysis.&amp;nbsp; That is ideal:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;If([Shipment week] = [Planned shipment week], 1)as Date_Match_Flag,&lt;/P&gt;&lt;P&gt;[Nr Commande MX],&lt;BR /&gt;[Planned shipment week],&lt;BR /&gt;[Line number],&lt;BR /&gt;Qty,&lt;BR /&gt;[Qty shipped],&lt;BR /&gt;[Shipment week],&lt;BR /&gt;[Line shipped on time],&lt;BR /&gt;[Line not shipped on time]&lt;BR /&gt;FROM excel&lt;/P&gt;&lt;P&gt;=count (distinct {&amp;lt;Date_Match_Flag={1}&amp;gt;}[Nr Commande MX])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 21:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846454#M70004</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-10-13T21:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846480#M70007</link>
      <description>&lt;P&gt;Hi steve&lt;/P&gt;&lt;P&gt;first of all, thanks for your detailed explanation....I'm still learning a lot with Qlik and hope to learn more and more !&lt;/P&gt;&lt;P&gt;I've tried your first solution and the result is perfect, I get the expected 406 orders and no change when I only select the planned shipment week in the table :&lt;BR /&gt;=count (distinct {&amp;lt;[Auto_Key]={"=[YEAR_WEEK_REF_TAUX_SERVICE]=[WEEK_SM_REELLE_ZSQ]"}&amp;gt;}[COMMANDE])&lt;/P&gt;&lt;P&gt;I've also found another expression that seems to do the job without the auto_key (but I prefer your solution)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum (Aggr(distinct if ((sum ([QTE_EXPEDIEE_ZSQ]))&amp;gt;0 and YEAR_WEEK_REF_TAUX_SERVICE=WEEK_SM_REELLE_ZSQ,1,0)
,COMMANDE,WEEK_SM_REELLE_ZSQ,YEAR_WEEK_REF_TAUX_SERVICE))&lt;/LI-CODE&gt;&lt;P&gt;Nevertheless, I'm trying to use your expression to add a second condition to find out within the 406 orders shipped, how many are shipped on time. In the load script, I have flaged all order lines that are shipped on time (or before the planned week) - the dimension name is&amp;nbsp;POSTE_ON_TIME_ZSQ&lt;BR /&gt;I tried both of the following expression and they both return 0:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count (distinct {&amp;lt;[Auto_Key]={"=[YEAR_WEEK_REF_TAUX_SERVICE]=[WEEK_SM_REELLE_ZSQ],POSTE_ON_TIME_ZSQ={'1'}"},
[Auto_Key]={"=POSTE_ON_TIME_ZSQ={'1'}"}&amp;gt;}[COMMANDE])

count (distinct {&amp;lt;[Auto_Key]={"=[YEAR_WEEK_REF_TAUX_SERVICE]=[WEEK_SM_REELLE_ZSQ],POSTE_ON_TIME_ZSQ={'1'}"}&amp;gt;}[COMMANDE])&lt;/LI-CODE&gt;&lt;P&gt;Maybe, you could help me a bit more to find out the correct expression to have 2 conditions in the distinct clause ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Big thank&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 23:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846480#M70007</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-13T23:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846489#M70009</link>
      <description>&lt;P&gt;This would be the syntax for multiple conditions on the same field:&lt;/P&gt;&lt;P&gt;{&amp;lt;[Auto_Key]={"=[YEAR_WEEK_REF_TAUX_SERVICE]=[WEEK_SM_REELLE_ZSQ] and POSTE_ON_TIME_ZSQ = 1"} &amp;gt;}&lt;/P&gt;&lt;P&gt;but this is the way you'd typically do it, which would intersect all field set expressions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count (distinct {&amp;lt;[Auto_Key]={"=[YEAR_WEEK_REF_TAUX_SERVICE]=[WEEK_SM_REELLE_ZSQ]"}, POSTE_ON_TIME_ZSQ={1}&amp;gt;}[COMMANDE])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 00:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846489#M70009</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-10-14T00:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846617#M70020</link>
      <description>&lt;P&gt;Thanks for this answer again...I will try later in the day and let you know.&lt;/P&gt;&lt;P&gt;Meanwhile, I have noticed something very weird adding the&amp;nbsp;rowno() as key_test in my load function.&lt;BR /&gt;it creates correctly the unique key number, nevertheless, I have two dimensions showing a '?' instead of their respective values (COMMANDE and POSTE):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="patricesalem_0-1634194787442.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64232iCC242CE919275FAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="patricesalem_0-1634194787442.png" alt="patricesalem_0-1634194787442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea what is causing that ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 07:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846617#M70020</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-14T07:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846691#M70023</link>
      <description>&lt;P&gt;I do not know what's causing ?, i've never seen it before unless, maybe something else in your data file or script.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846691#M70023</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-10-14T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846721#M70027</link>
      <description>&lt;P&gt;yes - incredible behaviour.&lt;/P&gt;&lt;P&gt;Reading this blog (&lt;A href="https://withdave.com/2018/09/qlik-load-performance-with-recno-and-rowno/" target="_blank" rel="noopener"&gt;https://withdave.com/2018/09/qlik-load-performance-with-recno-and-rowno/&lt;/A&gt;), I have tried to replace rowno() by recno().&amp;nbsp;&lt;BR /&gt;If I do so, no issue, I don't have the ? anymore.&lt;BR /&gt;Unfortunatelly,&amp;nbsp;I can't use the recno in my data model as I concatenate table...as the recno is reset for each table, I end up with duplicated unique_id values..&lt;/P&gt;&lt;P&gt;So I have to keep searching. I will let you know if I find something in my script.&lt;/P&gt;&lt;P&gt;Once sorted, I will proceed with the tests of your latest expressions&lt;/P&gt;&lt;P&gt;pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 10:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846721#M70027</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-14T10:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846750#M70030</link>
      <description>&lt;P&gt;I'm advancing. I have identified the part of my load script causing problems :&lt;/P&gt;&lt;P&gt;I have created a new qvf and only load in it my sales table. Same issue, but if I remove this part of the script :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    text (COMMANDE)&amp;amp;'_'&amp;amp;num(POSTE) as key,&lt;/LI-CODE&gt;&lt;P&gt;then no issue, both commande &amp;amp; poste dimensions appear correctly&lt;/P&gt;&lt;P&gt;If I put back&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO 'Oracle_MX-ORACLE01 (mailleux_qlikadmin)';

LOAD
	//RecNo() as Unique_ID,
    RowNo() as Unique_ID,
     text (COMMANDE)&amp;amp;'_'&amp;amp;num(POSTE) as key,
    [COMMANDE],
     POSTE,....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;then issue again...incredible.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 10:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1846750#M70030</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-14T10:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1847595#M70056</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I found the answer for the ? bug: it's related to the use of :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;text (COMMANDE)&amp;amp;'_'&amp;amp;num(POSTE) as key,
    [COMMANDE],
     POSTE,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; ,text (COMMANDE)&amp;amp;'_'&amp;amp;num(POSTE) as key
	,text([COMMANDE]) as COMMANDE
    ,text([POSTE]) as POSTE&lt;/LI-CODE&gt;&lt;P&gt;then no more issue ! incredible...this is a Qlik Sense May 21 bug for sure !&lt;/P&gt;&lt;P&gt;I will now carry own with our suggestions for the expression...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 19:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1847595#M70056</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-15T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct not working as expected in set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1847618#M70060</link>
      <description>&lt;P&gt;Hi Stevejoyce&lt;/P&gt;&lt;P&gt;Your solution worked like a charm !&lt;/P&gt;&lt;P&gt;I would like to give you a BIG BIG thank you....you can't imagine how many douzens of hours I've been going round in the last weeks...you gave me THE answer that opened all doors to my service level calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;big big thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 20:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-distinct-not-working-as-expected-in-set-expression/m-p/1847618#M70060</guid>
      <dc:creator>patricesalem</dc:creator>
      <dc:date>2021-10-15T20:42:52Z</dc:date>
    </item>
  </channel>
</rss>

