<?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 not ignoring selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112466#M763774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damn! i completely forgot about the first sum!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2018 16:42:06 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2018-07-20T16:42:06Z</dc:date>
    <item>
      <title>Expression not ignoring selections</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112464#M763772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression in the attached QVW that even though in my set analysis i am telling it to ignore selections on Year and Period it doesnt seem to be ignoring them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same expression in the chart and text box and both are doing the same thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(&lt;/P&gt;&lt;P&gt;(((sum({&amp;lt;$(vDatePeriod),Currency={'USD'},ForecastVersion=, Manufactured_Flag={0}&amp;gt;}[Latest Cost])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(1+sum({&amp;lt;$(vDatePeriod),ForecastVersion=,Currency={'USD'}&amp;gt;}[Freight %])+sum({&amp;lt;$(vDatePeriod),ForecastVersion=,Currency={'USD'}&amp;gt;}[Duty %])+sum({&amp;lt;$(vDatePeriod),ForecastVersion=,Currency={'USD'}&amp;gt;}[Demurrage %])))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;sum({&amp;lt;$(vDatePeriod),ForecastVersion=, Currency={'USD'},Manufactured_Flag={0}&amp;gt;} [Sales Volume]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;((((sum({&amp;lt;$(vDatePeriod),ForecastVersion=, Currency={'USD'},Manufactured_Flag={0}&amp;gt;}[Latest Cost])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(1+sum({&amp;lt;$(vDatePeriod),ForecastVersion=, Currency={'USD'}&amp;gt;}[Freight %])+sum({&amp;lt;$(vDatePeriod),ForecastVersion=, Currency={'USD'}&amp;gt;}[Duty %])+sum({&amp;lt;$(vDatePeriod),ForecastVersion=, Currency={'USD'}&amp;gt;}[Demurrage %])))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;sum({&amp;lt;$(vDatePeriod),ForecastVersion=, Currency={'USD'},Manufactured_Flag={0}&amp;gt;} [Sales Volume]))))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(1.3&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;only({&amp;lt;$(vDatePeriod),ForecastVersion=&amp;gt;}FX_Rate))),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubCat, SubCat1, Item,[Customer Name],Sales_Counter))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable vDatePeriod contains the Year=,Period= and ive also tried it without using the variable but i get the same result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you clear all selections, you will see that the value in the chart and text box is -210171, this is the correct value that i want to display when any Year and Period is selected. &lt;/P&gt;&lt;P&gt;Can anyone spot anything that i am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112464#M763772</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not ignoring selections</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112465#M763773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That first sum doesn't contain a set modifier to make it ignore selections. Try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum( {&amp;lt;Year,Period&amp;gt; } Aggr( ... etc&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 16:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112465#M763773</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-07-20T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not ignoring selections</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112466#M763774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damn! i completely forgot about the first sum!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 16:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-ignoring-selections/m-p/112466#M763774</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2018-07-20T16:42:06Z</dc:date>
    </item>
  </channel>
</rss>

