<?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 Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491440#M183646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble with the return type of the Only() function. I have the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Only(RawDescription) = Null(), 'Multiple', RawDescription)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension I'm using a product code, so the data set from which Only() is choosing is significantly cut down relative to the entire data set. It seems pretty straight forward to me - if Only() finds multiple RawDescriptions for the same product code, it should return Null() (I think?). In that case - output the string 'Multiple'. Otherwise, simply output the sole RawDescription that it found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I apply this expression, the product codes with multiple descriptions still return '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 15:25:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-17T15:25:40Z</dc:date>
    <item>
      <title>Only() function Question</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491440#M183646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble with the return type of the Only() function. I have the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Only(RawDescription) = Null(), 'Multiple', RawDescription)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension I'm using a product code, so the data set from which Only() is choosing is significantly cut down relative to the entire data set. It seems pretty straight forward to me - if Only() finds multiple RawDescriptions for the same product code, it should return Null() (I think?). In that case - output the string 'Multiple'. Otherwise, simply output the sole RawDescription that it found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I apply this expression, the product codes with multiple descriptions still return '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491440#M183646</guid>
      <dc:creator />
      <dc:date>2013-07-17T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Only() function Question</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491441#M183647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try if(isnull(only(RawDescription),'Multiple',RawDescription)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491441#M183647</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-17T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Only() function Question</title>
      <link>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491442#M183648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-function-Question/m-p/491442#M183648</guid>
      <dc:creator />
      <dc:date>2013-07-17T15:58:00Z</dc:date>
    </item>
  </channel>
</rss>

