<?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 - Date Range (defined by variables) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1535993#M746376</link>
    <description>&lt;P&gt;Try some variations of your expression&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;PRE&gt;=Sum({&amp;lt;invoice_date = {"&amp;gt;=$(=$(v1Week))&amp;lt;=$(=$(vMaxDate))"}&amp;gt;} Qty)&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;=Sum({&amp;lt;invoice_date = {"&amp;gt;=$(=v1Week)&amp;lt;=$(=vMaxDate)"}&amp;gt;} Qty)&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Jan 2019 14:43:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-01-28T14:43:02Z</dc:date>
    <item>
      <title>Set Analysis - Date Range (defined by variables)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1535983#M746370</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched around the forums here and tried various versions of solutions to this issue but none seem to work for me.&lt;/P&gt;&lt;P&gt;I am trying to set up set analyses that will show me sales this week, last week,the week before that...etc&lt;/P&gt;&lt;P&gt;From these I will create run rates and various other things.&lt;/P&gt;&lt;P&gt;My issue is that when I drop in my test variables&amp;nbsp; &amp;nbsp;(These are names purely for testing btw)&lt;BR /&gt;"v1WeeK"&amp;nbsp; &amp;nbsp;Defined as&amp;nbsp;=Date(Max(invoice_date)-7)&amp;nbsp; &amp;nbsp; (In a text box, this is displaying the correct date)&lt;/P&gt;&lt;P&gt;"vMaxDate"&amp;nbsp; Defined as =Date(Max(invoice_date))&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;(In a text box, this is displaying the correct date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Into the following expression :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum ( { &amp;lt;invoice_date = {'&amp;gt;= $(=v1Week)&amp;lt;=$(vMaxDate)'} &amp;gt;} Qty )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am getting the same result as "=Sum(Qty)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas at all ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've got fistfuls of hair all around my desk...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Tony&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1535983#M746370</guid>
      <dc:creator>Irishtone</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Date Range (defined by variables)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1535993#M746376</link>
      <description>&lt;P&gt;Try some variations of your expression&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;PRE&gt;=Sum({&amp;lt;invoice_date = {"&amp;gt;=$(=$(v1Week))&amp;lt;=$(=$(vMaxDate))"}&amp;gt;} Qty)&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;=Sum({&amp;lt;invoice_date = {"&amp;gt;=$(=v1Week)&amp;lt;=$(=vMaxDate)"}&amp;gt;} Qty)&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Jan 2019 14:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1535993#M746376</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-28T14:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Date Range (defined by variables)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1536008#M746378</link>
      <description>&lt;P&gt;...My Hero Sunny!&lt;BR /&gt;&lt;BR /&gt;The second option works a treat!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 15:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Date-Range-defined-by-variables/m-p/1536008#M746378</guid>
      <dc:creator>Irishtone</dc:creator>
      <dc:date>2019-01-28T15:01:35Z</dc:date>
    </item>
  </channel>
</rss>

