<?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: Chart Showing Last 12 Months based on Max Date filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660872#M49598</link>
    <description>&lt;P&gt;Unfortunately, I am not able to post the data to the internet.&amp;nbsp; &amp;nbsp;I just need the total count of the "LeadTypes" for each month for 12 months based on the max date selected by the user in the filter pane.&lt;/P&gt;&lt;P&gt;Here is the format of the data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LeadDate, LeadType&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'MM/DD/YYYY',&amp;nbsp; NEWSLETTER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Lead Types&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NEWSLETTER&lt;/P&gt;&lt;P&gt;CATALOG&lt;/P&gt;&lt;P&gt;CONTACT&lt;/P&gt;&lt;P&gt;SAMPLE&lt;/P&gt;&lt;P&gt;DOWNLOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 19:26:30 GMT</pubDate>
    <dc:creator>millsaz69</dc:creator>
    <dc:date>2019-12-26T19:26:30Z</dc:date>
    <item>
      <title>Chart Showing Last 12 Months based on Max Date filter</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660856#M49596</link>
      <description>&lt;P&gt;I am trying to build a line chart showing each month for the last 12 months count of the "LeadType" value.&amp;nbsp; When the user selects the dates from the filter pane, the Max(Date) would be used to determine the last 12 months.&amp;nbsp;&amp;nbsp;I've found so many different ways people have done similar calculations, but none seem to work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my last attempt before posting the question:&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;=[Date.autoCalendar.MonthYear]&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;MonthsAgo={"&amp;gt;=0&amp;lt;12"}&amp;gt;} LeadType)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 17:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660856#M49596</guid>
      <dc:creator>millsaz69</dc:creator>
      <dc:date>2019-12-26T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Showing Last 12 Months based on Max Date filter</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660869#M49597</link>
      <description>&lt;P&gt;can you share a sample data ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 19:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660869#M49597</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-26T19:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Showing Last 12 Months based on Max Date filter</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660872#M49598</link>
      <description>&lt;P&gt;Unfortunately, I am not able to post the data to the internet.&amp;nbsp; &amp;nbsp;I just need the total count of the "LeadTypes" for each month for 12 months based on the max date selected by the user in the filter pane.&lt;/P&gt;&lt;P&gt;Here is the format of the data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LeadDate, LeadType&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'MM/DD/YYYY',&amp;nbsp; NEWSLETTER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Lead Types&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NEWSLETTER&lt;/P&gt;&lt;P&gt;CATALOG&lt;/P&gt;&lt;P&gt;CONTACT&lt;/P&gt;&lt;P&gt;SAMPLE&lt;/P&gt;&lt;P&gt;DOWNLOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 19:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660872#M49598</guid>
      <dc:creator>millsaz69</dc:creator>
      <dc:date>2019-12-26T19:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Showing Last 12 Months based on Max Date filter</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660877#M49599</link>
      <description>&lt;P&gt;This is the current bar chart showing the filtered months.&amp;nbsp; I just need it to show prior 12 months from max date (Dec 2019).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample.png" style="width: 921px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26063i89C61C0285C02E12/image-size/large?v=v2&amp;amp;px=999" role="button" title="sample.png" alt="sample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 19:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660877#M49599</guid>
      <dc:creator>millsaz69</dc:creator>
      <dc:date>2019-12-26T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Showing Last 12 Months based on Max Date filter</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660888#M49600</link>
      <description>&lt;P&gt;I have tried this expression and when I select a date in the filter pane it filters the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count({&amp;lt;vMaxDate = {"$(='&amp;gt;=' &amp;amp; Date(AddYears(vMaxDate, -12), 'MM/DD/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(vMaxDate, 'MM/DD/YYYY'))"}&amp;gt;}LeadType)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 20:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660888#M49600</guid>
      <dc:creator>millsaz69</dc:creator>
      <dc:date>2019-12-26T20:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Showing Last 12 Months based on Max Date filter</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660896#M49602</link>
      <description>&lt;P&gt;sample data is necessary to understand. But that's okay.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Are you only looking for the last 12 months counts, I suggest you to compare the dates and not the months.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is this formula okay ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=Count({$&amp;lt;DateAgo= {"&amp;gt;=$(=AddMonths(Date(Today(),'MM/DD/YYYY'),-12))"}&amp;gt;} LeadType)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Dec 2019 21:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Showing-Last-12-Months-based-on-Max-Date-filter/m-p/1660896#M49602</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-26T21:39:59Z</dc:date>
    </item>
  </channel>
</rss>

