<?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 Set Analysis : operator on modified identifiers ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387493#M488645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I would like to know if something is possible through Set Analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Let's take an example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #000000;"&gt;There is a KPI for all m&lt;/SPAN&gt;onths of the last three years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;We want to display the value for each last month of each year (december 2010, december 2011, november 2012)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To make it easier, let's say that November is stored &lt;/SPAN&gt;in the variable "MyMonth"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Can I do something like : &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;sum( &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;$&amp;lt;Month=12, Year={"&amp;lt;$(=max(Year))"}&amp;gt;&lt;STRONG&gt;}&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;$&amp;lt;Month={$(MyMonth)}, Year={$(=max(Year))&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;} KPI)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More general, can I use operators this way : &lt;STRONG&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;{$&amp;lt;.....&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #339966;"&gt;{$&amp;lt;.....&amp;gt;} &lt;/SPAN&gt;KPI)&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is possible, what would be the syntax ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 18:06:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-28T18:06:21Z</dc:date>
    <item>
      <title>Set Analysis : operator on modified identifiers ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387493#M488645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I would like to know if something is possible through Set Analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Let's take an example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #000000;"&gt;There is a KPI for all m&lt;/SPAN&gt;onths of the last three years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;We want to display the value for each last month of each year (december 2010, december 2011, november 2012)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To make it easier, let's say that November is stored &lt;/SPAN&gt;in the variable "MyMonth"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Can I do something like : &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;sum( &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;$&amp;lt;Month=12, Year={"&amp;lt;$(=max(Year))"}&amp;gt;&lt;STRONG&gt;}&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;$&amp;lt;Month={$(MyMonth)}, Year={$(=max(Year))&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;} KPI)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More general, can I use operators this way : &lt;STRONG&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;{$&amp;lt;.....&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #339966;"&gt;{$&amp;lt;.....&amp;gt;} &lt;/SPAN&gt;KPI)&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is possible, what would be the syntax ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 18:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387493#M488645</guid>
      <dc:creator />
      <dc:date>2012-11-28T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis : operator on modified identifiers ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387494#M488646</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; Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year,Month as dimension..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month={'$(=Max(Month))'}&amp;gt;}KPI) as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 18:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387494#M488646</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-28T18:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis : operator on modified identifiers ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387495#M488647</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;Thanks for your proposal ! Unfortunately, this is not really what I would like to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I would like to know if it is possible to do something like &lt;STRONG&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;{$&amp;lt;.....&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;+&lt;/SPAN&gt; &lt;SPAN style="color: #339966;"&gt;{$&amp;lt;.....&amp;gt;} &lt;/SPAN&gt;KPI)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is for instance possible to do sum({1-$} KPI)... but is it possible, in this case, to &lt;SPAN style="text-decoration: underline;"&gt;modify the identifiers&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or... Let's take another example... &lt;/P&gt;&lt;P&gt;I would like to display in a graph how many customers (in the active selection) have bought red shoes and green ties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the formula would be something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({$&amp;lt;&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;red shoes definition&lt;/STRONG&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&lt;STRONG&gt;} + {$&amp;lt;&lt;/STRONG&gt;&lt;STRONG style="color: #339966;"&gt;green ties definition&lt;/STRONG&gt;&lt;STRONG&gt;&amp;gt;}Customers)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 13:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-operator-on-modified-identifiers/m-p/387495#M488647</guid>
      <dc:creator />
      <dc:date>2012-12-03T13:05:16Z</dc:date>
    </item>
  </channel>
</rss>

