<?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 to display static graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647934#M237239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I need to be able to see from current week, 2 weeks of actual sales and historical forecast and 4 weeks of future forecast. In my example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Current week&amp;nbsp; in the application is 10/6/2014.&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I need to see sales and historical forecast for: 9/29/2014, 9/22/2014&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I need to see future forecast for: 10/6/2014, 10/13/2014, 10/20/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;How can I make this happen? Attached is QVW file and data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 19:29:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-16T19:29:55Z</dc:date>
    <item>
      <title>Set analysis to display static graph</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647934#M237239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I need to be able to see from current week, 2 weeks of actual sales and historical forecast and 4 weeks of future forecast. In my example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Current week&amp;nbsp; in the application is 10/6/2014.&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I need to see sales and historical forecast for: 9/29/2014, 9/22/2014&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;I need to see future forecast for: 10/6/2014, 10/13/2014, 10/20/2014, 10/27/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.8181819915771px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;How can I make this happen? Attached is QVW file and data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 19:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647934#M237239</guid>
      <dc:creator />
      <dc:date>2014-10-16T19:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to display static graph</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647935#M237240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You needed the set expression on all the sum values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; calendar_week = {"&amp;gt;=$(=weekStart(snapshot_week,-2))&amp;lt;=$(=weekStart(snapshot_week,4))"}&amp;gt;} actual_sales)&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; calendar_week = {"&amp;gt;=$(=weekStart(snapshot_week,-2))&amp;lt;=$(=weekStart(snapshot_week,4))"}&amp;gt;}forecast_2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified your file and attached it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 20:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647935#M237240</guid>
      <dc:creator>wms_manis</dc:creator>
      <dc:date>2014-10-16T20:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to display static graph</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647936#M237241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wade, this is wonderful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question though. This works perfectly in my sample application. When I do it in my actual application, it gives me more than than 2 weeks for sales ( 7 weeks to be exact). Do you know why? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script that I'm using: &lt;/P&gt;&lt;P&gt;sum({$&amp;lt; calendar_week = {"&amp;gt;=$(=weekStart(snapshot_week,-2))&amp;lt;=$(=weekStart(snapshot_week,4))"}&amp;gt;} sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it matter if my dates are in weeknumber/year format or a monday date format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 21:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647936#M237241</guid>
      <dc:creator />
      <dc:date>2014-10-16T21:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis to display static graph</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647937#M237242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date comparison is using the date value format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One trick you can use to see how the expression is evaluated is to change the chart type to a Straight table and then remove the label.&amp;nbsp; Now when you hover over the label, you can see how the set expression is being evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to use Max(snapshot_week) if that has multiple values.&amp;nbsp; Using max will not force you to set that field to only one selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 22:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647937#M237242</guid>
      <dc:creator>wms_manis</dc:creator>
      <dc:date>2014-10-16T22:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to display static graph</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647938#M237243</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give this in Text object and check whether &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;calendar_week&amp;nbsp; and the below expression value are in same format, if both are in different format then your expression won't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;weekStart(snapshot_week,4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For set analysis date format should be same otherwise it gives invalid results.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you have multiple &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;snapshot_week then use &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&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; calendar_week = {"&amp;gt;=$(=weekStart(Max(snapshot_week),-2))&amp;lt;=$(=weekStart(Max(snapshot_week),4))"}&amp;gt;} sales)&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>Fri, 17 Oct 2014 04:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-display-static-graph/m-p/647938#M237243</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-17T04:01:56Z</dc:date>
    </item>
  </channel>
</rss>

