<?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: How to add date filter in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629825#M231197</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 assume that you have one more datefield to compare with CampaignEndDate&lt;/P&gt;&lt;P&gt;then do like 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;"&gt;Count({&amp;lt;[IsConverted] = {'false'},datefield={"&amp;gt;=$(CampaignEndDate)"}&amp;gt;}LeadId)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 15:03:24 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-05-12T15:03:24Z</dc:date>
    <item>
      <title>How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629824#M231196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({&amp;lt;[IsConverted] = {'false'}&amp;gt;}LeadId)&lt;/P&gt;&lt;P&gt;Here I want to put a condition where in my campaign table, there is a field called "CampaignEndDate", and I want to get LeadId count where date is greater than&amp;nbsp; "CampaignEndDate". Pl help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 14:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629824#M231196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T14:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629825#M231197</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 assume that you have one more datefield to compare with CampaignEndDate&lt;/P&gt;&lt;P&gt;then do like 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;"&gt;Count({&amp;lt;[IsConverted] = {'false'},datefield={"&amp;gt;=$(CampaignEndDate)"}&amp;gt;}LeadId)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629825#M231197</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-05-12T15:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629826#M231198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;[IsConverted] = {'false'}&amp;gt;} If(date &amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CampaignEndDate&lt;/SPAN&gt;, LeadId, 0))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629826#M231198</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-12T15:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629827#M231199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"IsConverted" is field from LEAD table,&lt;/P&gt;&lt;P&gt;"CampaignEndDate" is from Campaign table,&lt;/P&gt;&lt;P&gt;LEAD table is connected to Campaignmember table and Campaignmember table id connected to Campaign table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629827#M231199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T15:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629828#M231200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If connections are correct even set analysis is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629828#M231200</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-12T15:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629829#M231201</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;You can't use set analysis here. The set expression is evaluated once for the table (before the dimensions are built) so QV does not know what value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CampaignEndDate&lt;/SPAN&gt; to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have two possible solutions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;[IsConverted] = {'false'}&amp;gt;} If (datefield &amp;gt;= CampaignEndDate, LeadId))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Sum(If()), Count(If()) can be performance killers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify your load script to bring the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CampaignEndDate&lt;/SPAN&gt; into the same table as the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;datefield by the appropriate join&lt;/SPAN&gt;. Then set a flag value for dates &amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CampaignEndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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; If(datefield &amp;gt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CampaignEndDate&lt;/SPAN&gt;, 1, 0) As CampaignEndFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you&amp;nbsp; can use a set expression &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;[IsConverted] = {'false'}, CampaignEndFlag = {1}&amp;gt;} LeadId)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629829#M231201</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-12T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add date filter in expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629830#M231202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Let me give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Surender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-date-filter-in-expression/m-p/629830#M231202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T15:46:16Z</dc:date>
    </item>
  </channel>
</rss>

