<?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: Year-To-Year Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116935#M18005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps with this set modifier for the PRODUCT field: PRODUCT=P({&amp;lt;YEAR={2017}&amp;gt;}PRODUCT)*P({&amp;lt;YEAR={2018}&amp;gt;}PRODUCT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2018 04:13:13 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-09-28T04:13:13Z</dc:date>
    <item>
      <title>Year-To-Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116934#M18004</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;I am trying to do a year-to-year comparison comparing a Product %-To-Total but exclude Product that weren't used in one year or the other.&amp;nbsp; Basically, I am looking to compare apple to apples. The formulas I am using are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2018'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'A','B'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VOLUME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2018'}&amp;gt;} &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VOLUME&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2017'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'A','B'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VOLUME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'2017}&amp;gt;} &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VOLUME&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How do I adjust this formula to accomplish my objective?&amp;nbsp; In addition, I need the overall results to be the same when using other dimensions such as State, City, Region, etc.&amp;nbsp; Any help would be greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Brian&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 22:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116934#M18004</guid>
      <dc:creator>bxprokop</dc:creator>
      <dc:date>2018-09-27T22:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Year-To-Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116935#M18005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps with this set modifier for the PRODUCT field: PRODUCT=P({&amp;lt;YEAR={2017}&amp;gt;}PRODUCT)*P({&amp;lt;YEAR={2018}&amp;gt;}PRODUCT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 04:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116935#M18005</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-09-28T04:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Year-To-Year Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116936#M18006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will help, but here is an example of using the P &amp;amp; E functions to include or exclude variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Shows the sales of all customers who have purchased something from the Product field value, "Business Buffet".&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Customer = P({1&amp;lt;Product={'Business Buffet'}&amp;gt;} Customer)&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Shows the sales of all customers who have not purchased something from the Product field value, "Business Buffet".&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Customer = E({1&amp;lt;Product={'Business Buffet'}&amp;gt;} Customer)&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 20:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Year-Comparison/m-p/116936#M18006</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2018-10-17T20:07:33Z</dc:date>
    </item>
  </channel>
</rss>

