<?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 Set analysis - urgent question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264271#M1191316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, when possible, do all transformation and formatting steps in the load script, so all your dates have the same format than the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in the format part of the Date() function you are using "dd" instead of "DD", and that the Date() function in the set analysis, as it has no format part, it will return regarding your DateFormat value (it's a variable created with your script any time you create a new document, with your regional settings, by default). So the question is does the&amp;nbsp; [End Date] field has the same format as the returned by Date(varPreYearFullDateEnd)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 11:56:11 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-07-07T11:56:11Z</dc:date>
    <item>
      <title>Set analysis - urgent question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264268#M1191313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a expression like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;[link_claim_Claim_Status]={'CLO'},[End Date] ={'&amp;gt;=$(=Date(only(varPreYearFullDateStart)&amp;lt;=$(=Date(varPreYearFullDateEnd))'}&amp;gt;} DISTINCT [ClaimID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I have hardcoded the start and end dates in the variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varPreYearFullDateStart=Num(Date('01/01/2010','dd/MM/YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varPreYearFullDateEnd=Num(Date('31/12/2010','dd/MM/YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result i get somehow is not taking the date in between intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone kindly help me where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 11:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264268#M1191313</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2011-07-07T11:46:31Z</dc:date>
    </item>
    <item>
      <title>Set analysis - urgent question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264269#M1191314</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;&amp;nbsp;&amp;nbsp; Try after removing the data from the expression. Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;[link_claim_Claim_Status]={'CLO'},[End Date] ={'&amp;gt;=$(varPreYearFullDateStart)&amp;lt;=$(varPreYearFullDateEnd)'}&amp;gt;} DISTINCT [ClaimID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 11:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264269#M1191314</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-07T11:51:00Z</dc:date>
    </item>
    <item>
      <title>Set analysis - urgent question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264270#M1191315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou somuch, it worked. What a silly mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 11:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264270#M1191315</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2011-07-07T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Set analysis - urgent question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264271#M1191316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, when possible, do all transformation and formatting steps in the load script, so all your dates have the same format than the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in the format part of the Date() function you are using "dd" instead of "DD", and that the Date() function in the set analysis, as it has no format part, it will return regarding your DateFormat value (it's a variable created with your script any time you create a new document, with your regional settings, by default). So the question is does the&amp;nbsp; [End Date] field has the same format as the returned by Date(varPreYearFullDateEnd)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 11:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-urgent-question/m-p/264271#M1191316</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-07T11:56:11Z</dc:date>
    </item>
  </channel>
</rss>

