<?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 Alternate States Like for Like in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-States-Like-for-Like/m-p/875079#M1003176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy.&lt;/P&gt;&lt;P&gt; I am using alternate states to compare sales form one period to another. all of this is working quite nicely.&lt;/P&gt;&lt;P&gt;But a recent request has be completely stumped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show sales per Retailer group, but only on a like for like basis.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Retailer is Woolworths. I have 4 agents, call them A,B,C and D.&lt;/P&gt;&lt;P&gt;In 2014 A,B and C were active.&lt;/P&gt;&lt;P&gt;In 2015 A,B and D is active, Agent C has closed down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I now need is to sum up the sales for A and B only, ignoring C and D because they are not in both states.&lt;/P&gt;&lt;P&gt;I have the following expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Previous&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$:: &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NettSalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Current&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$:: &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NettSalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;They sum up the values for all the agents in their timeframe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I need them to link up and see that only A and B are in both states, and only work with those two.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How do I do That?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ray&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 13:56:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-11T13:56:18Z</dc:date>
    <item>
      <title>Alternate States Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Like-for-Like/m-p/875079#M1003176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy.&lt;/P&gt;&lt;P&gt; I am using alternate states to compare sales form one period to another. all of this is working quite nicely.&lt;/P&gt;&lt;P&gt;But a recent request has be completely stumped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show sales per Retailer group, but only on a like for like basis.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Retailer is Woolworths. I have 4 agents, call them A,B,C and D.&lt;/P&gt;&lt;P&gt;In 2014 A,B and C were active.&lt;/P&gt;&lt;P&gt;In 2015 A,B and D is active, Agent C has closed down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I now need is to sum up the sales for A and B only, ignoring C and D because they are not in both states.&lt;/P&gt;&lt;P&gt;I have the following expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Previous&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$:: &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NettSalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Current&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$:: &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NettSalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;They sum up the values for all the agents in their timeframe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I need them to link up and see that only A and B are in both states, and only work with those two.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How do I do That?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ray&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Like-for-Like/m-p/875079#M1003176</guid>
      <dc:creator />
      <dc:date>2015-06-11T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate States Like for Like</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-States-Like-for-Like/m-p/875080#M1003178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to do this using the p() function for implicite field value definitions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe something along these lines:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Previous&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=$:: &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;BPRetailerGroup, Agent = p() * p({Current})&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;NettSalesQty&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;Current&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;BPRetailerGroup&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=$:: &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;BPRetailerGroup, Agent = p() * p({Previous})&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;NettSalesQty&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 16:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-States-Like-for-Like/m-p/875080#M1003178</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-11T16:49:19Z</dc:date>
    </item>
  </channel>
</rss>

