<?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 working in object but not when in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65565#M781365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Hi Young,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Can yo add sample application here? This help's to understand the problem easily.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;STRONG&gt;Venkata Sreekanth&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2018 15:35:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-21T15:35:01Z</dc:date>
    <item>
      <title>Expression working in object but not when in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65564#M781364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, below is quite a complex expression that basically works out if two measure are increasing and if so does the calculation. It is using Max Year and Max Year -1 as I want to compare to previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Sum(Aggr(Avg({&amp;lt;YEARCALC={"$(=Max(YEARCALC))"}&amp;gt;}[Number attended]),EventID,PREVINSTNAME)) &amp;gt; Sum(Aggr(Avg({&amp;lt;YEARCALC={"$(=Max(YEARCALC)-1)"}&amp;gt;}[Number attended]),EventID,PREVINSTNAME)) AND &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(Sum(Aggr(Avg({$&amp;lt;Enrolled={1},YEARCALC={"$(=Max(YEARCALC))"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY)) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum(Aggr(Avg({$&amp;lt;YEARCALC={"$(=Max(YEARCALC))"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY))) - (Sum(Aggr(Avg({$&amp;lt;Enrolled={1},YEARCALC={"$(=Max(YEARCALC)-1)"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY)) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum(Aggr(Avg({$&amp;lt;YEARCALC={"$(=Max(YEARCALC)-1)"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY))) &amp;gt; 0,(Sum(Aggr(Avg({$&amp;lt;Enrolled={1},YEARCALC={"$(=Max(YEARCALC))"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY)) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum(Aggr(Avg({$&amp;lt;YEARCALC={"$(=Max(YEARCALC))"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY))) - (Sum(Aggr(Avg({$&amp;lt;Enrolled={1},YEARCALC={"$(=Max(YEARCALC)-1)"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY)) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sum(Aggr(Avg({$&amp;lt;YEARCALC={"$(=Max(YEARCALC)-1)"}&amp;gt;}FPE),SUBJECTAREA,INSTANCEKEY))),'')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I add to Table as below, it comes back blank as the end of the expression, but I know it works when ive tested it in an object. It is something to do with having Year as a dimension but i'm not sure what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEARCALC&amp;nbsp;&amp;nbsp; Example A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression Above&lt;/P&gt;&lt;P&gt;2013/14&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC &lt;/P&gt;&lt;P&gt;2014/15&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF&lt;/P&gt;&lt;P&gt;2015/16&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GHI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65564#M781364</guid>
      <dc:creator>aliyoung92</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working in object but not when in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65565#M781365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Hi Young,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;Can yo add sample application here? This help's to understand the problem easily.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;STRONG&gt;Venkata Sreekanth&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'trebuchet ms', geneva; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 15:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65565#M781365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working in object but not when in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65566#M781366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work when you remove YEAR and YEARCALC as dimensions? I think you might need to use Above() function instead of set analysis to make this work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 15:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-in-object-but-not-when-in-chart/m-p/65566#M781366</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-21T15:37:28Z</dc:date>
    </item>
  </channel>
</rss>

