<?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 Display Last Month Selected Only in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217745#M863615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fairly new to Qlik. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data that is basically:&lt;/P&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;P&gt;Month Number&lt;/P&gt;&lt;P&gt;Production Volume&lt;/P&gt;&lt;P&gt;Sales Volume&lt;/P&gt;&lt;P&gt;Inventory Volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table and for each Part No, I want to display the total &lt;SPAN style="font-size: 13.3333px;"&gt;Production Volume and &lt;/SPAN&gt;Sales Volume based on my selection of Month Number(s). I also want to display the &lt;SPAN style="font-size: 13.3333px;"&gt;Inventory Volume&lt;/SPAN&gt;, but only for the last month selected. If I select Month 1 it displays &lt;SPAN style="font-size: 13.3333px;"&gt;Production Volume, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sales Volume and the&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Inventory Volume for January which is fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When I select Month 1 and Month 2 it displays the Production and Sales volume total for both months which is correct. It displays the total Inventory Volume for Month 1 and Month 2 when I only want to see the Inventory Volume for Month 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how I should approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Display Last Month Selected Only in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217745#M863615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fairly new to Qlik. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data that is basically:&lt;/P&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;P&gt;Month Number&lt;/P&gt;&lt;P&gt;Production Volume&lt;/P&gt;&lt;P&gt;Sales Volume&lt;/P&gt;&lt;P&gt;Inventory Volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table and for each Part No, I want to display the total &lt;SPAN style="font-size: 13.3333px;"&gt;Production Volume and &lt;/SPAN&gt;Sales Volume based on my selection of Month Number(s). I also want to display the &lt;SPAN style="font-size: 13.3333px;"&gt;Inventory Volume&lt;/SPAN&gt;, but only for the last month selected. If I select Month 1 it displays &lt;SPAN style="font-size: 13.3333px;"&gt;Production Volume, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sales Volume and the&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Inventory Volume for January which is fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When I select Month 1 and Month 2 it displays the Production and Sales volume total for both months which is correct. It displays the total Inventory Volume for Month 1 and Month 2 when I only want to see the Inventory Volume for Month 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how I should approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217745#M863615</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display Last Month Selected Only in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217746#M863616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should look on the community the key word ==&amp;gt;&amp;nbsp; "set analysis", it allows you to filter (even dynamically with selections) when creating a measure. There are a lot of documents and tutorials about it on the community. &lt;A href="https://community.qlik.com/thread/59055"&gt;Learning Set Analysis from Scratch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your example on the inventory volume, your formula would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month Number]={"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month Number]&lt;/SPAN&gt;))"}&lt;/SPAN&gt;&amp;gt;}&amp;nbsp; [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Inventory Volume])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 16:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217746#M863616</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-21T16:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Display Last Month Selected Only in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217747#M863617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Thomas that helped me enormously. I will read the documents later and get to better understand the Set Analysis (especially the syntax which confuses me at the moment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum( {&amp;lt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Month Number]={"$(=max(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Month Number]&lt;/SPAN&gt;))"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Inventory Volume])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had simplified the issue a bit when I posted, but ultimately it worked and my code looked like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;[PROD_YEAR]={"$(=maxstring([PROD_YEAR]))"}, [PROD_MONTH_NO]={"$(=maxstring([PROD_MONTH_NO]))"}&amp;gt;}[INVENTORY.INVENTORY_VOLUME])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Last-Month-Selected-Only-in-Straight-Table/m-p/1217747#M863617</guid>
      <dc:creator />
      <dc:date>2016-12-21T17:34:34Z</dc:date>
    </item>
  </channel>
</rss>

