<?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 Lock filter from measure result but not from visualization in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Lock-filter-from-measure-result-but-not-from-visualization/m-p/1827864#M68163</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I have a measure "Inventory" that is calculated through an accumulative sum expression:&lt;/P&gt;&lt;P&gt;RangeSum(Above(Total Sum({&amp;lt;[Year],[Month]&amp;gt;}Inventory),0,RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;Notice that I have to exclude the possibility to filter the dimensions Year and Month as it would affect the calculated result. This is because I have inventory data since the beginning of my operation, and the current inventory is the sum of all entries (negative entries indicating outbound movement).&lt;/P&gt;&lt;P&gt;My problem is, I need to display in a table the inventory month by month. Using this expression as the measure, I get the correct values for each month, but the user can't filter the year and/or month to narrow their analysis without affecting the value shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gitguto_0-1628649349022.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59954iAC5EA2255D89A71B/image-size/large?v=v2&amp;amp;px=999" role="button" title="gitguto_0-1628649349022.png" alt="gitguto_0-1628649349022.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that even though the year dimension is filtered to only show 2021, I got entries from all the historical data.&lt;/P&gt;&lt;P&gt;Does anyone know a workaround to lock the filter from the measure result, but not from the visualization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. If I try&amp;nbsp;&amp;nbsp;RangeSum(Above(Total Sum(Inventory),0,RowNo(TOTAL))), the result will be wrong as it would only calculate the cumulative sum from the months that are filtered.&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 02:41:46 GMT</pubDate>
    <dc:creator>gitguto</dc:creator>
    <dc:date>2021-08-11T02:41:46Z</dc:date>
    <item>
      <title>Lock filter from measure result but not from visualization</title>
      <link>https://community.qlik.com/t5/App-Development/Lock-filter-from-measure-result-but-not-from-visualization/m-p/1827864#M68163</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I have a measure "Inventory" that is calculated through an accumulative sum expression:&lt;/P&gt;&lt;P&gt;RangeSum(Above(Total Sum({&amp;lt;[Year],[Month]&amp;gt;}Inventory),0,RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;Notice that I have to exclude the possibility to filter the dimensions Year and Month as it would affect the calculated result. This is because I have inventory data since the beginning of my operation, and the current inventory is the sum of all entries (negative entries indicating outbound movement).&lt;/P&gt;&lt;P&gt;My problem is, I need to display in a table the inventory month by month. Using this expression as the measure, I get the correct values for each month, but the user can't filter the year and/or month to narrow their analysis without affecting the value shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gitguto_0-1628649349022.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59954iAC5EA2255D89A71B/image-size/large?v=v2&amp;amp;px=999" role="button" title="gitguto_0-1628649349022.png" alt="gitguto_0-1628649349022.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that even though the year dimension is filtered to only show 2021, I got entries from all the historical data.&lt;/P&gt;&lt;P&gt;Does anyone know a workaround to lock the filter from the measure result, but not from the visualization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. If I try&amp;nbsp;&amp;nbsp;RangeSum(Above(Total Sum(Inventory),0,RowNo(TOTAL))), the result will be wrong as it would only calculate the cumulative sum from the months that are filtered.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 02:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Lock-filter-from-measure-result-but-not-from-visualization/m-p/1827864#M68163</guid>
      <dc:creator>gitguto</dc:creator>
      <dc:date>2021-08-11T02:41:46Z</dc:date>
    </item>
  </channel>
</rss>

