<?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: Only() expression does not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957369#M328831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({$ &amp;lt;APPLICATION_NAME=,APPLICATION_SHORT_NAME={"=trim(Mid(RoleName,index(RoleName,chr(32),-1)+1))"}&amp;gt;} APPLICATION_NAME)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Nov 2015 10:09:00 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-11-08T10:09:00Z</dc:date>
    <item>
      <title>Only() expression does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957367#M328829</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;In a chart I have the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RoleName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RoleName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(32),-1)+1)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;that returns the correct result (e.g. PER). I want to use this result in only() function to return the result PERSONEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({$ &amp;lt;APPLICATION_NAME=,APPLICATION_SHORT_NAME={"=$(=trim(Mid(RoleName,index(RoleName,chr(32),-1)+1)))"}&amp;gt;} APPLICATION_NAME)&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried different variations but they all retun --&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2015 18:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957367#M328829</guid>
      <dc:creator>lsdrolias</dc:creator>
      <dc:date>2015-11-07T18:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Only() expression does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957368#M328830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this without the = sign after the dollar sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Only({$ &amp;lt;APPLICATION_NAME=,APPLICATION_SHORT_NAME={"$(=Trim(Mid(RoleName, Index(RoleName, Chr(32), -1) +1)))"}&amp;gt;} APPLICATION_NAME)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: The idea is you want to do this -&amp;gt; &lt;STRONG&gt;APPLICATION_SHORT_NAME = {"PER"} &lt;/STRONG&gt;and not &lt;STRONG&gt;APPLICATION_SHORT_NAME = {"=PER"}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2015 10:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957368#M328830</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-08T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Only() expression does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957369#M328831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({$ &amp;lt;APPLICATION_NAME=,APPLICATION_SHORT_NAME={"=trim(Mid(RoleName,index(RoleName,chr(32),-1)+1))"}&amp;gt;} APPLICATION_NAME)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2015 10:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957369#M328831</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-08T10:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Only() expression does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957370#M328832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your suggestions that I am sure would make the expression work. However I discovered that the main reason the expression could not work is that the field RoleName included in the set filter is a dimension that is not recalculated within the chart. Therefore I found a workaround inside the script. Thanks any way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 08:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957370#M328832</guid>
      <dc:creator>lsdrolias</dc:creator>
      <dc:date>2015-11-09T08:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Only() expression does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957371#M328833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for us. As long as you are able to resolve your issue, we are happy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 14:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-expression-does-not-work/m-p/957371#M328833</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-09T14:43:29Z</dc:date>
    </item>
  </channel>
</rss>

