<?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() errors out in #1KPI  and Gauge in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521676#M37392</link>
    <description>&lt;P&gt;Can you try them as two separate expressions in the chart and see if you still see a single row for both the expressions?&lt;/P&gt;&lt;PRE&gt;ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Manual' and KPI_Month_End = DATE AND Ind='Y',Generic_NUM,0)
+if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT,Generic_NUM,0))&lt;/PRE&gt;&lt;PRE&gt;ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT and ORD_DEN &amp;gt;0,ORD_DEN, 1))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Dec 2018 15:24:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-17T15:24:40Z</dc:date>
    <item>
      <title>ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521655#M37386</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;using&amp;nbsp; below&amp;nbsp;expression in Charts and it works fine as expected&amp;nbsp;,&amp;nbsp; but if I use this expression in #1KPI it returns nothing . and for gauge it returns me the correct numbers but wont let me set gauge colors .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Manual' and KPI_Month_End = DATE AND Ind='Y',Generic_NUM,0)&lt;BR /&gt;+if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT,Generic_NUM,0))&lt;BR /&gt;/&lt;BR /&gt;ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT and ORD_DEN &amp;gt;0,ORD_DEN, 1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Thoughts&amp;nbsp;why &amp;nbsp;only() works differently and how I can make it work&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521655#M37386</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2021-12-23T18:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521667#M37389</link>
      <description>&lt;P&gt;Do you get multiple rows in the chart where this works? and are those values different?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521667#M37389</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-17T15:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521673#M37391</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="only().png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2303iB3963A1A2084050C/image-size/large?v=v2&amp;amp;px=999" role="button" title="only().png" alt="only().png" /&gt;&lt;/span&gt;No I get single the record .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521673#M37391</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2018-12-17T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521676#M37392</link>
      <description>&lt;P&gt;Can you try them as two separate expressions in the chart and see if you still see a single row for both the expressions?&lt;/P&gt;&lt;PRE&gt;ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Manual' and KPI_Month_End = DATE AND Ind='Y',Generic_NUM,0)
+if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT,Generic_NUM,0))&lt;/PRE&gt;&lt;PRE&gt;ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT and ORD_DEN &amp;gt;0,ORD_DEN, 1))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521676#M37392</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-17T15:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521714#M37397</link>
      <description>&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the out come . I need to show only last row in my KPI &amp;amp; Gauge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="only()1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2304iA39CBE6F58FE36F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="only()1.png" alt="only()1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521714#M37397</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2018-12-17T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521716#M37398</link>
      <description>&lt;P&gt;So, you numerator seems to be the problem here... may be you can try one of these&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Max&lt;/FONT&gt;(If([%KPI_PLANT] = 'A' and KPI_TYPE = 'Manual' and KPI_Month_End = DATE and Ind = 'Y', Generic_NUM, 0)
+If([%KPI_PLANT] = 'A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT, Generic_NUM, 0))
/
Only(If([%KPI_PLANT] = 'A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT and ORD_DEN &amp;gt; 0, ORD_DEN, 1))&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Sum&lt;/FONT&gt;(if([%KPI_PLANT]='A' and KPI_TYPE = 'Manual' and KPI_Month_End = DATE AND Ind='Y',Generic_NUM,0)
+if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT,Generic_NUM,0))
/
ONLY(if([%KPI_PLANT]='A' and KPI_TYPE = 'Actual' and DATE &amp;lt;= END_DT and DATE &amp;gt;= START_DT and ORD_DEN &amp;gt;0,ORD_DEN, 1))&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521716#M37398</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-17T16:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521728#M37399</link>
      <description>TY So Much Sunny( my virtual guru :P) . It did work , I see where I was going wrong . I tried sum before but I used in both numerator and denominator and that didn't help.&lt;BR /&gt;&lt;BR /&gt;Till Next Happy Holidays &amp;amp; a very Happy New Year!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521728#M37399</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2018-12-17T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: ONLY() errors out in #1KPI  and Gauge</title>
      <link>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521734#M37400</link>
      <description>&lt;P&gt;Thank you and same to you!!&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ONLY-errors-out-in-1KPI-and-Gauge/m-p/1521734#M37400</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-17T16:47:43Z</dc:date>
    </item>
  </channel>
</rss>

