<?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 Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35064#M5911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Have the below expression written in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(if(IsNull(YTD_Consumption_LY),0,YTD_Consumption_LY)=0,if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY))*(ADJ_CONS_YTD_LY/YTD_Consumption_LY)) as Adj_Consumption,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the value as 467K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i write the below expression in text box i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(if(IsNull(YTD_Consumption_LY),0,YTD_Consumption_LY)=0,if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY)))*(sum(ADJ_CONS_YTD_LY)/sum(YTD_Consumption_LY))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;i am gettiing the value i.e. 568K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me where i am doing wrong in my script expression..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2018 13:00:28 GMT</pubDate>
    <dc:creator>bharatkishore</dc:creator>
    <dc:date>2018-05-15T13:00:28Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35064#M5911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Have the below expression written in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(if(IsNull(YTD_Consumption_LY),0,YTD_Consumption_LY)=0,if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY))*(ADJ_CONS_YTD_LY/YTD_Consumption_LY)) as Adj_Consumption,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the value as 467K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i write the below expression in text box i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(if(IsNull(YTD_Consumption_LY),0,YTD_Consumption_LY)=0,if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY)))*(sum(ADJ_CONS_YTD_LY)/sum(YTD_Consumption_LY))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;i am gettiing the value i.e. 568K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me where i am doing wrong in my script expression..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 13:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35064#M5911</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-05-15T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35065#M5912</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;would you be able to attach sample data or sample app ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 13:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35065#M5912</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-05-15T13:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35066#M5913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;maybe the 2 sum() functions in your 2nd expression&lt;/P&gt;&lt;P&gt;if i understand, the 1st one i equivalent to a*b . if you sum, it is sum(a*b)&lt;/P&gt;&lt;P&gt;and in the 2nd, it is more sum(a)*sum(b)&lt;/P&gt;&lt;P&gt;which is mathematically different&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 13:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35066#M5913</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-15T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35067#M5914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct formula is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Cons_YTD_LY)*(sum(ADJ_CONS_YTD_LY)/sum(YTD_Consumption_LY))..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I need to represent this in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(if(IsNull(YTD_Consumption_LY),0,YTD_Consumption_LY)=0,if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull(Cons_YTD_LY),0,-Cons_YTD_LY))*(ADJ_CONS_YTD_LY/YTD_Consumption_LY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell where i am doing wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 13:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35067#M5914</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-05-15T13:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35068#M5915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the 1st one can be resumed as sum(a)*sum(b)/sum(c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you have to express your 2nd one on the same format, maybe like&lt;/P&gt;&lt;P&gt;sum(if( ........,a))*sum(if( .......,b))/sum(if( .......,c))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where if(....) is your if formulas and a,b,c, the 3 expressions you want to sum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 13:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35068#M5915</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-15T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35069#M5916</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;I am just writing a simple expression as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cons_YTD_LY*(ADJ_CONS_YTD_LY/YTD_Consumption_LY) but still the value is not matching..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know where iam doing wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 14:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35069#M5916</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-05-15T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35070#M5917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to write your if() expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(......,Cons_YTD_LY)*if(........,ADJ_CONS_YTD_LY)/if(......,YTD_Consumption_LY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unless there are the same for each member, and is this case&lt;/P&gt;&lt;P&gt;if(........,Cons_YTD_LY*(ADJ_CONS_YTD_LY/YTD_Consumption_LY))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 14:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/35070#M5917</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-15T14:38:16Z</dc:date>
    </item>
  </channel>
</rss>

