<?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: Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024220#M933845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this?&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;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense]=2016, &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([Expense]*Factors)/[Factors3]&lt;/STRONG&gt;, &lt;STRONG&gt;sum([ Expense]*Factors)&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What issue you are facing??&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Are you getting any error as expression looks okay?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 05:49:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-25T05:49:37Z</dc:date>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024217#M933842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense]=2016, &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; (sum([Expense]*Factors)/([Factors3])),&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum([ Expense]*(Factors))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong in the above expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 04:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024217#M933842</guid>
      <dc:creator />
      <dc:date>2016-02-25T04:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024218#M933843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be reduce the excessive use of parenthesis to see if you have extra parenthesis in there:&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;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense]=2016,&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(Expense*Factors)/[Factors3]),&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;STRONG&gt;(sum(Expense*Factors)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 04:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024218#M933843</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-25T04:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024219#M933844</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;Check with this Expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1456376068859906 jive_text_macro" jivemacro_uid="_1456376068859906" modifiedtitle="true"&gt;
&lt;P&gt;If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 ,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;(sum({&amp;lt;[Year of Expense]={'2016'}&amp;gt;}[Expense])*Sum({&amp;lt;[Year of Expense]={'2016'}&amp;gt;}Factors))/Sum({&amp;lt;[Year of Expense]={'2016'}&amp;gt;}[Factors3]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (sum({&amp;lt;[Year of Expense]={'2016'}&amp;gt;}[Expense])*Sum({&amp;lt;[Year of Expense]={'2016'}&amp;gt;}Factors))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 04:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024219#M933844</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-25T04:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024220#M933845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this?&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;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense]=2016, &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([Expense]*Factors)/[Factors3]&lt;/STRONG&gt;, &lt;STRONG&gt;sum([ Expense]*Factors)&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What issue you are facing??&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Are you getting any error as expression looks okay?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 05:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024220#M933845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T05:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024221#M933846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavana please try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(LuCurrencyType)&amp;gt;0 and [Year Of Expense]=2016,&lt;/P&gt;&lt;P&gt;(Sum({$&amp;lt;[Year Of Expense]={'2016'}&amp;gt;Expense})*&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;[Year Of Expense]={'2016'}&amp;gt;Factors}))/&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;[Year Of Expense]={'2016'}&amp;gt;Factors3}),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Sum({$&amp;lt;[Year Of Expense]={'2016'}&amp;gt;Expense})*&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;[Year Of Expense]={'2016'}&amp;gt;Factors}))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 06:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024221#M933846</guid>
      <dc:creator />
      <dc:date>2016-02-25T06:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024222#M933847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears you have kept Factors3 out of aggregation functions, which needs to be validated through sample data. Check if it should be inside sum or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 06:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024222#M933847</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-02-25T06:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024223#M933848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;did you get any error??&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Syntax wise, it is correct.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;might be issue because of naked expression for Factors3..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try below,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense]=2016,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum([Expense]*Factors)/&lt;STRONG&gt;sum&lt;/STRONG&gt;([Factors3])),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (sum([ Expense]*(Factors))))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 06:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024223#M933848</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-02-25T06:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024224#M933849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pavana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense] = 2016,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ([Expense]*Factors)/[Factors3],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Expense]*Factors&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;----&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount(Len(Trim(LuCurrencyType3))) &amp;gt; 0 and [Year of Expense] = 2016,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ([Expense]*Factors)/[Factors3],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Expense]*Factors&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 06:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024224#M933849</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2016-02-25T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024225#M933850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Expense]*Factors)/[Factors3], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum([Expense]*Factors))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression works fine and give me the amount for all the year,where as I want to filter for current year and when I add the Year filter still it shows the amount for all the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0 and [Year of Expense]=2016 ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; sum([Expense]*Factors)/[Factors3], &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; sum([Expense]*Factors))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If I filter year from list box it will show amount for current year,but I want to do that in expression itself.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;None of the above expression is working.Not sure why.Thank to you all though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 14:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/1024225#M933850</guid>
      <dc:creator />
      <dc:date>2016-02-25T14:00:51Z</dc:date>
    </item>
  </channel>
</rss>

