<?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 'Only' function with set analysis does not work with non-numerical fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459029#M171330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using 'only' in set analysis for dynamic functionality, it seems to work well with numerical fields but not character ones.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The classic year example from the manual displays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;Year = {$(=Only (Year))}&amp;gt;} Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works just fine as year is a numerical field.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However trying to use 'only' with a character field like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Facility -= {$(=Only(Primary_Facility))} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example I am trying to select all facilities except the primary facility.&amp;nbsp; I am aware that I can use 1-$ but this is the only field I wish use the 'inverse' ability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit confused as to why this would not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp; Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 19:03:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-14T19:03:45Z</dc:date>
    <item>
      <title>'Only' function with set analysis does not work with non-numerical fields</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459029#M171330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using 'only' in set analysis for dynamic functionality, it seems to work well with numerical fields but not character ones.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The classic year example from the manual displays:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;Year = {$(=Only (Year))}&amp;gt;} Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works just fine as year is a numerical field.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However trying to use 'only' with a character field like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Facility -= {$(=Only(Primary_Facility))} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example I am trying to select all facilities except the primary facility.&amp;nbsp; I am aware that I can use 1-$ but this is the only field I wish use the 'inverse' ability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit confused as to why this would not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp; Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 19:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459029#M171330</guid>
      <dc:creator />
      <dc:date>2013-05-14T19:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'Only' function with set analysis does not work with non-numerical fields</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459030#M171331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you actually select &lt;EM&gt;only one&lt;/EM&gt; value for Primary_Facility?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for me. See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would help if you could post a representative sample of the document you're working with. See &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290"&gt;here&lt;/A&gt; for how to create such an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 19:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459030#M171331</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-14T19:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: 'Only' function with set analysis does not work with non-numerical fields</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459031#M171332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont you need to put ' ' infront of ? due to its a string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vPrimary = only(Primary_facility)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Expression:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({$&amp;lt;Facility -= {'$(vPrimary)'} &amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 19:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459031#M171332</guid>
      <dc:creator />
      <dc:date>2013-05-14T19:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: 'Only' function with set analysis does not work with non-numerical fields</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459032#M171333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it should work without selecting one value in Primary_Facility, try this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Facility -= P(Primary_Facility) &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 20:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459032#M171333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-14T20:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'Only' function with set analysis does not work with non-numerical fields</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459033#M171334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Three years of QlikView and certified in developer and still making the rookie mistakes.&amp;nbsp; I am shame faced.&amp;nbsp; Thanks so much for your help guys, sorry for the bother.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 20:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-with-set-analysis-does-not-work-with-non-numerical/m-p/459033#M171334</guid>
      <dc:creator />
      <dc:date>2013-05-14T20:06:27Z</dc:date>
    </item>
  </channel>
</rss>

