<?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: DISTINCT application_no in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807207#M1022323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You create a flag in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(new_dates = settled_date,1,0) as ValidFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from table...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your expression becomes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;ValidFlag={1}&amp;gt;} application_no)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 11:45:14 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2015-03-16T11:45:14Z</dc:date>
    <item>
      <title>DISTINCT application_no</title>
      <link>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807206#M1022322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can someone give me the correct code to run this, i cannot get it to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to count the amount of apps where the new date and the settlement date the same is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT application_no, If(new_dates=settled_dates,'Y'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 09:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807206#M1022322</guid>
      <dc:creator />
      <dc:date>2015-03-16T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCT application_no</title>
      <link>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807207#M1022323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You create a flag in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(new_dates = settled_date,1,0) as ValidFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from table...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your expression becomes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;ValidFlag={1}&amp;gt;} application_no)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 11:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807207#M1022323</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-03-16T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCT application_no</title>
      <link>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807208#M1022324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use 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(distinct If(new_dates=settled_dates,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;application_no&lt;/SPAN&gt;))&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;&lt;BR /&gt;&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;HTH&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 11:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807208#M1022324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T11:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCT application_no</title>
      <link>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807209#M1022325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi @Francois &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this Expression&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(DISTINCT If(new_dates = settled_dates, application_no))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807209#M1022325</guid>
      <dc:creator />
      <dc:date>2015-03-16T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: DISTINCT application_no</title>
      <link>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807210#M1022326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like this approch the best as well if its oemthign you going to use more then once. If not, a simple if works fine as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DISTINCT-application-no/m-p/807210#M1022326</guid>
      <dc:creator />
      <dc:date>2015-03-16T13:54:43Z</dc:date>
    </item>
  </channel>
</rss>

