<?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: How to describe else part in Only Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115309#M368265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ONLY function will return a NULL when there is no match in your example.&lt;/P&gt;&lt;P&gt;The function does not provide a parameter to show when no match is found, but you can handle the null in multiple ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple example would be to use an IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14648712594763536" jivemacro_uid="_14648712594763536" modifiedtitle="true"&gt;
&lt;P&gt;If(ISNULL(Only({&amp;lt;empfullname={'$(mfullname'}&amp;gt;} [emp name])),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'No EMP name Found',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Only({&amp;lt;empfullname={'$(mfullname'}&amp;gt;} [emp name])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hopw this is what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 12:42:46 GMT</pubDate>
    <dc:creator>novolouy</dc:creator>
    <dc:date>2016-06-02T12:42:46Z</dc:date>
    <item>
      <title>How to describe else part in Only Function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115306#M368262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please share your ideas of below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Only({&amp;lt;empfullname={'$(mfullname)'}&amp;gt;} [emp name])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in above code i want to &lt;STRONG&gt;display else part&lt;/STRONG&gt;&amp;nbsp; --else part is &lt;STRONG&gt;'No EMP name Found'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means&amp;nbsp; when comparing the &lt;SPAN style="font-size: 13.3333px;"&gt;empfullname to &lt;SPAN style="font-size: 13.3333px;"&gt;$(mfullname) .&lt;/SPAN&gt;&lt;/SPAN&gt;if both texts are &lt;STRONG&gt;matching&lt;/STRONG&gt; then it will display &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[emp name]-&lt;/STRONG&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if both &lt;SPAN style="font-size: 13.3333px;"&gt;text &lt;/SPAN&gt; are &lt;STRONG&gt;not matching&lt;/STRONG&gt; then i want to show &lt;SPAN style="font-size: 13.3333px;"&gt;'No EMP name Found'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;please suggest me &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;How can i implement this functionality in Only&amp;nbsp; function &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115306#M368262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-02T12:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to describe else part in Only Function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115307#M368263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: arial, helvetica, sans-serif;"&gt;You can try, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;EM style="font-size: 10pt;"&gt;If( Not Isnull(&lt;SPAN style="color: #3d3d3d;"&gt;Only({&amp;lt;empfullname={'$(mfullname)'}&amp;gt;} [emp name])), &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 10pt;"&gt;Only({&amp;lt;empfullname={'$(mfullname)'}&amp;gt;} [emp name]),&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;'No EMP Name found')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115307#M368263</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-06-02T12:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to describe else part in Only Function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115308#M368264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If( &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Len(Only({&amp;lt;empfullname={'$(mfullname)'}&amp;gt;} [emp name])), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Only({&amp;lt;empfullname={'$(mfullname)'}&amp;gt;} [emp name]),&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'no EMP name Found')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115308#M368264</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-02T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to describe else part in Only Function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115309#M368265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ONLY function will return a NULL when there is no match in your example.&lt;/P&gt;&lt;P&gt;The function does not provide a parameter to show when no match is found, but you can handle the null in multiple ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple example would be to use an IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14648712594763536" jivemacro_uid="_14648712594763536" modifiedtitle="true"&gt;
&lt;P&gt;If(ISNULL(Only({&amp;lt;empfullname={'$(mfullname'}&amp;gt;} [emp name])),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'No EMP name Found',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Only({&amp;lt;empfullname={'$(mfullname'}&amp;gt;} [emp name])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hopw this is what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115309#M368265</guid>
      <dc:creator>novolouy</dc:creator>
      <dc:date>2016-06-02T12:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to describe else part in Only Function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115310#M368266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hay,&lt;/P&gt;&lt;P&gt;Again&lt;/P&gt;&lt;P&gt;Thanks &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 14:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-describe-else-part-in-Only-Function/m-p/1115310#M368266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-02T14:01:18Z</dc:date>
    </item>
  </channel>
</rss>

