<?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 Visible current year figures, selection previous year dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316719#M116835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have to display the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current year sales figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Current year sales figures filtered by the sum of sales by customer from previous years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script I created a group by calcuation to get the sum Sales per year by customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trouble finding the correct way to select the customer from previous year to display the figures from the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A customer in the previous year with sales over $ x = keyaccount.&lt;/P&gt;&lt;P&gt;This result is needed to determine the current year keyaccount customer sales. In other words, a keyaccount in 2010 should define the displayed customers in 2011.&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>Mon, 14 Nov 2011 09:05:36 GMT</pubDate>
    <dc:creator>Michiel_QV_Fan</dc:creator>
    <dc:date>2011-11-14T09:05:36Z</dc:date>
    <item>
      <title>Visible current year figures, selection previous year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316719#M116835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have to display the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current year sales figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Current year sales figures filtered by the sum of sales by customer from previous years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script I created a group by calcuation to get the sum Sales per year by customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trouble finding the correct way to select the customer from previous year to display the figures from the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A customer in the previous year with sales over $ x = keyaccount.&lt;/P&gt;&lt;P&gt;This result is needed to determine the current year keyaccount customer sales. In other words, a keyaccount in 2010 should define the displayed customers in 2011.&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>Mon, 14 Nov 2011 09:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316719#M116835</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-11-14T09:05:36Z</dc:date>
    </item>
    <item>
      <title>Visible current year figures, selection previous year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316720#M116836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should be able to do this with set analysis, maybe along this line &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;=sum(&lt;/SPAN&gt; {$&amp;lt;CustomerID = {“=Sum({1&amp;lt;Year = {2010} &amp;gt;} Sales ) &amp;gt; 100000”}&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt; &lt;/SPAN&gt;&lt;SPAN style="margin-left: 40px;"&gt;&lt;BR /&gt;returns the sales for current selection, but with a new selection in the CustomerID field: only customers who during 2010 had a total sales of more than 100000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the last year to be dependent on Year selection, you could try&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;=sum(&lt;/SPAN&gt; {$&amp;lt;CustomerID = {“=Sum({1&amp;lt;Year = {'$(=max(Year)-1)'} &amp;gt;} Sales ) &amp;gt; 100000”}&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Put this expression in a table chart with dimension CustomerID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 11:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316720#M116836</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-14T11:57:22Z</dc:date>
    </item>
    <item>
      <title>Visible current year figures, selection previous year dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316721#M116837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course Set Analysis. ..... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed max(Year) to only(year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 12:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Visible-current-year-figures-selection-previous-year-dimension/m-p/316721#M116837</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-11-14T12:40:24Z</dc:date>
    </item>
  </channel>
</rss>

