<?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: How to use single month column with variables in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-single-month-column-with-variables-in-Set-Analysis/m-p/135651#M20312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change to this may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RPT_MNTH:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;MaxString&lt;/SPAN&gt;([RPT MONTH]) as MAX_RPT_MNTH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident RPT;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 10:58:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-10-25T10:58:44Z</dc:date>
    <item>
      <title>How to use single month column with variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-single-month-column-with-variables-in-Set-Analysis/m-p/135650#M20311</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 have a month column that is defined by Month(Report_dt) as RPT MONTH, which is in the format 'MMM', i.e., 'Jul','Aug', etc., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the latest month into a variable with the help of Peek function as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RPT_MNTH:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Max([RPT MONTH]) as MAX_RPT_MNTH&lt;/P&gt;&lt;P&gt;Resident RPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxRPTMnth = Peek('MAX_RPT_MNTH',0,'RPT MONTH');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now $(vMaxRPTMnth) has a value of 8 for latest month being 'Aug'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to use this variable in set analysis as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[RPT MONTH] = {'$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxRPTMnth&lt;/SPAN&gt;)'}&amp;gt;}Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this equation is giving out 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want another Month_Num variable/ field having 7,8 for Jul and Aug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help appreciated in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Ram Marthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 06:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-single-month-column-with-variables-in-Set-Analysis/m-p/135650#M20311</guid>
      <dc:creator>rammarthi</dc:creator>
      <dc:date>2018-10-25T06:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use single month column with variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-single-month-column-with-variables-in-Set-Analysis/m-p/135651#M20312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change to this may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RPT_MNTH:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;MaxString&lt;/SPAN&gt;([RPT MONTH]) as MAX_RPT_MNTH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident RPT;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 10:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-single-month-column-with-variables-in-Set-Analysis/m-p/135651#M20312</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-25T10:58:44Z</dc:date>
    </item>
  </channel>
</rss>

