<?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: Using Set Analysis with Date Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622128#M1108394</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;Create a variable for the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vARPMonth = Month(Date(vEnd3MonthsBack,dd/mm/yyyy))&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ARPaymentMonth={$(vARPMonth)}&amp;gt;}ARInvoiceOutstandingAmount)&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;sum({$&amp;lt;ARPaymentMonth={'=$(=Month(Date(vEnd3MonthsBack,dd/mm/yyyy)))'}&amp;gt;} ARInvoiceOutstandingAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 05:01:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-26T05:01:26Z</dc:date>
    <item>
      <title>Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622124#M1108390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple problem and can't see why this is not working.&amp;nbsp; I need to display values in table columns based on when payment is expected.&amp;nbsp; I ma using the following Set Analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;ARPaymentMonth={'=$(=Date(vEnd3MonthsBack,dd/mm/yyyy))'}&amp;gt;} ARInvoiceOutstandingAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is happening is ALL values are being returned, rather than just ones for the selected month.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 02:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622124#M1108390</guid>
      <dc:creator />
      <dc:date>2014-03-26T02:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622125#M1108391</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;Try this one:&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;sum({$&amp;lt;ARPaymentMonth={'=$(=Date('$(vEnd3MonthsBack)',dd/mm/yyyy))'}&amp;gt;} ARInvoiceOutstandingAmount)&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;HTH&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;Sushil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 04:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622125#M1108391</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-03-26T04:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622126#M1108392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;ARPaymentMonth={'=$(=Date(&lt;STRONG&gt;'=$(vEnd3MonthsBack)'&lt;/STRONG&gt;,dd/mm/yyyy))'}&amp;gt;} ARInvoiceOutstandingAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 04:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622126#M1108392</guid>
      <dc:creator />
      <dc:date>2014-03-26T04:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622127#M1108393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response, however there appears to be a problem with this syntax:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 04:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622127#M1108393</guid>
      <dc:creator />
      <dc:date>2014-03-26T04:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622128#M1108394</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;Create a variable for the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vARPMonth = Month(Date(vEnd3MonthsBack,dd/mm/yyyy))&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ARPaymentMonth={$(vARPMonth)}&amp;gt;}ARInvoiceOutstandingAmount)&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;sum({$&amp;lt;ARPaymentMonth={'=$(=Month(Date(vEnd3MonthsBack,dd/mm/yyyy)))'}&amp;gt;} ARInvoiceOutstandingAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 05:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622128#M1108394</guid>
      <dc:creator />
      <dc:date>2014-03-26T05:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622129#M1108395</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;Try like this, Outer and Inner are single quotes, because of this you are getting the error&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;ARPaymentMonth={"=$(=Date(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'$(vEnd3MonthsBack)'&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,dd/mm/yyyy))"}&amp;gt;} ARInvoiceOutstandingAmount)&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 05:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622129#M1108395</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-26T05:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622130#M1108396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this syntax as suggested … but still get the full dataset of values returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622130#M1108396</guid>
      <dc:creator />
      <dc:date>2014-03-26T06:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622131#M1108397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried both options as suggested, but with this I get a zero value back.  Here is the exact syntax I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vEnd3MonthsBack = Date(monthend(addmonths(date(today()),-3)),dd/mm/yyyy); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ARPaymentMonth={$(vEnd3MonthsBack)&amp;gt;}ARInvoiceOutstandingAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622131#M1108397</guid>
      <dc:creator />
      <dc:date>2014-03-26T06:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622132#M1108398</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 think in your table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ARPaymentMonth=contain Month&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;and expression you are using contain &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;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;'$(vEnd3MonthsBack)'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,dd/mm/yyyy) Which return Date&lt;/SPAN&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;&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;So that you have to use Month() or Monthname() before above expression to match with your fieldname&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;Try this&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;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ARPaymentMonth&lt;/SPAN&gt; contain only jan,feb, etc than use,&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;sum({$&amp;lt;ARPaymentMonth={'=$(=Month(Date(vEnd3MonthsBack)))'}&amp;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;&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;OR&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;sum({$&amp;lt;ARPaymentMonth={'=$(=Month(Date(vEnd3MonthsBack,'DD/MM/YYYY')))'}&amp;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;&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;IF &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ARPaymentMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; contain only jan 2013,feb 2013, etc than use&lt;/SPAN&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;sum({$&amp;lt;ARPaymentMonth={'=$(=MonthName(Date(vEnd3MonthsBack)))'}&amp;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;Or&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;sum({$&amp;lt;ARPaymentMonth={'=$(=MonthName(Date(vEnd3MonthsBack,'DD/MM/YYYY')))'}&amp;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;&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;&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>Wed, 26 Mar 2014 06:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622132#M1108398</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-26T06:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622133#M1108399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have rechecked the data load  – this is how it is formatted (I added the date function to see if it made a difference):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(monthend(paymentDate),'dd/mm/yyyy') as ARPaymentMonth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script includes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vEnd3MonthsBack = Date(monthend(addmonths(date(today()),-3)),dd/mm/yyyy); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table format is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ARPaymentMonth={$(vEnd3MonthsBack)&amp;gt;}ARInvoiceOutstandingAmount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;… and as mentioned, this loads ALL data values …&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 07:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622133#M1108399</guid>
      <dc:creator />
      <dc:date>2014-03-26T07:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622134#M1108400</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;In Your Date()&lt;/P&gt;&lt;P&gt;You use format 'dd/mm/yyyy'&lt;/P&gt;&lt;P&gt;in this mm----&amp;gt;minutes&lt;/P&gt;&lt;P&gt;not month&lt;/P&gt;&lt;P&gt;So use Format like 'DD/MM/YYYY'&lt;/P&gt;&lt;P&gt;MM---&amp;gt;Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 07:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622134#M1108400</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-26T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622135#M1108401</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;Check whether the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;ARPaymentMonth&lt;/SPAN&gt; and &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;vEnd3MonthsBack is in this format "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;dd/mm/yyyy&lt;/SPAN&gt;" if not convert to the same format.&amp;nbsp; If possible attach a sample file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 07:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622135#M1108401</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-26T07:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622136#M1108402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rechecked all formats are correct.  To recap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script now includes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vEnd3MonthsBack = Date(monthend(addmonths(date(today()),-3)),DD/MM/YYYY); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Load now includes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(monthend(paymentDate),'DD/MM/YYYY') as ARPaymentMonth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table format is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;ARPaymentMonth={"=$(=Date('$(vEnd3MonthsBack)',DD/MM/YYYY))"}&amp;gt;} ARInvoiceOutstandingAmount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;… this returns ALL data to the table – not just the required items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622136#M1108402</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622137#M1108403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have rechecked this with all date formats as DD/MM/YYYY … same result …&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622137#M1108403</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622138#M1108404</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 am just go through all your expression you are not using ''(Single Quotes) to format your date,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this If you are using variable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;ARPaymentMonth={"=$(=Date('$(vEnd3MonthsBack)','DD/MM/YYYY'))"}&amp;gt;} ARInvoiceOutstandingAmount)&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;and also check for&amp;nbsp; Other expressions also .&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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622138#M1108404</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-26T08:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622139#M1108405</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;Use this to create variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;let vEnd3MonthsBack = &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;monthend&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),'dd/mm/yyyy'),-3));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SUM({&amp;lt;ARPaymentMonth={'$(vEnd3MonthsBack)'}&amp;gt;}ARInvoiceOutstandingAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It will work...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622139#M1108405</guid>
      <dc:creator />
      <dc:date>2014-03-26T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis with Date Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622140#M1108406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, everyone&amp;nbsp; The correct solution was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script:&lt;/P&gt;&lt;P&gt;let vEnd3MonthsBack = monthend(addmonths(date(today(),'dd/mm/yyyy'),-3));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart table:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ARPaymentMonth={'$(vEnd4MonthsBack)'}&amp;gt;}ARInvoiceOutstandingAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Ravi - your solution had a '}' missing, but I resolved that)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 13:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-with-Date-Variable/m-p/622140#M1108406</guid>
      <dc:creator />
      <dc:date>2014-03-26T13:43:40Z</dc:date>
    </item>
  </channel>
</rss>

