<?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 using set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173381#M21489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried your query as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;ApplicationDate={'&amp;gt;=DateTDOpen'},&lt;/P&gt;&lt;P&gt;ApplicationDate={'&amp;lt;=(DateTDOpen-7)'} &amp;gt;} Customer)&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; background-color: #f2f2f2;"&gt; LastXDays is hard coded to 7. The count shows 0 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2016 07:00:06 GMT</pubDate>
    <dc:creator>prahladind9</dc:creator>
    <dc:date>2016-07-05T07:00:06Z</dc:date>
    <item>
      <title>Count using set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173379#M21487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to show the count of customers in qlik sense KPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To find out the account opened in the last 7 days:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The query which is run on my db is below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;select count(a."&lt;SPAN style="font-size: 13.3333px;"&gt;Customer&lt;/SPAN&gt;") from "Casa" a, "DimBranch" b where b."ApplicationDate" &amp;gt;= a."DateTDOpen" AND b."ApplicationDate"- a."DateTDOpen"&amp;lt;=7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;result when this query is run on my db &amp;gt;&amp;gt;&amp;gt;14061&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set analysis expression used in KPI of sense:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Customer= {"=ApplicationDate&amp;gt;=DateTDOpen"},&lt;/P&gt;&lt;P&gt;Customer = {"=ApplicationDate-DateTDOpen&amp;lt;=LastXDays"} &amp;gt;} Customer)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;query result in qlik sense KPI &amp;gt;&amp;gt;&amp;gt;163&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What am i doing wrong ??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 06:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173379#M21487</guid>
      <dc:creator>prahladind9</dc:creator>
      <dc:date>2016-07-05T06:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count using set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173380#M21488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prahlas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this please and tell me&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;COUNT({$&amp;lt;ApplicationDate={'&amp;gt;=DateTDOpen'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ApplicationDate={'&amp;lt;=(DateTDOpen-LastXDays'} &amp;gt;} Customer)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 06:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173380#M21488</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-05T06:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count using set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173381#M21489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried your query as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;ApplicationDate={'&amp;gt;=DateTDOpen'},&lt;/P&gt;&lt;P&gt;ApplicationDate={'&amp;lt;=(DateTDOpen-7)'} &amp;gt;} Customer)&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; background-color: #f2f2f2;"&gt; LastXDays is hard coded to 7. The count shows 0 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 07:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173381#M21489</guid>
      <dc:creator>prahladind9</dc:creator>
      <dc:date>2016-07-05T07:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count using set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173382#M21490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;COUNT({$&amp;lt;ApplicationDate={'&amp;gt;=DateTDOpen &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;=DateTDOpen+LastXDays&lt;/SPAN&gt;'}&lt;SPAN style="line-height: 1.5em;"&gt; &amp;gt;} Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It's a bit hard to validate the expression to check if it's correct or not. YOu might just have to check the syntax when copy in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 04:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173382#M21490</guid>
      <dc:creator />
      <dc:date>2016-07-07T04:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count using set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173383#M21491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your query. The count shows 0&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 10:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-using-set-analysis/m-p/1173383#M21491</guid>
      <dc:creator>prahladind9</dc:creator>
      <dc:date>2016-07-07T10:28:36Z</dc:date>
    </item>
  </channel>
</rss>

