<?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: Using a date range as a calculated value filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-a-date-range-as-a-calculated-value-filter/m-p/2413207#M94835</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May be if today() is corresponding to MAX&amp;nbsp; (&amp;nbsp;&lt;SPAN&gt;PRODUCT_CREATEDDATE&amp;nbsp;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;then&amp;nbsp; (&lt;STRONG&gt;AddMonths(MAX&amp;nbsp; (&amp;nbsp;&lt;SPAN&gt;PRODUCT_CREATEDDATE&amp;nbsp;)&amp;nbsp;&lt;/SPAN&gt;, -6)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 17:17:40 GMT</pubDate>
    <dc:creator>brunobertels</dc:creator>
    <dc:date>2024-01-31T17:17:40Z</dc:date>
    <item>
      <title>Using a date range as a calculated value filter</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-date-range-as-a-calculated-value-filter/m-p/2413180#M94831</link>
      <description>&lt;P&gt;I've created a table to analyse deadstock (non-selling stock) in our organisation and have added the below objects into the table for data visualisation:&lt;BR /&gt;- Brand name of deadstock product (Row dimension)&lt;BR /&gt;- Product Code (Row dimension)&lt;BR /&gt;- Product Description (Row dimension)&lt;BR /&gt;- Physical stock on hand count (measure)&lt;BR /&gt;- Net cost of product (measure)&lt;BR /&gt;- Most Recent Sale Date (measure)&lt;BR /&gt;- Product created date (measure)&lt;BR /&gt;&lt;BR /&gt;Deadstock is defined as:&amp;nbsp;&lt;BR /&gt;- Any product that hasn't sold in 3 months&amp;nbsp;&lt;BR /&gt;- Has a Product Created Date older than 6 months&lt;BR /&gt;&lt;BR /&gt;Now, I'm trying to add a filter to the table based on the above criteria, this is where I'm encountering the issue. When I try to add PRODUCT_CREATEDDATE as filter type &lt;STRONG&gt;condition -&amp;gt;&amp;nbsp;&lt;/STRONG&gt;set to compare -&amp;gt; condition: greater than fixed value -&amp;gt; &lt;STRONG&gt;AddMonths(today(), -6)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;This doesn't return anything, probably due to the fact I'm using Qlik code in specify the fixed value, but I wanted this value to be dynamic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HClegg_2-1706717955267.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158791i748EEB3F6F126100/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HClegg_2-1706717955267.png" alt="HClegg_2-1706717955267.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 16:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-date-range-as-a-calculated-value-filter/m-p/2413180#M94831</guid>
      <dc:creator>HClegg</dc:creator>
      <dc:date>2024-01-31T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a date range as a calculated value filter</title>
      <link>https://community.qlik.com/t5/App-Development/Using-a-date-range-as-a-calculated-value-filter/m-p/2413207#M94835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May be if today() is corresponding to MAX&amp;nbsp; (&amp;nbsp;&lt;SPAN&gt;PRODUCT_CREATEDDATE&amp;nbsp;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;then&amp;nbsp; (&lt;STRONG&gt;AddMonths(MAX&amp;nbsp; (&amp;nbsp;&lt;SPAN&gt;PRODUCT_CREATEDDATE&amp;nbsp;)&amp;nbsp;&lt;/SPAN&gt;, -6)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 17:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-a-date-range-as-a-calculated-value-filter/m-p/2413207#M94835</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2024-01-31T17:17:40Z</dc:date>
    </item>
  </channel>
</rss>

