<?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: Set analysis for date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472154#M488703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;You're right, I wrote the variable &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;VNumToday&lt;/P&gt;&lt;P&gt;instead&lt;/P&gt;&lt;P&gt;vNumToday, that I laod on the script.&lt;/P&gt;&lt;P&gt;Regarding nDelivery or nDeliveryData, there were only my traslations from my Language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 10:45:01 GMT</pubDate>
    <dc:creator>andyrebs</dc:creator>
    <dc:date>2012-11-29T10:45:01Z</dc:date>
    <item>
      <title>Set analysis for date field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472149#M488698</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've check in the community, but, even if I found many discussions about this iusse, I can't figure it out.&lt;/P&gt;&lt;P&gt;I have this expression:&lt;/P&gt;&lt;P&gt; sum({$&amp;lt;[Stock.]={"&amp;gt;0"}, Type = {S},&amp;nbsp;&amp;nbsp;&amp;nbsp; nDeliveryDate={&amp;lt;=$(VNumToday)}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But It returns a value as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong in&amp;nbsp; the part of&amp;nbsp; date set analysis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 22:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472149#M488698</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-11-27T22:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for date field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472150#M488699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using doubles quotes with the nDeliveryDate set modifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({$&amp;lt;[Stock.]={"&amp;gt;0"}, Type = {S},&amp;nbsp;&amp;nbsp;&amp;nbsp; nDeliveryDate={"&amp;lt;=$(VNumToday)"}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}[Value])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 22:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472150#M488699</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-27T22:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for date field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472151#M488700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to be very careful with the format of your date field and the format of the date variable that you are comparing it to.&amp;nbsp; In Set Analysis 27/11/2012 does not equal 27 Nov 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest forcing a format for the date field in your load script, eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(nDeliveryDate, 'DD-MMM-YYYY') as nDeliveryDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then the same in your variable definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(today(), 'DD-MMM-YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can also be useful to use an Input Box to keep a close eye on what you actually have in your variables.&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 href="http://www.quickintelligence.co.uk/steve-dark/"&gt;Steve&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 23:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472151#M488700</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-11-27T23:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for date field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472152#M488701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks both Steve and sweuhl.&lt;/P&gt;&lt;P&gt;I tried your suggestions, and now I have the value, unfortunately the set analysis does not work properly.&lt;/P&gt;&lt;P&gt;In fact the value that results from the expression brings me out not only the value of the orders with the delivery date &amp;lt;= of today but even the value of the orders after today.&lt;/P&gt;&lt;P&gt;See the attached file inside my question post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 14:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472152#M488701</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-11-28T14:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for date field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472153#M488702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you reference a fieldname in Set Analysis that doesn't exist in your data model this is simply ignored.&amp;nbsp; Could it be that &lt;STRONG&gt;nDeliveryDate &lt;/STRONG&gt;appears slightly differently in the data model (note case sensitivity)?&amp;nbsp; Looking at the spreadsheet you uploaded, should the field read simply &lt;STRONG&gt;nDelivery&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can upload a sample QlikView app it should be relatively quick to get to a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/steve-dark/"&gt;Steve&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 21:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472153#M488702</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-11-28T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis for date field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472154#M488703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;You're right, I wrote the variable &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;VNumToday&lt;/P&gt;&lt;P&gt;instead&lt;/P&gt;&lt;P&gt;vNumToday, that I laod on the script.&lt;/P&gt;&lt;P&gt;Regarding nDelivery or nDeliveryData, there were only my traslations from my Language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 10:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-date-field/m-p/472154#M488703</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-11-29T10:45:01Z</dc:date>
    </item>
  </channel>
</rss>

