<?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: Error in Date Range Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367659#M136711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To take this a bit furthur, I need to test for Year as well, so that I don't sum yearly data other than the year identified.&amp;nbsp; I know this is not correct syntax but the 2nd line is the one succussfully agregates my data by year but I hope to add the 1st condition of the logistic startdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LogisticsStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'&amp;gt;=$1/1/2011 12:00:00 AM&amp;lt;=12/31/2011 12:00:00 AM'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ConsCommission&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;sum({&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}ConsCommission)+ sum({&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}OCCommission)+ sum({&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}DiscCommission) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2012 21:45:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-25T21:45:54Z</dc:date>
    <item>
      <title>Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367656#M136708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following expression has an error that I can't seem to resolve.&amp;nbsp; I checked other posts but can't get the error condition to resolve.&amp;nbsp; Any help would be apprecidated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LogisticsStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'&amp;gt;=$1/1/2011 12:00:00 AM&amp;lt;=12/31/2011 12:00:00 AM'}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ConsCommission&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 20:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367656#M136708</guid>
      <dc:creator />
      <dc:date>2012-06-25T20:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367657#M136709</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 guess what you need is to add a '}' just before ConsCommission to close the Set Analysis part.&lt;/P&gt;&lt;P&gt;Of course another thing to check is the format of your dates to get correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367657#M136709</guid>
      <dc:creator />
      <dc:date>2012-06-25T21:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367658#M136710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks JP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at that several times and missed it.&amp;nbsp; Calculating now.&amp;nbsp; Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367658#M136710</guid>
      <dc:creator />
      <dc:date>2012-06-25T21:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367659#M136711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To take this a bit furthur, I need to test for Year as well, so that I don't sum yearly data other than the year identified.&amp;nbsp; I know this is not correct syntax but the 2nd line is the one succussfully agregates my data by year but I hope to add the 1st condition of the logistic startdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LogisticsStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'&amp;gt;=$1/1/2011 12:00:00 AM&amp;lt;=12/31/2011 12:00:00 AM'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ConsCommission&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;sum({&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}ConsCommission)+ sum({&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}OCCommission)+ sum({&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}DiscCommission) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367659#M136711</guid>
      <dc:creator />
      <dc:date>2012-06-25T21:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367660#M136712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can link your date to a master calendar and thus be able to select a desired year, month, week, etc.&lt;/P&gt;&lt;P&gt;Your expression would look like this:&lt;/P&gt;&lt;P&gt;Sum(field1+field2+field3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can add 2 variables for the user to select his interval dates&lt;/P&gt;&lt;P&gt;and your expression would look like this:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Datefield={"&amp;gt;=$(=Date(vInputDate1)) &amp;lt;=$(=Date(vInputDate2))"}&amp;gt;} field1+field2+field3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what your are trying to do ?&lt;/P&gt;&lt;P&gt;If not, you can provide more details and maybe a sample of your qvw and i'll be glad to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 00:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367660#M136712</guid>
      <dc:creator />
      <dc:date>2012-06-27T00:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367661#M136713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay. I haven't had a chance to explore your last suggestion to make it more flexible.&amp;nbsp; In the interim I was trying to get this statement to work,&amp;nbsp; However, I have an expression error that I can't figure out that should limit my data to LogisticsStartDate and Revenue Year = 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LogisticsStartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = {'&amp;gt;=$1/1/2011&amp;lt;=12/31/2011'},Year = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"2011"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}ConsCommission) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 14:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367661#M136713</guid>
      <dc:creator />
      <dc:date>2012-06-29T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Date Range Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367662#M136714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the single condition listed below provides my answer.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;LogisticsStartDate = {'&amp;gt;=1/1/2010 12:00:00 AM&amp;lt;=12/31/2010 12:00:00 AM'}&amp;gt;}ConsCommission)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 15:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Date-Range-Expression/m-p/367662#M136714</guid>
      <dc:creator />
      <dc:date>2012-06-29T15:55:27Z</dc:date>
    </item>
  </channel>
</rss>

