<?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: Custom Filter - Date Range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2542195#M109398</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/320366"&gt;@BIAKS&lt;/a&gt;&amp;nbsp;This was perfect, Thank you so much. Would it be possible to show Nov 2024 first and then Nov 2025?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2026 19:30:28 GMT</pubDate>
    <dc:creator>A_PR</dc:creator>
    <dc:date>2026-02-02T19:30:28Z</dc:date>
    <item>
      <title>Custom Filter - Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2539959#M109136</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1000232556.jpg" style="width: 1743px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185981i945E94739E7E1488/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1000232556.jpg" alt="1000232556.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Hello All,&lt;/P&gt;&lt;P&gt;Please help me create a graph like this in Qliksense. I want the user to select the month in the filter. Eg. If Nov 2025 is selected.. it should show data from year start to month selected. Jan- Oct 2025. And a partition like line and the month selected from previous year and current year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;PA&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 21:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2539959#M109136</guid>
      <dc:creator>A_PR</dc:creator>
      <dc:date>2025-12-29T21:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Filter - Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2539985#M109137</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BIAKS_0-1767083704891.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185988i6870ABFC451D4EB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BIAKS_0-1767083704891.png" alt="BIAKS_0-1767083704891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can do something like this by using dimension reference line and set analysis.&lt;BR /&gt;If you have a master calendar you can add these dimensions:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Date(monthstart(TempDate),'MMM-YYYY') as MonthYear,
Date(monthstart(AddYears(TempDate,-1)),'MMM-YYYY') as LastMonthYear,
Date(YearStart(TempDate),'MMM-YYYY') as YearStartMonth,&lt;/LI-CODE&gt;&lt;P&gt;for the expression you can do something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Sum({&amp;lt;MonthYear={"&amp;gt;=$(=YearStartMonth)&amp;lt;=$(=GetFieldSelections(MonthYear))"}&amp;gt;+&amp;lt;MonthYear={"$(=LastMonthYear)"}&amp;gt;} Expression1)&lt;/LI-CODE&gt;&lt;P&gt;you can see that we added the previous year's same month with:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;+&amp;lt;MonthYear={"$(=LastMonthYear)"}&lt;/LI-CODE&gt;&lt;P&gt;for the sorting, use sort by expression on MonthYear and write this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Match(Only({1} MonthYear),'$(=MonthYear)', '$(=LastMonthYear)', MonthYear)&lt;/LI-CODE&gt;&lt;P&gt;for the coloring, I used this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;If(Max({1} CalendarDate)&amp;gt;YearStart(Today()),Blue(),Green())&lt;/LI-CODE&gt;&lt;P&gt;and finally for the dimension reference line, you can use the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=MonthStart(Max({&amp;lt;MonthYear={"&amp;lt;=$(=GetFieldSelections(MonthYear))"}&amp;gt;} CalendarDate))&lt;/LI-CODE&gt;&lt;P&gt;If you cant see anything, try selecting a "MonthYear" first.&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2025 08:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2539985#M109137</guid>
      <dc:creator>BIAKS</dc:creator>
      <dc:date>2025-12-30T08:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Filter - Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2542195#M109398</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/320366"&gt;@BIAKS&lt;/a&gt;&amp;nbsp;This was perfect, Thank you so much. Would it be possible to show Nov 2024 first and then Nov 2025?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 19:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2542195#M109398</guid>
      <dc:creator>A_PR</dc:creator>
      <dc:date>2026-02-02T19:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Filter - Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2542221#M109401</link>
      <description>&lt;P&gt;You can change dimension reference line formula to this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;=MonthStart(Max({&amp;lt;MonthYear={"&amp;lt;=$(=Date(AddYears(Date#(GetFieldSelections(MonthYear),'MMM-YYYY'),-1),'MMM-YYYY'))"}&amp;gt;} CalendarDate))&lt;/LI-CODE&gt;&lt;P&gt;And Sorting of the MonthYear to this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Match(Only({1} MonthYear), '$(=LastMonthYear)', '$(=MonthYear)', MonthYear)&lt;/LI-CODE&gt;&lt;P&gt;But this will show the selected value as last year's MonthYear, so you can hide the value for not to get confused.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 06:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Filter-Date-Range/m-p/2542221#M109401</guid>
      <dc:creator>BIAKS</dc:creator>
      <dc:date>2026-02-03T06:34:01Z</dc:date>
    </item>
  </channel>
</rss>

