<?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: Formula Calculation Not being done in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922434#M75926</link>
    <description>&lt;P&gt;It would be easy to verify formulas if you can post sample data.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 05:59:01 GMT</pubDate>
    <dc:creator>GeorgePhilips23</dc:creator>
    <dc:date>2022-04-26T05:59:01Z</dc:date>
    <item>
      <title>Formula Calculation Not being done</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922262#M75913</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Greetings!&lt;/P&gt;
&lt;P&gt;So this time I&amp;nbsp; am facing issue with the formula which is not giving the output, instead its just displaying 0.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_0-1650902921030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77822i70A378794BF23DBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_0-1650902921030.png" alt="Akshaya_0-1650902921030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The formula that I am using here is as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_1-1650903066940.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77823i791229400A262AAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_1-1650903066940.png" alt="Akshaya_1-1650903066940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;=(((Sum({&amp;lt;REC_TYPE={InvoiceDateRec}&amp;gt;} (RAGLDA_ACCTD_AMOUNT*XRATE_CONST*RATE))/num(SUM({&amp;lt;REC_TYPE={InvoiceDateRec}&amp;gt;} ARCOST_PRIMARY_QUANTITY),'#,##0.00'))&lt;BR /&gt;-&lt;BR /&gt;&lt;STRONG&gt;Sum({&amp;lt; Modified_Date={"&amp;gt;=$(=ADDMONTHS(MAX(Modified_Date), -12))&amp;lt;=$(=MAX(Modified_Date))"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;REC_TYPE={InvoiceDateRec}&amp;gt;} (RAGLDA_ACCTD_AMOUNT*XRATE_CONST*RATE))/Sum({&amp;lt; Modified_Date={"&amp;gt;=$(=ADDMONTHS(MAX(Modified_Date), -12))&amp;lt;=$(=MAX(Modified_Date))"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;REC_TYPE={InvoiceDateRec}&amp;gt;} (ARCOST_PRIMARY_QUANTITY)))&lt;/STRONG&gt;&lt;BR /&gt;* &lt;BR /&gt;num(SUM({&amp;lt;REC_TYPE={InvoiceDateRec}&amp;gt;} ARCOST_PRIMARY_QUANTITY))) /3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overview of the formula is:&lt;/P&gt;
&lt;P&gt;Calculation:&lt;BR /&gt;(Invoice Actual(CC)/Invoice Primary UOM Quantity)-TTM price *Invoice Primary UOM Quantity/3&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;(Above formula is in this same sequence)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what is going wrong here...but all the formulas that are combined and being used for this calculation&amp;nbsp; are being calculated properly and getting output also.&lt;/P&gt;
&lt;P&gt;Say the 1st column 'TTM Price'(Please see Screenshot) is giving me the value, and formula that i have used for that is as below, and is also a part of the second column 'Estimated Impact (TTM Price)', as highlighted in the above formula.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_2-1650903450384.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77826iF0158220F9B5B702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_2-1650903450384.png" alt="Akshaya_2-1650903450384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise what i am doing wrong here.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/159137"&gt;@GeorgePhilips23&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45598"&gt;@durgesh22&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/88517"&gt;@Qlik3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou very much in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Akshaya&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 16:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922262#M75913</guid>
      <dc:creator>Akshaya</dc:creator>
      <dc:date>2022-04-25T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Calculation Not being done</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922355#M75921</link>
      <description>&lt;P&gt;HI Akshaya,&lt;/P&gt;
&lt;P&gt;Might be, due to date format&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt; Modified_Date={"&amp;gt;=$(=Date(ADDMONTHS(MAX(Modified_Date), -12)))&amp;lt;=$(=Date(MAX(Modified_Date)))"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;REC_TYPE={InvoiceDateRec}&amp;gt;} (RAGLDA_ACCTD_AMOUNT*XRATE_CONST*RATE))/Sum({&amp;lt; Modified_Date={"&amp;gt;=$(=Date(ADDMONTHS(MAX(Modified_Date), -12)))&amp;lt;=$(=Date(MAX(Modified_Date)))"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;REC_TYPE={InvoiceDateRec}&amp;gt;} (ARCOST_PRIMARY_QUANTITY)))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If not, pls post the same file..&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Modified_Date is date format or in text format?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Its blank here.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1650923349198.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77846iF63AEB7A6482E781/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1650923349198.png" alt="MayilVahanan_0-1650923349198.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 21:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922355#M75921</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-04-25T21:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Calculation Not being done</title>
      <link>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922434#M75926</link>
      <description>&lt;P&gt;It would be easy to verify formulas if you can post sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 05:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Formula-Calculation-Not-being-done/m-p/1922434#M75926</guid>
      <dc:creator>GeorgePhilips23</dc:creator>
      <dc:date>2022-04-26T05:59:01Z</dc:date>
    </item>
  </channel>
</rss>

