<?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: get values in (1,3,4,....) using set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-values-in-1-3-4-using-set-analysis/m-p/346920#M128336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to get the subset from the table like selecting in Code, but where / in which context do you want to get the subset? Using set analysis will require an aggregation function, so you can indeed use only() or something else like sum(), whatever is appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you want to show the sales for customers, but limited to the subset mentioned. So create a straight table, use Customer field as dimension and as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;Code= {2,4,6,10}&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or CustomerID as dimension and as expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=only({&amp;lt;Code= {2,4,6,10}&amp;gt;} CustomerName)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is of any help, but if not, I think you need to clarify your setting and requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 21:29:57 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-05-10T21:29:57Z</dc:date>
    <item>
      <title>get values in (1,3,4,....) using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/get-values-in-1-3-4-using-set-analysis/m-p/346919#M128335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to design a Set analysis expresion in order to get a subset from a table. This table(Customer) have an attribute 'Code'. I have to get the rows IN (2,4,6, 10) for example. I guess that I have to use the =Only sentence but I am not sure. anyone of you know the answer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 20:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-values-in-1-3-4-using-set-analysis/m-p/346919#M128335</guid>
      <dc:creator />
      <dc:date>2012-05-10T20:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: get values in (1,3,4,....) using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/get-values-in-1-3-4-using-set-analysis/m-p/346920#M128336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you want to get the subset from the table like selecting in Code, but where / in which context do you want to get the subset? Using set analysis will require an aggregation function, so you can indeed use only() or something else like sum(), whatever is appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you want to show the sales for customers, but limited to the subset mentioned. So create a straight table, use Customer field as dimension and as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;Code= {2,4,6,10}&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or CustomerID as dimension and as expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=only({&amp;lt;Code= {2,4,6,10}&amp;gt;} CustomerName)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is of any help, but if not, I think you need to clarify your setting and requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 21:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-values-in-1-3-4-using-set-analysis/m-p/346920#M128336</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-10T21:29:57Z</dc:date>
    </item>
  </channel>
</rss>

