<?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: Set Analysis issue with YTD calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735729#M263266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try this expression for YTD: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum ({&amp;lt;MonthName=, MonthID={"&amp;gt;=1&amp;lt;=$(=(max(MonthID)))"},[MeasureName]={'NPS','NNS','Marginal Contribution','Product Contribution','Operating Profit OP1'}&amp;gt;}[2014 Actual])/1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;What is does is disregard the selection in MonthName, so that MonthID can be set to include other months too so &amp;gt;=1 actually does something,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 13:43:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-06-24T13:43:06Z</dc:date>
    <item>
      <title>Set Analysis issue with YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735728#M263265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first post here ! Apologies if I posted in the wrong place&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 straight tables to show MTD and YTD income statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis expression for MTD is : Sum ({&amp;lt;MonthName={$(=ONLY(MonthName))},[MeasureName]={'NPS','NNS','Marginal Contribution','Product Contribution','Operating Profit OP1'}&amp;gt;}[2014 Actual])/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis expression for YTD is : Sum ({&amp;lt;MonthID={"&amp;gt;=1&amp;lt;=$(=(max(MonthID)))"},[MeasureName]={'NPS','NNS','Marginal Contribution','Product Contribution','Operating Profit OP1'}&amp;gt;}[2014 Actual])/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName is Jan, Feb, Mar, etc (user can select via a ListBox&lt;/P&gt;&lt;P&gt;MonthID is 1,2,3,etc&lt;/P&gt;&lt;P&gt;These are both created via Load Inline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is both MTD and YTD numbers are the same. Can anyone help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&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="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;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735728#M263265</guid>
      <dc:creator />
      <dc:date>2014-06-24T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis issue with YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735729#M263266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try this expression for YTD: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum ({&amp;lt;MonthName=, MonthID={"&amp;gt;=1&amp;lt;=$(=(max(MonthID)))"},[MeasureName]={'NPS','NNS','Marginal Contribution','Product Contribution','Operating Profit OP1'}&amp;gt;}[2014 Actual])/1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;What is does is disregard the selection in MonthName, so that MonthID can be set to include other months too so &amp;gt;=1 actually does something,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735729#M263266</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-24T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis issue with YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735730#M263267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for that! It worked!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question. Below is the result. The MeasureName is a dimension and the 2014 Actual/2014 Plan/ 2013 actuals are the fact table. How do I get a row at the bottom to calculate 'Profit %' which is the 'NPS' divided by 'Operating Profit' ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="614"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="172"&gt;MeasureName&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="94"&gt;2014 Actual&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="80"&gt;2014 Plan&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="93"&gt;Var : Act vs Plan&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="88"&gt;Var %&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="87"&gt;2013 Actual&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;NPS&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$68,259&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$72,199&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;-$3,940&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0.94228581&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$58,617&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;NNS&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$58,871&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$63,173&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;-$4,302&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0.92692407&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$50,238&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Marginal&lt;BR /&gt;&amp;nbsp; Contribution&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$25,812&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$28,855&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;-$3,043&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0.88210098&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$22,236&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Product&lt;BR /&gt;&amp;nbsp; Contribution&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$16,866&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$17,651&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;-$785&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0.95344995&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$12,835&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Operating&lt;BR /&gt;&amp;nbsp; Profit OP1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$9,446&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$10,285&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;-$839&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0.91118349&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;$5,682&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735730#M263267</guid>
      <dc:creator />
      <dc:date>2014-06-24T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis issue with YTD calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735731#M263268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's somewhat tricky. Perhaps this blog post can help: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/10/how-intervalmatch-solved-my-profit-and-loss-dilemma" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;How IntervalMatch Solved My Profit and Loss Dilemma&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-issue-with-YTD-calculation/m-p/735731#M263268</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-24T14:17:27Z</dc:date>
    </item>
  </channel>
</rss>

