<?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 Set Analysis for Period Filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906249#M1016330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 14:24:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-14T14:24:21Z</dc:date>
    <item>
      <title>Using Set Analysis for Period Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906247#M1016328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt; I am facing a particular issue in pivot table for Inventory analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;In Dimension we have Quarter-Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;So, When I want to calculate Beginning of Period Inventory for Q1 of 2014, it should take value of Jan 14 and not summation of Jan Feb and March.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;I have tried to do that using set analysis but it’s not working:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Month= {$(=min(Month))}&amp;gt;}Inventory)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83584_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;Dimension: Quarter – Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;I am not looking at solution using multiple if conditions as the expression would become too long and complex, the expression above is just a sample of bigger set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;Any help would be much appreciated………………………&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 08:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906247#M1016328</guid>
      <dc:creator />
      <dc:date>2015-04-14T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis for Period Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906248#M1016329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably your expression failed because either Month isn't numeric or if it's a dual-value the format isn't excactly the same. This meant a min(String) won't work and matching from Month values like 'Jan', 'Feb', ... won't match with numeric Month values like 1, 2, ... which a min(Month) will be returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you used for all date- and period-matchings numeric fields and extend your datamodel to these fields if they don't exists and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #262626; font-family: arial, sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;MonthNum = {"$(=min(MonthNUM))"}&amp;gt;}Inventory)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906248#M1016329</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-04-14T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis for Period Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906249#M1016330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-for-Period-Filter/m-p/906249#M1016330</guid>
      <dc:creator />
      <dc:date>2015-04-14T14:24:21Z</dc:date>
    </item>
  </channel>
</rss>

