<?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 get comparison figures? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252587#M95753</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;&lt;/P&gt;&lt;P&gt;I have the following records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;FiscalWeek,Amount,FiscalYear,Region&lt;BR /&gt;2010Wk01,100,2010,Brazil&lt;BR /&gt;2010Wk02,50,2010,Brazil&lt;BR /&gt;2011Wk01,300,2011,Brazil&lt;BR /&gt;2011Wk02,150,2011,Brazil&lt;/P&gt;&lt;P&gt;2010Wk01,100,2010,France&lt;/P&gt;&lt;P&gt;2010Wk02,50,2010,France&lt;/P&gt;&lt;P&gt;2011Wk01,300,2011,France&lt;/P&gt;&lt;P&gt;2011Wk02,150,2011,France&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use FiscalYear and Region as the parameters and show the numbers in Pivot table.&amp;nbsp; I put FiscalWeek as dimension, and use expression sum(Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I choose 2011 as the fiscal year and choose Brazil as the region, the pivot shows the Brazil Amount of 2011Wk01 and 2011Wk02. It works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume now is 2011Wk02, based on it, I also want to show the Brazil amount of 2010Wk02 in another Pivot table use another expression, this pivot does &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not have any dimension, how to achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use this: sum({&amp;lt;FiscalWeek={'2010Wk02'}&amp;gt;}Amount), but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you experts help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2011 07:27:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-24T07:27:20Z</dc:date>
    <item>
      <title>How get comparison figures?</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252587#M95753</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;&lt;/P&gt;&lt;P&gt;I have the following records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;FiscalWeek,Amount,FiscalYear,Region&lt;BR /&gt;2010Wk01,100,2010,Brazil&lt;BR /&gt;2010Wk02,50,2010,Brazil&lt;BR /&gt;2011Wk01,300,2011,Brazil&lt;BR /&gt;2011Wk02,150,2011,Brazil&lt;/P&gt;&lt;P&gt;2010Wk01,100,2010,France&lt;/P&gt;&lt;P&gt;2010Wk02,50,2010,France&lt;/P&gt;&lt;P&gt;2011Wk01,300,2011,France&lt;/P&gt;&lt;P&gt;2011Wk02,150,2011,France&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use FiscalYear and Region as the parameters and show the numbers in Pivot table.&amp;nbsp; I put FiscalWeek as dimension, and use expression sum(Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I choose 2011 as the fiscal year and choose Brazil as the region, the pivot shows the Brazil Amount of 2011Wk01 and 2011Wk02. It works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume now is 2011Wk02, based on it, I also want to show the Brazil amount of 2010Wk02 in another Pivot table use another expression, this pivot does &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not have any dimension, how to achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use this: sum({&amp;lt;FiscalWeek={'2010Wk02'}&amp;gt;}Amount), but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you experts help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 07:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252587#M95753</guid>
      <dc:creator />
      <dc:date>2011-11-24T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How get comparison figures?</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252588#M95754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiu, if i understand you correctly you would need another dimension that only has the week number (without the year)&amp;nbsp; then use some set analysis like this in your second pivot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;FiscalYear = {$(=max(FiscalYear)-1)}&amp;gt; } Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg attached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( just reading your post again if you wanted to specify the week specifically you would need to remove the year selection by changing your set expression to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FiscalYear=, FiscalWeek={'2010Wk02'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 07:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252588#M95754</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-11-24T07:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How get comparison figures?</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252589#M95755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but why this sum({&amp;lt;FiscalWeek={'2010Wk02'}&amp;gt;}Amount) does not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 07:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252589#M95755</guid>
      <dc:creator />
      <dc:date>2011-11-24T07:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How get comparison figures?</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252590#M95756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Because you have made a selection of the FiscalYear as you are modifying the current set ($) unless you include that in your set expression it will allways be 0 as 2010Wk02 falls outside the current set (if you were modifying the full set (1) you wouldn't have this issue but then your region selections would also be removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 07:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252590#M95756</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-11-24T07:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How get comparison figures?</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252591#M95757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for you explanation, it really helps me a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 08:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-comparison-figures/m-p/252591#M95757</guid>
      <dc:creator />
      <dc:date>2011-11-24T08:00:59Z</dc:date>
    </item>
  </channel>
</rss>

