<?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: Need an alternative function to Only() so as to return multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319196#M843285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco, it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Apr 2017 07:40:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-14T07:40:03Z</dc:date>
    <item>
      <title>Need an alternative function to Only() so as to return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319194#M843283</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;I am facing an issue where I need to constraint the months within the Application only if we have the data present for all the dates of that respective month present in the Application.&lt;/P&gt;&lt;P&gt;I have written the following expressions but it is unable to return multiple values as Only() works returns only a single value, in case of multiple values it returns NULL. I need to display these values within a list box.&lt;BR /&gt;I need to display multiple values for the field Month_name wrt the values that we get for month_calendar.&lt;/P&gt;&lt;P&gt;The expression which I am currently using is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;STRONG&gt;only( {&amp;lt;month_calendar = P({&amp;lt;month_calendar-={$(Variable6)}&amp;gt;} month_calendar)&amp;gt;} Month_Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try the following expression as well, but was unable to make it work within the list box, where this expression works perfectly in a text box but that's not the requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Concat({&amp;lt;month_calendar=P({&amp;lt;month_calendar = {$(Variable6)}&amp;gt;}month_calendar)&amp;gt;} distinct Month_Name,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final expression that I am using is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if($(Variable1)=$(Variable2),Month_Name,(&lt;STRONG style="font-size: 13.3333px;"&gt;only( {&amp;lt;month_calendar = P({&amp;lt;month_calendar-={$(Variable6)}&amp;gt;} month_calendar)&amp;gt;} Month_Name)&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Variable 6=max(month_calendar)&lt;/P&gt;&lt;P&gt;Variable 1=date(Max(MakeDate(left(dateid,4))+(right(dateid,3)-1)),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;Variable 2=(date(MonthEnd(max(Date)),'DD/MM/YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the condition is not met, this expression returns NULL, that is the issue.&lt;BR /&gt;Please suggest an alternative to fix this challenge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319194#M843283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need an alternative function to Only() so as to return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319195#M843284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For list box, try like:&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;EM&gt;=&lt;STRONG&gt;Aggr&lt;/STRONG&gt;(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;only( {&amp;lt;month_calendar = P({&amp;lt;month_calendar-={$(Variable6)}&amp;gt;} month_calendar)&amp;gt;} Month_Name) &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;, Month_Name)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 07:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319195#M843284</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-04-14T07:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need an alternative function to Only() so as to return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319196#M843285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco, it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 07:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-an-alternative-function-to-Only-so-as-to-return-multiple/m-p/1319196#M843285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-14T07:40:03Z</dc:date>
    </item>
  </channel>
</rss>

