<?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: Expression totals change when selecting different month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777507#M1021678</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; font-size: 13px;"&gt;SETTLEMENT_% is a naked aggregation. Qlikview actually calculates &lt;EM&gt;only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SETTLEMENT_%&lt;/SPAN&gt;)&lt;/EM&gt;. And that expression does not include the set modifiers you added to the sums. So your selections do influence the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SETTLEMENT_% that is used in the calculations. Try adding a set modifier to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;only(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SETTLEMENT_%&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;)&lt;/EM&gt; too.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 10:36:38 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-24T10:36:38Z</dc:date>
    <item>
      <title>Expression totals change when selecting different month</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777506#M1021676</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 Have a report with 3 dimensions and 4 Expressions to calculate the "nett nett" for the last four months.&lt;/P&gt;&lt;P&gt;when i choose a different month the total changes. ie Column 1 was Sep , now column 2 is Sep but total is different&lt;/P&gt;&lt;P&gt;below image is SEP as first month in Column1&lt;IMG alt="qv1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81656_qv1.jpg" style="height: 21px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i selected oct as month which moves sep to 2nd column total differs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/81657_qv2.jpg" style="height: 17px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;now when i select nov both change oct and sep. as below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv3.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/81659_qv3.jpg" style="height: 17px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;column 1 expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;MonthYear = {"$(=MaxString(MonthYear))"}&amp;gt;} Price_Lens_Total_Net)&lt;/P&gt;&lt;P&gt;+sum({&amp;lt;MonthYear = {"$(=MaxString(MonthYear))"}&amp;gt;} Price_Semi_Net)&lt;/P&gt;&lt;P&gt;+sum({&amp;lt;MonthYear = {"$(=MaxString(MonthYear))"}&amp;gt;}Price_Addons_Total_Net)&lt;/P&gt;&lt;P&gt;+sum({&amp;lt;MonthYear = {"$(=MaxString(MonthYear))"}&amp;gt;}Price_Frame_Net))* SETTLEMENT_% &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column2 expression&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-1),'MMM-YYYY'))"}&amp;gt;} Price_Lens_Total_Net)&lt;/P&gt;&lt;P&gt; +sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-1),'MMM-YYYY'))"}&amp;gt;} Price_Semi_Net)&lt;/P&gt;&lt;P&gt; +sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-1),'MMM-YYYY'))"}&amp;gt;} Price_Addons_Total_Net)&lt;/P&gt;&lt;P&gt; +sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-1),'MMM-YYYY'))"}&amp;gt;} Price_Frame_Net))* SETTLEMENT_% &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column3 expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-2),'MMM-YYYY'))"}&amp;gt;} Price_Lens_Total_Net)&lt;/P&gt;&lt;P&gt; +sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-2),'MMM-YYYY'))"}&amp;gt;} Price_Semi_Net)&lt;/P&gt;&lt;P&gt; +sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-2),'MMM-YYYY'))"}&amp;gt;} Price_Addons_Total_Net)&lt;/P&gt;&lt;P&gt; +sum({&amp;lt;Month =,MonthYear = {"$(=Date(AddMonths(Max(OrderDate),-2),'MMM-YYYY'))"}&amp;gt;} Price_Frame_Net))&lt;/P&gt;&lt;P&gt;* SETTLEMENT_% &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am multiplying the totals with the settlement discount precentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the totals mode set on sum of rows on all expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help in the right direction would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Kallie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777506#M1021676</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression totals change when selecting different month</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777507#M1021678</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; font-size: 13px;"&gt;SETTLEMENT_% is a naked aggregation. Qlikview actually calculates &lt;EM&gt;only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SETTLEMENT_%&lt;/SPAN&gt;)&lt;/EM&gt;. And that expression does not include the set modifiers you added to the sums. So your selections do influence the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SETTLEMENT_% that is used in the calculations. Try adding a set modifier to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;only(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SETTLEMENT_%&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;)&lt;/EM&gt; too.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777507#M1021678</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-24T10:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression totals change when selecting different month</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777508#M1021679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you that solves it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-totals-change-when-selecting-different-month/m-p/777508#M1021679</guid>
      <dc:creator />
      <dc:date>2015-03-24T10:53:38Z</dc:date>
    </item>
  </channel>
</rss>

