<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327079#M120367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some all LensPosX values where DefectName equals a value given by variable $(Defect).&lt;/P&gt;&lt;P&gt;Disregard any selections on LensKey field (edit: but regard current selection on other fields)&lt;/P&gt;&lt;P&gt;(I would have used "LensKey=" in the set expression, but I took notice that this might work also, at least in some versions of QV). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 15:51:20 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-11-17T15:51:20Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327078#M120366</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;Can anyone explain what the below expression means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {$&amp;lt;DefectName={$(Defect)},LensKey&amp;gt;} LensPosX )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat &lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿Sum( {$&amp;lt;DefectName={$(Defect)},LensKey&amp;gt;} LensPosX )Sum( {$&amp;lt;DefectName={$(Defect)},LensKey&amp;gt;} LensPosX )&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 15:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327078#M120366</guid>
      <dc:creator />
      <dc:date>2011-11-17T15:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327079#M120367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some all LensPosX values where DefectName equals a value given by variable $(Defect).&lt;/P&gt;&lt;P&gt;Disregard any selections on LensKey field (edit: but regard current selection on other fields)&lt;/P&gt;&lt;P&gt;(I would have used "LensKey=" in the set expression, but I took notice that this might work also, at least in some versions of QV). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 15:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327079#M120367</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-17T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327080#M120368</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;What i am trying is to get Sum of LensPosX i.e;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum of LensPosX based on DefectName equals to $(Defect) and its Possible LensKey(Not all LensKey, Only Possible LensKeys).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how can i write an set analysis expression for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327080#M120368</guid>
      <dc:creator />
      <dc:date>2011-11-17T16:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327081#M120369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({$} Sales) Returns total sales within your application , disregarding selections but not the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327081#M120369</guid>
      <dc:creator />
      <dc:date>2011-11-17T16:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327082#M120370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% if I fully get your requirement, but if your both fields are somehow linked, and you set the DefectName and clear the Lenskey, this should already give you only the possible values for Lenskey, ah, maybe except those values are limited by another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it will depend on your data model, but withouf trying myself, you could think about something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {$&amp;lt;DefectName={$(Defect)},LensKey=p( {1&amp;lt;DefectName = {$(Defect)}&amp;gt;} ) &amp;gt;} LensPosX )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I explicitely select for LensKey all possible values for a selection of DefectName = $(Defect), with all other field selections disregarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/327082#M120370</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-17T16:21:42Z</dc:date>
    </item>
  </channel>
</rss>

