<?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 how to plot 2015 data as 2016 data in a chart...stumped in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/how-to-plot-2015-data-as-2016-data-in-a-chart-stumped/m-p/1187252#M22209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have been making great progress with implementing Qlik for my company but am just stumped on what is most likely a simple solution.&amp;nbsp; I do not have any sample code but believe just a quick explanation will be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am plotting weekly sales units data on a line chart, showing all of 2015, and 2016 Year to Date.&amp;nbsp; I would like to plot a 3rd line that would be 2016 data up to the current week (that I have stored as a variable called vMaxWeek) and continue the plot with 2015 data points with xx% lift (let's assume 30%, *1.3, for this example).&amp;nbsp; So basically I'm intending to plot a full year of 2016 sales with actuals and projected based on a calculated lift of 2015 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to accomplish with the following expression, but just need help with the concept of getting these data points to plot all as 2016 data.&amp;nbsp; With this expression, weeks 37 thru 52 with the 30% lift are plotting in year 2015, and the actuals for 2016 are plotting after&amp;nbsp; in weeks 1 thru 36&amp;nbsp; of 2016.&amp;nbsp; I need to find a way to get the projected sales data point to plot in weeks 37 thru 52 of 2016.&amp;nbsp; hope you can help talk me thru it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;if ( [Fiscal Week] &amp;gt; vMaxWeek ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Sum({$&amp;lt;[Fiscal Year]={$(=vMaxYear-1)}&amp;gt;} [POS Units]*1.3),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Sum({$&amp;lt;[Fiscal Year]={$(=vMaxYear)}&amp;gt;} [POS Units])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//POS Units&amp;nbsp; is a field in the fact table indicating the number of units sold in a given period&lt;/P&gt;&lt;P&gt;//Fiscal Week is the week of data in my fact table&lt;/P&gt;&lt;P&gt;//Fiscal Year is another field in the Fact table&lt;/P&gt;&lt;P&gt;//vMaxWeek and vMaxYear and both Variables I calculate from my calendar table.&lt;/P&gt;&lt;P&gt;//currently vMaxWeek = 36&amp;nbsp; and&amp;nbsp; vMaxYear = 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could also get by with just plotting the projected sales, week 37 thru end of year, with the [POS Units]*1.3....Just need them to show up on the plot as 2016 data points and not 2015.&amp;nbsp; Hope you can help me see this the right way!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Sep 2016 20:50:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-18T20:50:03Z</dc:date>
    <item>
      <title>how to plot 2015 data as 2016 data in a chart...stumped</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-plot-2015-data-as-2016-data-in-a-chart-stumped/m-p/1187252#M22209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have been making great progress with implementing Qlik for my company but am just stumped on what is most likely a simple solution.&amp;nbsp; I do not have any sample code but believe just a quick explanation will be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am plotting weekly sales units data on a line chart, showing all of 2015, and 2016 Year to Date.&amp;nbsp; I would like to plot a 3rd line that would be 2016 data up to the current week (that I have stored as a variable called vMaxWeek) and continue the plot with 2015 data points with xx% lift (let's assume 30%, *1.3, for this example).&amp;nbsp; So basically I'm intending to plot a full year of 2016 sales with actuals and projected based on a calculated lift of 2015 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to accomplish with the following expression, but just need help with the concept of getting these data points to plot all as 2016 data.&amp;nbsp; With this expression, weeks 37 thru 52 with the 30% lift are plotting in year 2015, and the actuals for 2016 are plotting after&amp;nbsp; in weeks 1 thru 36&amp;nbsp; of 2016.&amp;nbsp; I need to find a way to get the projected sales data point to plot in weeks 37 thru 52 of 2016.&amp;nbsp; hope you can help talk me thru it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;if ( [Fiscal Week] &amp;gt; vMaxWeek ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Sum({$&amp;lt;[Fiscal Year]={$(=vMaxYear-1)}&amp;gt;} [POS Units]*1.3),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Sum({$&amp;lt;[Fiscal Year]={$(=vMaxYear)}&amp;gt;} [POS Units])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//POS Units&amp;nbsp; is a field in the fact table indicating the number of units sold in a given period&lt;/P&gt;&lt;P&gt;//Fiscal Week is the week of data in my fact table&lt;/P&gt;&lt;P&gt;//Fiscal Year is another field in the Fact table&lt;/P&gt;&lt;P&gt;//vMaxWeek and vMaxYear and both Variables I calculate from my calendar table.&lt;/P&gt;&lt;P&gt;//currently vMaxWeek = 36&amp;nbsp; and&amp;nbsp; vMaxYear = 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could also get by with just plotting the projected sales, week 37 thru end of year, with the [POS Units]*1.3....Just need them to show up on the plot as 2016 data points and not 2015.&amp;nbsp; Hope you can help me see this the right way!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 20:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-plot-2015-data-as-2016-data-in-a-chart-stumped/m-p/1187252#M22209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-18T20:50:03Z</dc:date>
    </item>
  </channel>
</rss>

