<?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 KPI For Aggregation of Measure by Month? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/KPI-For-Aggregation-of-Measure-by-Month/m-p/1601158#M44478</link>
    <description>&lt;P&gt;I'm having trouble coming up with the necessary code needed for a KPI chart. I currently have two working Master Items that I'm using in a simple table - a dimension for Year Months in the max available year and a measure for number of accounts opened each Year Month. Here's the code for each.&lt;/P&gt;&lt;P&gt;Year Month:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(left([Year Month],4) = $(vMaxYearApp), [Year Month])&lt;/LI-CODE&gt;&lt;P&gt;Opened:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=count(if([OP Account Open Date] &amp;gt;= [First Of Month], [OP Account ID]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's an example of the results in the table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.PNG" style="width: 296px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15257iD6D9EDE8508169F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'd like a single measure that combines the logic from my two master items and properly aggregates to the total for all months (circled in the image). I also need it to filter properly when a user chooses specific years and/or one or more Year Month values from a filter pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thought is that the aggr() function may come in handy here? I'm still a bit new to Qlik and that function's logic though, so I'm not sure.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 23:52:16 GMT</pubDate>
    <dc:creator>nate_ak</dc:creator>
    <dc:date>2019-07-10T23:52:16Z</dc:date>
    <item>
      <title>KPI For Aggregation of Measure by Month?</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-For-Aggregation-of-Measure-by-Month/m-p/1601158#M44478</link>
      <description>&lt;P&gt;I'm having trouble coming up with the necessary code needed for a KPI chart. I currently have two working Master Items that I'm using in a simple table - a dimension for Year Months in the max available year and a measure for number of accounts opened each Year Month. Here's the code for each.&lt;/P&gt;&lt;P&gt;Year Month:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(left([Year Month],4) = $(vMaxYearApp), [Year Month])&lt;/LI-CODE&gt;&lt;P&gt;Opened:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=count(if([OP Account Open Date] &amp;gt;= [First Of Month], [OP Account ID]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's an example of the results in the table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.PNG" style="width: 296px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15257iD6D9EDE8508169F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'd like a single measure that combines the logic from my two master items and properly aggregates to the total for all months (circled in the image). I also need it to filter properly when a user chooses specific years and/or one or more Year Month values from a filter pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thought is that the aggr() function may come in handy here? I'm still a bit new to Qlik and that function's logic though, so I'm not sure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 23:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-For-Aggregation-of-Measure-by-Month/m-p/1601158#M44478</guid>
      <dc:creator>nate_ak</dc:creator>
      <dc:date>2019-07-10T23:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: KPI For Aggregation of Measure by Month?</title>
      <link>https://community.qlik.com/t5/App-Development/KPI-For-Aggregation-of-Measure-by-Month/m-p/1603866#M44691</link>
      <description>&lt;P&gt;This should work (I think) if you have an Year field created in the script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count({&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;} If([OP Account Open Date] &amp;gt;= [First Of Month], [OP Account ID]))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/KPI-For-Aggregation-of-Measure-by-Month/m-p/1603866#M44691</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-18T17:52:56Z</dc:date>
    </item>
  </channel>
</rss>

