<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143686#M22848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Alan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very strange situation.&lt;/P&gt;&lt;P&gt;could you give an example of your application?&lt;BR /&gt;&lt;BR /&gt;And what data type your date fields? as far as I remember, in order to work Set Analysis, they must numeric&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2009 19:07:00 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2009-06-09T19:07:00Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143682#M22844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have just started with this package so this may be a real easy question to answer.&lt;/P&gt;&lt;P&gt;I am using version 8.50.62315 and have the following code which previously worked but has stopped and I am not sure why.&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;({$&amp;lt;Date = {'&amp;gt;$(=date(vFromDate-1,'DD/MM/YYYY'))&amp;lt;&lt;B&gt;&lt;I&gt;$(=date(vToDate+1,'DD/MM/YYYY'))&lt;/I&gt;&lt;/B&gt;'}FCode={"01"}&amp;gt;}OrdTradeTotal)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;the vFromDate and vToDate are variables which are set using the calandar object. These are working as I can display them in a text field.&lt;/P&gt;&lt;P&gt;If I remove the data parts and just leave&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;FCode={"01"}&amp;gt;}OrdTradeTotal) . Set analysis does work. so its a problem with the dates I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can anyone spot a problem with the formula.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143682#M22844</guid>
      <dc:creator />
      <dc:date>2009-05-08T17:19:45Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143683#M22845</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 am not sure about this but I use to have errors because of the formating. So instead of comparing Date with (date(cFromDate) try to compair numbers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143683#M22845</guid>
      <dc:creator />
      <dc:date>2009-05-08T17:49:42Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143684#M22846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Alan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;Date = {"&amp;gt;$(=date(vFromDate-1,'DD/MM/YYYY'))&amp;lt;$(=date(vToDate+1,'DD/MM/YYYY'))"}, FCode={"01"}&amp;gt;} OrdTradeTotal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards, sparur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 19:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143684#M22846</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2009-05-08T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143685#M22847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sparur,&lt;/P&gt;&lt;P&gt;Sorry for the delay in replying, work stopped access to the website (it had the word forums in the address) even though its for work...took a while to get them to re-instate access.&lt;/P&gt;&lt;P&gt;Unfortunately your suggestion didnt work, I think there is something more fundamentaly wrong with the Qlikview set-up as it was working and then stopped for no reason.&lt;/P&gt;&lt;P&gt;I'll let you know if I solve it.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 18:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143685#M22847</guid>
      <dc:creator />
      <dc:date>2009-06-09T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143686#M22848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Alan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very strange situation.&lt;/P&gt;&lt;P&gt;could you give an example of your application?&lt;BR /&gt;&lt;BR /&gt;And what data type your date fields? as far as I remember, in order to work Set Analysis, they must numeric&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 19:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143686#M22848</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2009-06-09T19:07:00Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143687#M22849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan ,&lt;/P&gt;&lt;P&gt;Try to put the # sign in front of your variables&lt;/P&gt;&lt;P&gt;exemple : #vFromDate instead of vFromDate.&lt;/P&gt;&lt;P&gt;your foemula should look :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;Date = {'&amp;gt;$(=date(#vFromDate-1,'DD/MM/YYYY'))&amp;lt;&lt;B&gt;&lt;I&gt;$(=date(#vToDate+1,'DD/MM/YYYY'))&lt;/I&gt;&lt;/B&gt;'}FCode={"01"}&amp;gt;}OrdTradeTotal)&lt;/P&gt;&lt;P&gt;&lt;B&gt;You should not have to use the date function at that point.&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Here is what I would use :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Date &amp;gt; &lt;B&gt;{&lt;/B&gt;$&lt;B&gt;(&lt;/B&gt;#=only(vFromDate)-1)&lt;B&gt;&amp;gt;}&lt;/B&gt; {$&amp;lt;&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;Date &amp;lt; &lt;B&gt;{&lt;/B&gt;$&lt;B&gt;(&lt;/B&gt;#=only(vToDate) +1)&lt;B&gt;&amp;gt;&lt;/B&gt;&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;} FCode={"01"}&amp;gt;} OrdTradeTotal)&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 21:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143687#M22849</guid>
      <dc:creator />
      <dc:date>2009-06-09T21:29:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143688#M22850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;Thanks for your input and thankyou to all the others that made suggestions. The problem is now solved, it was a very simple solution and was basically user error. I noticed that the &lt;B&gt;SET&lt;/B&gt; TimestampFormat='DD/MM/YYYY' actually had 00:00:00 for hours minuts seconds so removed these, re-imported and hey presto.&lt;/P&gt;&lt;P&gt;Simple solution but had me going for a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks all who tried to help.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 23:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143688#M22850</guid>
      <dc:creator />
      <dc:date>2009-06-09T23:44:03Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143689#M22851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i work with set analisis, i try to put all the complexity inside the variable, an then just put the variable "$(#vLastYear) i.e.", in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 23:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/143689#M22851</guid>
      <dc:creator />
      <dc:date>2009-06-09T23:49:52Z</dc:date>
    </item>
  </channel>
</rss>

