<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only/m-p/923769#M979042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide an example for set analysis case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, whenever we get a scenario where we cannot use any aggregate function like sum, count whereas we need to use set analysis... in that case we can use only... am i right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 04:29:58 GMT</pubDate>
    <dc:creator>raju_salmon</dc:creator>
    <dc:date>2015-08-14T04:29:58Z</dc:date>
    <item>
      <title>Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923764#M979037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Please give an example for only(&lt;/SPAN&gt;&lt;SPAN class="italic;"&gt;expression &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;). I did not understand. Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 03:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923764#M979037</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-14T03:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923765#M979038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;Hie..&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MCDropDownHead_syntax_0"&gt;&lt;A class="MCDropDownHotSpot_0" name="only"&gt;&lt;SPAN class="Bold"&gt;only(&lt;/SPAN&gt;&lt;SPAN class="italic;"&gt;expression &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If &lt;SPAN class="italic;"&gt;expression&lt;/SPAN&gt; over a number of records, as defined by a &lt;SPAN class="Bold"&gt;group by&lt;/SPAN&gt; clause, contains only one numeric value, that value is returned. Else, NULL is returned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Example 1:&lt;/P&gt;&lt;P class="Code"&gt;Load Month, only(Price) as OnlyPriceSoldFor from abc.csv group by Month;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;Example 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: blue;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: blue;"&gt;capitalize&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: blue;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;)),'APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC','JAN','FEB','MAR')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;Hope this will helps you to understand only Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;Mohammad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 03:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923765#M979038</guid>
      <dc:creator>mohammadkhatimi</dc:creator>
      <dc:date>2015-08-14T03:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923766#M979039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully this will give some clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim1, Dim2, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, India, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, India, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, USA, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a text box with the expression &lt;STRONG&gt;=Only(Dim2)&lt;/STRONG&gt; with no selection, I will see '&lt;STRONG&gt;-&lt;/STRONG&gt;' because Dim2 has two values (India and USA).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96045_Capture.PNG" style="height: auto;" /&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select one of them, I will see that name in there. For example when I select India I will see India in the text box object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/96046_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, basically when there is only one available value to display, you can use Only() function. Alternatively you can get the same result by just Putting Dim2. But the benefit of using Only() function is that you can use Set analysis with the Only() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 03:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923766#M979039</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T03:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923767#M979040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/mohammadkhatimiti"&gt;mohammadkhatimiti&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not understand &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 13px;"&gt;Example 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 13px;"&gt;Please apply to second tab of attached application. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 03:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923767#M979040</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-14T03:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923768#M979041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If ur charts month(Dimension) is not in sort form at that time we will use this expression....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923768#M979041</guid>
      <dc:creator>mohammadkhatimi</dc:creator>
      <dc:date>2015-08-14T04:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923769#M979042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide an example for set analysis case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, whenever we get a scenario where we cannot use any aggregate function like sum, count whereas we need to use set analysis... in that case we can use only... am i right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923769#M979042</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2015-08-14T04:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923770#M979043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is one to one relation ship, we can use only function.&lt;/P&gt;&lt;P&gt;In simple word, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Dim1, Dim2, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;A, India, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;B, USA, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If we use Dim1 in textbox without any selection , it display null value for both&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Only(Dim1) or Dim1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If We select any value in Dim1, it display the Value in textbox.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If we need to use &lt;STRONG&gt;"Set Analysis"&lt;/STRONG&gt;, in that case we can use Only() function.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Only({&amp;lt;Dim2 = {'India'}&amp;gt;}Dim1)&amp;nbsp; display &lt;STRONG&gt;A.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923770#M979043</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-08-14T04:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923771#M979044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here have a look at the this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96053_Capture.PNG" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will see that even without making any selection, I am able to see a result. The reason is that within Dim1 = 'A' there is only one value available for Dim2 (India).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923771#M979044</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-14T04:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Only</title>
      <link>https://community.qlik.com/t5/QlikView/Only/m-p/923772#M979045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you All.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 04:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only/m-p/923772#M979045</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-14T04:59:24Z</dc:date>
    </item>
  </channel>
</rss>

