<?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: Date range in set analysis error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879452#M470253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&amp;nbsp; - Ugh,&amp;nbsp; Now it makes sense.&amp;nbsp; Sorry.&amp;nbsp; I knew that my dates/data only went up through 4/15/2015, but I didn't make the connection when I was using the expression.&amp;nbsp; You suggestion works, and now I understand why.&amp;nbsp; The '-80' gets me into the date range.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for taking your time.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 14:48:09 GMT</pubDate>
    <dc:creator>gshockxcc</dc:creator>
    <dc:date>2015-05-29T14:48:09Z</dc:date>
    <item>
      <title>Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879445#M470246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the the following expression that I'm trying to evaluate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg( {$&amp;lt; Date = {"&amp;gt;=$(=Max(AddMonths(vWeek1Start,0)))&amp;lt;=$(=Max(AddMonths(vWeek1Start-7,0)))"}, RangeDate &amp;gt;} Turbo_CDEVx_A )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried an alternate expression:&lt;/P&gt;&lt;P&gt;=Avg( {$&amp;lt; Date = {"&amp;gt;=$(=vWeek1Start)&amp;lt;=$(=vWeek2Start)"} &amp;gt;} Turbo_CDEVx_A )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't see to get either one of these to work properly.&amp;nbsp; The result gives me the average for ALL of the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 'vWeek1Start' defined as: =date(Today(), 'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;'vWeek2Start' is defined as: =Date(vWeek1Start - 7, 'MM/DD/YYYY')&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to specify the date range between "today" and 7 days prior, inclusive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 12:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879445#M470246</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-05-29T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879446#M470247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; think the problem is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vWeek1Start&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vWeek2Start and you set your 2 variable in wrong order.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Avg( {$&amp;lt; Date = {"&amp;gt;=$(=vWeek2Start)&amp;lt;=$(=vWeek1Start)"} &amp;gt;} Turbo_CDEVx_A )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 12:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879446#M470247</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-29T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879447#M470248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought about that as well.&amp;nbsp; I tried changing the order of the variables, and it fails to calculate.&amp;nbsp; If I leave it as is, at least it calculates an Average value, but it does it for ALL of the data, and it does not select the date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reversing the variables in the expression gives no results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879447#M470248</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-05-29T13:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879448#M470249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg( {$&amp;lt; Date = {'&amp;gt;=$(=date(today()-7))&amp;lt;=$(=date(today()))'} &amp;gt;} Turbo_CDEVx_A )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879448#M470249</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-29T13:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879449#M470250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that the logic makes sense, but it doesn't give me a result.&amp;nbsp; I have attached a sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879449#M470250</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-05-29T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879450#M470251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that you used single quotes " ' " in your expression, where I used double ".&amp;nbsp; Is there a reason why one works, and the other doesn't? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both, and still get no result. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879450#M470251</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-05-29T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879451#M470252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg( {$ &amp;lt; Date = {"&amp;gt;=$(=date(today()-80,'MM/DD/YYYY')) &amp;lt;=$(=date(date(today(),'MM/DD/YYYY')))"} &amp;gt; } Turbo_CDEVx_A )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I found the max(Date) = '4/15/2015'. It's April 15 2015. Today is almost summer )), so "May 29 2015"-7 days is bigger than "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;April 15 2015&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;2. I found formats of date are different in script and data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879451#M470252</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-29T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis error</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879452#M470253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&amp;nbsp; - Ugh,&amp;nbsp; Now it makes sense.&amp;nbsp; Sorry.&amp;nbsp; I knew that my dates/data only went up through 4/15/2015, but I didn't make the connection when I was using the expression.&amp;nbsp; You suggestion works, and now I understand why.&amp;nbsp; The '-80' gets me into the date range.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for taking your time.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 14:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-error/m-p/879452#M470253</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-05-29T14:48:09Z</dc:date>
    </item>
  </channel>
</rss>

