<?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: Need help in set analysis expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486094#M181644</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;Actually I need to implement this in 2nd line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Sum(TOTAL {$&amp;lt;YEAR = {$(=Max(YEAR)-1)} &amp;gt;} SALES))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;It should do the total of those records where Recurring = 1.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Manash&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 12:39:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-25T12:39:14Z</dc:date>
    <item>
      <title>Need help in set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486092#M181642</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 need help in writing specific formulae related with set analysis. I have kept attached file QlikView &amp;amp; input file as well for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a table with dimension values + sales measure + recurring measure + % mix measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recurring measure formulae = if sales for that item has happened last year (i.e. last year sale &amp;gt;0) as well as this year (i.e. this year sales &amp;gt; 0) then recurring = 1 other wise 0. this is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% Mix formulae = I need help in this. I am using below formulae&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;YEAR = {$(=Max(YEAR)-1)}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum(TOTAL {$&amp;lt;YEAR = {$(=Max(YEAR)-1)}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here we need to calculate percentage based on: last year sales value / total last year sales. But total last year sales should only come only when recurring = 1. This I am unable to implement how to put it only for recurring = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in this regard will appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486092#M181642</guid>
      <dc:creator />
      <dc:date>2013-11-25T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486093#M181643</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;Column(2) will give you the result of the column in the second postiion of the chart. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=If (Column(2)='1',&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Sum({$&amp;lt;YEAR = {$(=Max(YEAR)-1)}&amp;gt;} SALES)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;/&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Sum(TOTAL {$&amp;lt;YEAR = {$(=Max(YEAR)-1)} &amp;gt;} SALES))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486093#M181643</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2013-11-25T12:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486094#M181644</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;Actually I need to implement this in 2nd line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Sum(TOTAL {$&amp;lt;YEAR = {$(=Max(YEAR)-1)} &amp;gt;} SALES))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;It should do the total of those records where Recurring = 1.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Manash&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 12:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-set-analysis-expression/m-p/486094#M181644</guid>
      <dc:creator />
      <dc:date>2013-11-25T12:39:14Z</dc:date>
    </item>
  </channel>
</rss>

