<?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 How can i avoid using  if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1) ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023376#M15481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;I have a Target table , it have a column "Diff1" when i use :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1)&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;it return correct % .&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;If i use below expression :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;BR /&gt;(&lt;BR /&gt;Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales/1/1000)&lt;BR /&gt;-&lt;BR /&gt;Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales_target/1/1000)&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales/1/1000))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iot return wrong only on G1 Row. it give 95% it should be 49%.&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;May i know how to make both same ?&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2016 04:53:15 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-04-13T04:53:15Z</dc:date>
    <item>
      <title>How can i avoid using  if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1) ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023376#M15481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;I have a Target table , it have a column "Diff1" when i use :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1)&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;it return correct % .&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;If i use below expression :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;BR /&gt;(&lt;BR /&gt;Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales/1/1000)&lt;BR /&gt;-&lt;BR /&gt;Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales_target/1/1000)&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales/1/1000))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iot return wrong only on G1 Row. it give 95% it should be 49%.&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;May i know how to make both same ?&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 15.924px;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 04:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023376#M15481</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-04-13T04:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can i avoid using  if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1) ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023377#M15482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my qvf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 04:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023377#M15482</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-04-13T04:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can i avoid using  if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1) ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023378#M15483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the two expressions are totally different. See if this is what you wanted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales_target/1/1000) = 0, 1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales/1/1000)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fabs(Sum({$&amp;lt;year = {$(=Max(year)-0)}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}, sales = {'*'}&amp;gt;} month))"}&amp;gt;}sales_target/1/1000)) - 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023378#M15483</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-13T10:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i avoid using  if(fabs(column(1))=0,1,column(2) / fabs(column(1))-1) ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023379#M15484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are good, thank !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-i-avoid-using-if-fabs-column-1-0-1-column-2-fabs-column/m-p/1023379#M15484</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-04-13T10:33:34Z</dc:date>
    </item>
  </channel>
</rss>

