<?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: How can create a filter in order to scope X axis in 12 months less than selected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529259#M107663</link>
    <description>&lt;P&gt;Hi, that one doesn't have the same set analysis for&amp;nbsp;&lt;SPAN&gt;CanonicalMonthName&amp;nbsp;(or&amp;nbsp;IsFirstDayOfMonth). to retrieve data for the last 12 months you'll need to change the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The expression I posted is the one you said it works but you want&amp;nbsp;the same value for all the months, so I just added the TOTAL to the expression. Have you tested that one?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another option could be to enclose everything in an If that checks the month, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(CanonicalMonthName&amp;gt;=MonthStart(Today(),-11), [YourExpression])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe you need to have the 'else' part as 0 and hide zero values.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Sep 2025 08:39:26 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2025-09-03T08:39:26Z</dc:date>
    <item>
      <title>How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529153#M107650</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am struggling with this code.&lt;BR /&gt;Count({&lt;BR /&gt;&amp;lt;DateType={'active'},&lt;BR /&gt;CanonicalMonthName = {"$(=Date(AddMonths(Max({TrendLine}CanonicalMonthName), -12),'MMM YYYY'))"}&lt;BR /&gt;&amp;gt;} TOTAL DISTINCT person_id)&lt;BR /&gt;&lt;BR /&gt;I would like to have the same value in every single month, because I will calculate the retention rate.&lt;BR /&gt;&lt;BR /&gt;here, I have all the values but the plot show up all the months, I would like to see just -12 month than selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756807140141.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183308i09C4DB12C322BFAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756807140141.png" alt="migueldfr_23_0-1756807140141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example I can show up a plot, that works as I want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_2-1756807253076.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183310i155C4F39DF0FF0CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_2-1756807253076.png" alt="migueldfr_23_2-1756807253076.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Count({&lt;BR /&gt;&amp;lt;&lt;BR /&gt;DateType = {'active'},&lt;BR /&gt;IsFirstDayOfMonth = {1},&lt;BR /&gt;CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;} DISTINCT person_id)&lt;BR /&gt;&lt;BR /&gt;The only thing is missing is the same value for all the months.&lt;BR /&gt;&lt;BR /&gt;Thank you so much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 10:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529153#M107650</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-02T10:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529245#M107660</link>
      <description>&lt;P&gt;Hi, have you tried using TOTAL?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DateType = {'active'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IsFirstDayOfMonth = {1},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; DISTINCT person_id)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 06:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529245#M107660</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-03T06:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529258#M107662</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;In fact I am using this code, which is the one I have struggling with :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count({
