<?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 modifier for multiple selections in fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356208#M1172627</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;Both expressions return 0 value of [PL Item Value], instead of 41858.8, for max([Position Date]).&lt;/P&gt;&lt;P&gt;It does not matter if [Position Date] is a year value or not. As long as the sum([PL Item Value]) is expressed by both the selections of [PL Item Name]='Revenue' and [Position Date]=max([Position Date]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even created and used a variable &lt;EM&gt;vSelectedPositionDate&lt;/EM&gt; (=if(GetSelectedCount([Position Date]), max(Year([Position Date])), Year([Position Date]))), into the expression, but it is still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I able to set any expression, if I combine the [PL Item Name] and [Position Date] into a single field [PL Date-Item Name]? The new field will be alphanumeric field type, in theory can not be filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, Jonathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 06:26:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-18T06:26:38Z</dc:date>
    <item>
      <title>Set modifier for multiple selections in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356206#M1172625</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 am new in Qlikview set analysis. I am trying to sum the [PL Item Value] by having the selections both in [PL Item Name]='Revenue' and [Position Date]=max(Year([Position Date])). However, each of the expressions below does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression has error,&lt;/P&gt;&lt;P&gt;i).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;[PL Item Name]={'Revenue'},[Position Date]={=max(year([Position Date]))}&amp;gt;}[PL Item Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this expression returns 0 value,&lt;/P&gt;&lt;P&gt;ii).&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;[PL Item Name]={'Revenue'},[Position Date]={&lt;EM&gt;$(=max(year([Position Date])))&lt;/EM&gt;}&amp;gt;}[PL Item Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a bar chart which I would like to express the summation of [PL Item Value] of [PL Item Name]='Revenue', meanwhile it is always returning the [PL Item Value] of [PL Item Name]='Revenue' of the most current Year([Position Date]).&lt;/P&gt;&lt;P&gt;Attached is the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 11:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356206#M1172625</guid>
      <dc:creator />
      <dc:date>2012-06-17T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier for multiple selections in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356207#M1172626</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;Your second expression is syntactically correct, but I am not sure that it makes sense. The expression assumesthat Is the field [Position Date] a year value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that you need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[PL Item Name]={'Revenue'},[Position Date]={'$(=Date(max([Position Date])))'}&amp;gt;} [PL Item Value])&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[PL Item Name]={'Revenue'},[Position Date]={'$(=YearStart(max([Position Date])))'}&amp;gt;} [PL Item Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 18:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356207#M1172626</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-17T18:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier for multiple selections in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356208#M1172627</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;Both expressions return 0 value of [PL Item Value], instead of 41858.8, for max([Position Date]).&lt;/P&gt;&lt;P&gt;It does not matter if [Position Date] is a year value or not. As long as the sum([PL Item Value]) is expressed by both the selections of [PL Item Name]='Revenue' and [Position Date]=max([Position Date]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even created and used a variable &lt;EM&gt;vSelectedPositionDate&lt;/EM&gt; (=if(GetSelectedCount([Position Date]), max(Year([Position Date])), Year([Position Date]))), into the expression, but it is still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I able to set any expression, if I combine the [PL Item Name] and [Position Date] into a single field [PL Date-Item Name]? The new field will be alphanumeric field type, in theory can not be filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, Jonathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 06:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356208#M1172627</guid>
      <dc:creator />
      <dc:date>2012-06-18T06:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier for multiple selections in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356209#M1172628</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;It matters because that changes how you would write the set expression. A year value is a number, not a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post your model or a sample so that we can look at it in a little more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 07:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-for-multiple-selections-in-fields/m-p/356209#M1172628</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-19T07:55:33Z</dc:date>
    </item>
  </channel>
</rss>

