<?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: Why my aggregation not working in expression in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865703#M302878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get the Sum of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;duration_sec divided by total dura&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;tion of&amp;nbsp; Month for Model Keys with outage type 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[outage_type]={1}} Aggr(Num((Sum({$&amp;lt;[outage_type]={1}&amp;gt;} duration_sec)/Num#(Interval(MonthEnd([Call_Year-Month])-MonthStart([Call_Year-Month]),'ss'))),'####.#####'),model_key))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This same expression gives desired output if we select a Month but does not gives correct value over overall trend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 04:56:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-02T04:56:01Z</dc:date>
    <item>
      <title>Why my aggregation not working in expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865701#M302876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a chart where i am showing the monthly trend .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the chart if i am clicking on any month from calendar , my expression works fine which is using aggregation to show value&lt;/P&gt;&lt;P&gt;but does not work if i clear and select year and show for all month with the same expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am using Year-Month eg. 2015-Apr as my DImension and doing aggregation on a different field &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if i am missing something&amp;nbsp; in my&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 18:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865701#M302876</guid>
      <dc:creator />
      <dc:date>2015-07-01T18:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why my aggregation not working in expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865702#M302877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 18:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865702#M302877</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-01T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why my aggregation not working in expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865703#M302878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get the Sum of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;duration_sec divided by total dura&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;tion of&amp;nbsp; Month for Model Keys with outage type 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[outage_type]={1}} Aggr(Num((Sum({$&amp;lt;[outage_type]={1}&amp;gt;} duration_sec)/Num#(Interval(MonthEnd([Call_Year-Month])-MonthStart([Call_Year-Month]),'ss'))),'####.#####'),model_key))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This same expression gives desired output if we select a Month but does not gives correct value over overall trend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 04:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865703#M302878</guid>
      <dc:creator />
      <dc:date>2015-07-02T04:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why my aggregation not working in expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865704#M302879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's your expression with the unnecessary formatting elements (Num, Interval) removed. This divides the summed durations by the number of seconds in the month range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({$&amp;lt;[outage_type]={1}&amp;gt;} duration_sec) &lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; ((MonthEnd(Max([Call_Year-Month])) - MonthStart(Min([Call_Year-Month]))) * (24*60*60))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,model_key)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you intend to divide by the number of days:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({$&amp;lt;[outage_type]={1}&amp;gt;} duration_sec) &lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; (MonthEnd(Max([Call_Year-Month])) - MonthStart(Min([Call_Year-Month])))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,model_key)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 05:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865704#M302879</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-02T05:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why my aggregation not working in expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865705#M302880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Call_Year-Month as dimension in aggr function and it worked. Thanks for suggestions &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 07:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-aggregation-not-working-in-expression-in-chart/m-p/865705#M302880</guid>
      <dc:creator />
      <dc:date>2015-07-02T07:23:47Z</dc:date>
    </item>
  </channel>
</rss>