&amp;lt;DateType={'active'},
CanonicalMonthName = {"$(=Date(AddMonths(Max({TrendLine}CanonicalMonthName), -12),'MMM YYYY'))"}
&amp;gt;} TOTAL DISTINCT person_id)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;this is how it looks:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756888059112.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183335i88A553B236999423/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756888059112.png" alt="migueldfr_23_0-1756888059112.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I would like to scope the bars along just 12 months, not all of them.&lt;BR /&gt;&lt;BR /&gt;Hope htis can better explain my purpose.&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 08:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529258#M107662</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-03T08:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529259#M107663</link>
      <description>&lt;P&gt;Hi, that one doesn't have the same set analysis for&amp;nbsp;&lt;SPAN&gt;CanonicalMonthName&amp;nbsp;(or&amp;nbsp;IsFirstDayOfMonth). to retrieve data for the last 12 months you'll need to change the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The expression I posted is the one you said it works but you want&amp;nbsp;the same value for all the months, so I just added the TOTAL to the expression. Have you tested that one?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another option could be to enclose everything in an If that checks the month, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(CanonicalMonthName&amp;gt;=MonthStart(Today(),-11), [YourExpression])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe you need to have the 'else' part as 0 and hide zero values.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 08:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529259#M107663</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-03T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529262#M107664</link>
      <description>&lt;P&gt;Yes, you are right.&lt;BR /&gt;I totally forgot to see the&amp;nbsp;&lt;SPAN&gt;IsFirstDayOfMonth filter.&lt;BR /&gt;With the expression you posted, this is what show up :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756889282461.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183337iC704DA3A68B58EAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756889282461.png" alt="migueldfr_23_0-1756889282461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 08:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529262#M107664</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-03T08:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529265#M107665</link>
      <description>&lt;P&gt;Ok, that looks like the &lt;SPAN&gt;CanonicalMonthName filter is not working, In tour first post you said that worked, just tjat it doens't shows the same value for all months, so if you recreted that same chart, cehck that it filters the last 12 months, then add the TOTAL to the expression... it still filters 12 months or just by adding the total it shows all the months?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, have you tested the If() option I posted before?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 08:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529265#M107665</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-03T08:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529273#M107666</link>
      <description>&lt;P&gt;When I use this expression:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Count({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DateType = {'active'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IsFirstDayOfMonth = {1},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;STRONG&gt;without TOTAL&lt;/STRONG&gt; DISTINCT person_id)&lt;BR /&gt;&lt;BR /&gt;CanonicalMonth range is working well, because is 12 months in X axis.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756889884284.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183338i72CDFAF822264A94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756889884284.png" alt="migueldfr_23_0-1756889884284.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the other hand, when I use this code&lt;BR /&gt;&lt;BR /&gt;Count({&lt;BR /&gt;&amp;lt;&lt;BR /&gt;DateType = {'active'},&lt;BR /&gt;IsFirstDayOfMonth = {1},&lt;BR /&gt;CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;} &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; DISTINCT person_id)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_1-1756889926640.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183339i64281A328B5AE671/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_1-1756889926640.png" alt="migueldfr_23_1-1756889926640.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;So, it is the same code with or without TOTAL and the change is way different.&lt;BR /&gt;&lt;BR /&gt;So I cannot see what is happening now.&lt;BR /&gt;&lt;BR /&gt;if I use&amp;nbsp; if() clausure this is the trigger, having selected JUN 2025:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(CanonicalMonthName&amp;gt;=MonthStart(Today(),-11), 
Count({ &amp;lt; DateType = {'active'}, 
	IsFirstDayOfMonth = {1}, 
    CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"} &amp;gt; } 
TOTAL DISTINCT person_id))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_2-1756890111520.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183340i0585B1A63D132724/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_2-1756890111520.png" alt="migueldfr_23_2-1756890111520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 09:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529273#M107666</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-03T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529276#M107667</link>
      <description>&lt;P&gt;Ops, I used Today() instead of the selected month, maybe:&lt;/P&gt;&lt;P&gt;If(CanonicalMonthName&amp;gt;=MonthStart(Max({TrendLine} CanonicalMonthName),-11) and CanonicalMonthName&amp;lt;=Max({TrendLine} CanonicalMonthName, ...)&lt;/P&gt;&lt;P&gt;Or another option could be using a calculated dimension as:&lt;/P&gt;&lt;P&gt;Aggr(If(CanonicalMonthName&amp;gt;=MonthStart(Max({TrendLine} CanonicalMonthName),-11) and CanonicalMonthName&amp;lt;=Max({TrendLine} CanonicalMonthName),&amp;nbsp;CanonicalMonthName)&lt;/P&gt;&lt;P&gt;and unchecking the option to show null values on dimension.&lt;/P&gt;&lt;P&gt;I don't know about the state&amp;nbsp;{TrendLine}, or the data behind, maybe it needs some adjustments to return the expected values, you can create a table with&amp;nbsp;CanonicalMonthName as dimension and "If(CanonicalMonthName&amp;gt;=MonthStart(Max({TrendLine} CanonicalMonthName),-11) and CanonicalMonthName&amp;lt;=Max({TrendLine} CanonicalMonthName, 1,0)" as expression and check if the 1 is on the expected months, and adjust until it works&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 09:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529276#M107667</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-03T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529285#M107669</link>
      <description>&lt;P&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;We use the IF with two condition:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(CanonicalMonthName&amp;gt;=MonthStart(Max({TrendLine} CanonicalMonthName),-11) and CanonicalMonthName&amp;lt;=Max({TrendLine} CanonicalMonthName),
Count({ &amp;lt; DateType = {'active'}, 
	IsFirstDayOfMonth = {1}, 
    CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"} &amp;gt; } 
TOTAL DISTINCT person_id))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756892840826.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183344iC101DE6AE39470B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756892840826.png" alt="migueldfr_23_0-1756892840826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And TrendLine state is just a filter with this box filter in order to do not mix with another sheets.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_1-1756892917971.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183345i1D5B8B0B32F36A07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_1-1756892917971.png" alt="migueldfr_23_1-1756892917971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I can, I would like to avoid more table , because this reporte has a plenty of tables, but if just if we can avoid it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 09:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529285#M107669</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-03T09:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529287#M107670</link>
      <description>&lt;P&gt;Can you upload a sample with some dummy data so I can make some tests?&lt;/P&gt;&lt;P&gt;As said in my previous post:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;maybe it needs some adjustments to return the expected values, you can create a table with&amp;nbsp;CanonicalMonthName as dimension and "If(CanonicalMonthName&amp;gt;=MonthStart(Max({TrendLine} CanonicalMonthName),-11) and CanonicalMonthName&amp;lt;=Max({TrendLine} CanonicalMonthName, 1,0)" as expression and check if the 1 is on the expected months, and adjust until it works&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 09:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529287#M107670</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-03T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529311#M107673</link>
      <description>&lt;P&gt;Here you have&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 11:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529311#M107673</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-03T11:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529313#M107674</link>
      <description>&lt;P&gt;Hi, I added 2 charts, one using the condition on expression, and another using the calculated dimension.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 11:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529313#M107674</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-03T11:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529332#M107679</link>
      <description>&lt;P&gt;Thank you a lot!&lt;BR /&gt;&lt;BR /&gt;Is working, but I would like to have the value of the month select -12 months.&lt;BR /&gt;&lt;BR /&gt;So, I select Jun 2025, I would like to have as repeat value Jun 2024, I am working on it also&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 13:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529332#M107679</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-03T13:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529426#M107688</link>
      <description>&lt;P&gt;Hi, just set 12 (or the value you want) to the addmonths or the Monthstart function&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 06:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529426#M107688</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-04T06:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529473#M107698</link>
      <description>&lt;P&gt;Hi, what do you mean ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;Count({ &amp;lt; DateType = {'active'},&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IsFirstDayOfMonth = {1},&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=max({TrendLine}CanonicalMonthName))"} &amp;gt; }&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TOTAL DISTINCT person_id)&lt;BR /&gt;&lt;BR /&gt;Now with this expression, if I select Jun 2025, the bar chart bring up the number of Jun 2025, and not Jun 2024 that it is the one I want.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Sep 2025 09:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529473#M107698</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-04T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529475#M107699</link>
      <description>&lt;P&gt;HI, I've tested and setting '12' it shows Jun-24&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin1_0-1756977861464.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183389i04371D7DA393A336/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin1_0-1756977861464.png" alt="rubenmarin1_0-1756977861464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 09:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529475#M107699</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-04T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529480#M107700</link>
      <description>&lt;P&gt;But I gues this value is from Jun 2024.&lt;BR /&gt;In my example when I select in this case that it is more near to Sep 2025 and it show up the value of this month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756978178235.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183392iCA6AD9FB8275AAAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756978178235.png" alt="migueldfr_23_0-1756978178235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 09:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529480#M107700</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-04T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529519#M107705</link>
      <description>&lt;P&gt;This is what solved my issue finally.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1-

((Count({
       &amp;lt;DateType={'active'}, IsFirstDayOfMonth={1} &amp;gt;}
DISTINCT person_id)

- 

Count({ &amp;lt; DateType = {'active'}, 
	IsFirstDayOfMonth = {1}, 
    CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=addmonths(Monthend(max({TrendLine}CanonicalMonthName)),-12))"} &amp;gt; } 
TOTAL DISTINCT person_id))  

/

Count({ &amp;lt; DateType = {'active'}, 
	IsFirstDayOfMonth = {1}, 
    CanonicalMonthName = {"&amp;gt;=$(=addmonths(Monthstart(max({TrendLine}CanonicalMonthName)),-12))&amp;lt;=$(=addmonths(Monthend(max({TrendLine}CanonicalMonthName)),-12))"} &amp;gt; } 
TOTAL DISTINCT person_id))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_0-1756992473302.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183401i800DA93310669125/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_0-1756992473302.png" alt="migueldfr_23_0-1756992473302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I has to be line chart, but when I change the plot to line chart, this is how it show up:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="migueldfr_23_1-1756992528426.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183402i6CE72556A6B1C04F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="migueldfr_23_1-1756992528426.png" alt="migueldfr_23_1-1756992528426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I t has to be from Descent and also MonthYear and not dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope somebody can help me out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 13:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529519#M107705</guid>
      <dc:creator>migueldfr_23</dc:creator>
      <dc:date>2025-09-04T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can create a filter in order to scope X axis in 12 months less than selected</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529634#M107718</link>
      <description>&lt;P&gt;Hi, about the line chart, in x axis, disable the continuous axis.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin1_0-1757052549374.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183442i2D9A2204B04BADE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin1_0-1757052549374.png" alt="rubenmarin1_0-1757052549374.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If needed, then you can change the sort options.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin1_1-1757052624661.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183443i2FA8AA229A984A17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin1_1-1757052624661.png" alt="rubenmarin1_1-1757052624661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 06:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-create-a-filter-in-order-to-scope-X-axis-in-12-months/m-p/2529634#M107718</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-09-05T06:10:53Z</dc:date>
    </item>
  </channel>
</rss>

