<?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: QVD help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646998#M236989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;marc, thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, i'm pretty new to qlikview but i'm not sure how your suggestion would help fix the double issue? would the concatenate function get rid of the double 10/06 data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 14:45:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-16T14:45:40Z</dc:date>
    <item>
      <title>QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646996#M236987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts, I need your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have historical and future forecast data that I want to show in a graph. Right now, I have two QVDs: one that shows historical and one that shows future. Each QVD has the following information: Snapshot week, calendar week, Product, Region, Brand, and Forecast 1, Forecast 2 and Forecast 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be a little confusing because in the historical forecast qvd, the snapshot week and the calendar week is switched. See my example. The problem that I'm having is that When I join these two tables, my current week forecast gets doubled. Instead of 600, 630 and 660 for forecast 1, forecast 2, and forecast 3 for the week of 10/06/2014, I'm getting 1200, 1260, 1320. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to avoid this double? in the graph? in the script? and How do I avoid it? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have attached a QVQ that best shows this example. Please help me as this is becoming very urgent. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646996#M236987</guid>
      <dc:creator />
      <dc:date>2014-10-16T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646997#M236988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would solve it in script. Just load your both tables in a same one, with a field indicating if forecast or historic. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table: load *, 'H' as datatype FROM yourhistoricalsource;&lt;/P&gt;&lt;P&gt;concatenate load *, 'F' as datatype FROM yourforecastsource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in back end use datatype&amp;nbsp; field to select your data.&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;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646997#M236988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646998#M236989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;marc, thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, i'm pretty new to qlikview but i'm not sure how your suggestion would help fix the double issue? would the concatenate function get rid of the double 10/06 data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646998#M236989</guid>
      <dc:creator />
      <dc:date>2014-10-16T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646999#M236990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, then try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;table:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD*, &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'H' as datatype&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM yourhistoricalsource;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;concatenate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; snapshot_week as calendar_week, &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calendar_week as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;snapshot_week ,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product, region, brand, forecast_1, forecast_2, forecast_3,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F' as datatype&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM yourforecastsource;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/646999#M236990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647000#M236991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the concatenation still did not help with my doubling issue. please see the picture attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647000#M236991</guid>
      <dc:creator />
      <dc:date>2014-10-16T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647001#M236992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would try one of these 2 options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) add the dimension datatype to your actual sales table. So you will distinguish the amounts of historical/future forecast.&lt;/P&gt;&lt;P&gt;B) Use set analysis in the expressions, for instance, if you wold like to show only the future forecast values, write the expression: =sum({&amp;lt;datatype={'F'}&amp;gt;} forecast_1)&amp;nbsp;&amp;nbsp; instead of&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum(forecast_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647001#M236992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647002#M236993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured out a way to do this in the QVD itself. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In the historical QVD, I have it set up where it picks up any snapshot weeks greater than current week-10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to say pick up everything less than currentweek-1 and everything greater than currentweek-10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can anyone help me with this SQL select statement to do what I said above in the bold?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my current script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Select * from Forecast Table&lt;/P&gt;&lt;P&gt;Where snapshot_week&amp;nbsp; &amp;gt;= $(vMinWeek) &amp;gt; and calendar_week = $(vCurrWeek);&lt;/P&gt;&lt;P&gt;STORE * FROM Forecast INTO $(vRootPath)\Data\QVDs\Historical_10week.QVD;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647002#M236993</guid>
      <dc:creator />
      <dc:date>2014-10-16T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647003#M236994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your where clause to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Where snapshot_week&amp;nbsp; &amp;gt;= $(vMinWeek) &amp;gt; and calendar_week &amp;gt;= $(=vCurrWeek-1) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and calendar_week &amp;lt;= $(=vCurrWeek-10)&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;Also, I would recommend instead of using a single datatype field for 'F', 'H' create two additional fields.&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;pseudo code:&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 Historical then 1 as HistoryFlag&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 Current then 1 as CurrentFlag.&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;Then you can use these flags to access your data by multiplying the field you want by them:&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(Amount*Historyflag) will sum only those records with HistoryFlag set to 1.&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>Thu, 16 Oct 2014 15:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647003#M236994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647004#M236995</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;Could attached file help in achieving the solution. I think the problem is related to the fact that for 10/6/2014 both future and historical forecast exists. If you need to load future forecast for the date just switch historical and future tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 16:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647004#M236995</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2014-10-16T16:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: QVD help</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647005#M236996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the 'where' clause definitely helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could ask one more favor, I need to make another graph that is static. 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&gt;Current week&amp;nbsp; in the application is 10/6/2014.&lt;/P&gt;&lt;P&gt;I need to see sales and historical forecast for: 9/29/2014, 9/22/2014&lt;/P&gt;&lt;P&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&gt;How can I make this happen? I will attach the QVW if anyone can help, I would greatly appreciate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 18:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-help/m-p/647005#M236996</guid>
      <dc:creator />
      <dc:date>2014-10-16T18:03:09Z</dc:date>
    </item>
  </channel>
</rss>

