<?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: Expression not working with Only statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703268#M1075669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Only() doesn't work, try Min() or Max().&lt;/P&gt;&lt;P&gt;In case of one value you have same result. In case of several values - it could be wrong result, but only you can understand how to handle this stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2014 08:34:39 GMT</pubDate>
    <dc:creator>SergeyMak</dc:creator>
    <dc:date>2014-07-18T08:34:39Z</dc:date>
    <item>
      <title>Expression not working with Only statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703266#M1075667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the following expression to interact with my master calender, but as the 2nd part of the expression cannot be a sum, I have tried using the Only function, but at this time I return no results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you kidnly take a look at the expression and let me know how I can get teh second part of the calculation to interact with the master calender?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Num&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FactDateNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=v_Start_Date_Outpatients)&amp;lt;=$(=v_End_Date_Outpatients)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Outpatient_Referrals.REFERRAL_TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FactDateNum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=v_Start_Date_Outpatients)&amp;lt;=$(=v_End_Date_Outpatients)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Outpatient_Referrals.Population_Stats1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/1000)),0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Helen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 07:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703266#M1075667</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2014-07-18T07:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working with Only statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703267#M1075668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard to answer without seeing your data model, but what are you expecting for the second part of expression to return if there are two or more distinct values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 08:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703267#M1075668</guid>
      <dc:creator />
      <dc:date>2014-07-18T08:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression not working with Only statement</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703268#M1075669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Only() doesn't work, try Min() or Max().&lt;/P&gt;&lt;P&gt;In case of one value you have same result. In case of several values - it could be wrong result, but only you can understand how to handle this stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 08:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-not-working-with-Only-statement/m-p/703268#M1075669</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-07-18T08:34:39Z</dc:date>
    </item>
  </channel>
</rss>

