<?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: Aggr Function with If Statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291950#M27239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is 1 dimension in my table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Sum(Aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"}&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),sum(Amount))&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Dim1&lt;/SPAN&gt;)&lt;/STRONG&gt; does not give the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 12:30:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-28T12:30:31Z</dc:date>
    <item>
      <title>Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291944#M27233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having difficulties with 1 formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfectly on a Table but when I try to put it on a KPI object, the function does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"}&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),sum(Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to solve this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Tanguy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291944#M27233</guid>
      <dc:creator />
      <dc:date>2017-03-28T10:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291945#M27234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the dimension of the straight table?&amp;nbsp; As it is working &lt;SPAN style="font-size: 10pt;"&gt;on a straight table, it is being evaluated in the context of the Dimension like &lt;/SPAN&gt;Dim1=, Dim2=&lt;SPAN style="font-size: 10pt;"&gt; etc. So in KPI &lt;/SPAN&gt;object&lt;SPAN style="font-size: 10pt;"&gt;, you might not &lt;/SPAN&gt;have&lt;SPAN style="font-size: 10pt;"&gt; that &lt;/SPAN&gt;dimension&lt;SPAN style="font-size: 10pt;"&gt;. Try putting the filter in the set analysis. you might also share a sample .qvw if possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291945#M27234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291946#M27235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your KPI object,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"}&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),sum(Amount)),&amp;lt;dimension_used_in_straight_table)&amp;gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291946#M27235</guid>
      <dc:creator>karthiksrqv</dc:creator>
      <dc:date>2017-03-28T10:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291947#M27236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have &lt;SPAN style="color: #ff0000;"&gt;Dim1&lt;/SPAN&gt; as your dimension in the chart where this is working, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"}&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),sum(Amount))&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;Dim1&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291947#M27236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T11:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291948#M27237</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;This function is giving a different result than in the table. There is only 1 dimension in My Table so I don't understand why...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291948#M27237</guid>
      <dc:creator />
      <dc:date>2017-03-28T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291949#M27238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample or post some screenshots?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 12:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291949#M27238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T12:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291950#M27239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is 1 dimension in my table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Sum(Aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"}&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),sum(Amount))&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Dim1&lt;/SPAN&gt;)&lt;/STRONG&gt; does not give the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 12:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291950#M27239</guid>
      <dc:creator />
      <dc:date>2017-03-28T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291951#M27240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157894_Capture.PNG" style="height: 98px; width: 620px;" /&gt;~&lt;/P&gt;&lt;P&gt;The function in the Graph is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FMI=&lt;/P&gt;&lt;P&gt;if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"},[MONTH FULL NAME]=&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[MONTH ORDER]={"&amp;lt;=$(vOPENBAL)"},[MONTH FULL NAME]=,STOCKITEMCODE={"&amp;lt;&amp;gt;MANUALADJ"},[CREATION DATE]={"&amp;lt;=$(=Date(Today()-360))"}&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function in the KPI is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(AGGR(if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"},[MONTH FULL NAME]=&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[MONTH ORDER]={"&amp;lt;=$(vOPENBAL)"},[MONTH FULL NAME]=,STOCKITEMCODE={"&amp;lt;&amp;gt;MANUALADJ"},[CREATION DATE]={"&amp;lt;=$(=Date(Today()-360))"}&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;,STOCKITEMCODE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 12:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291951#M27240</guid>
      <dc:creator />
      <dc:date>2017-03-28T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291952#M27241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample qvf??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291952#M27241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291953#M27242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this out&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&gt;Sum(&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="color: #ff0000;"&gt;{&amp;lt;QTYCONSUMED={"&amp;lt;0"},[MONTH FULL NAME]=&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),&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="color: #ff0000;"&gt;Sum({&amp;lt;[MONTH ORDER]={"&amp;lt;=$(vOPENBAL)"},[MONTH FULL NAME]=,STOCKITEMCODE={"&amp;lt;&amp;gt;MANUALADJ"},[CREATION DATE]={"&amp;lt;=$(=Date(Today()-360))"}&amp;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&gt;AGGR(if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"},[MONTH FULL NAME]=&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),&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&gt;Sum({&amp;lt;[MONTH ORDER]={"&amp;lt;=$(vOPENBAL)"},[MONTH FULL NAME]=,STOCKITEMCODE={"&amp;lt;&amp;gt;MANUALADJ"},[CREATION DATE]={"&amp;lt;=$(=Date(Today()-360))"}&amp;gt;}Amount))&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&gt;,STOCKITEMCODE))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291953#M27242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T13:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with If Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291954#M27243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot it really helped : &lt;/P&gt;&lt;P&gt;The correct formula was : &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; color: #ff0000;"&gt;{&amp;lt;[MONTH FULL NAME]=&lt;/STRONG&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; color: #ff0000;"&gt;&amp;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; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AGGR(if(Max({&amp;lt;QTYCONSUMED={"&amp;lt;0"},[MONTH FULL NAME]=&amp;gt;}[MONTH ORDER])&amp;gt;=(vOPENBAL-12),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({&amp;lt;[MONTH ORDER]={"&amp;lt;=$(vOPENBAL)"},[MONTH FULL NAME]=,STOCKITEMCODE={"&amp;lt;&amp;gt;MANUALADJ"},[CREATION DATE]={"&amp;lt;=$(=Date(Today()-360))"}&amp;gt;}Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;,STOCKITEMCODE))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-with-If-Statement/m-p/1291954#M27243</guid>
      <dc:creator />
      <dc:date>2017-03-28T14:07:58Z</dc:date>
    </item>
  </channel>
</rss>

