<?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: Select only available value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662324#M241383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try that, but wouldn't "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Month={'&amp;lt;=$(=Max({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;} Month))'}&lt;/STRONG&gt;&lt;/SPAN&gt;" give me only the last month of the max year?, not the 5 available months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month=P({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;} Month)&lt;/SPAN&gt;" and it seems to work, I'm just confused on what it really did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looked a bit on the forum, and found a quick tutorial on P() and E(): &lt;A href="https://community.qlik.com/thread/68931"&gt;P() &amp;amp;amp; E() and where do you use them?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for the tip, I learn something new every day &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 14:52:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-26T14:52:45Z</dc:date>
    <item>
      <title>Select only available value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662322#M241381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to show data for current YTD as well as Previous Year. I have my data select-able by a Year and Month dimensions. I currently use set Analysis to get Previous year as such:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;=alt(sum({&amp;lt;[Year]={'$(=Max([Year]) -1)'}, [Deduction Detail] = {'FUNDED'}&amp;gt;}[Net Sales Home]),'N/A')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The problem is though, since we only have months 1-5 of 2014, the above formula will give us months 1-12 of 2013 instead of 1-5 of 2013 when so Month selection is made.&lt;/P&gt;&lt;P&gt;Of course, if I select Months 1-5 in 2014 (rather than keep it blank) then the formula works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: Year and Month are derived from a single field [Year Month], I manipulate that single field into two fields during load, so maybe I could use set analysis to reduce [Year Month] by a year, but that hasn't worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662322#M241381</guid>
      <dc:creator />
      <dc:date>2014-06-26T14:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select only available value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662323#M241382</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 will need to limit months as well in the set expression - something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Year]={'$(=Max([Year]) -1)'}, &lt;STRONG&gt;Month={'&amp;lt;=$(=Max({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;} Month))'}&lt;/STRONG&gt;, [Deduction Detail] = {'FUNDED'}&amp;gt;} [Net Sales Home])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you could use &lt;/P&gt;&lt;P&gt;Month=P({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;} Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662323#M241382</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-06-26T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select only available value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662324#M241383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try that, but wouldn't "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Month={'&amp;lt;=$(=Max({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;} Month))'}&lt;/STRONG&gt;&lt;/SPAN&gt;" give me only the last month of the max year?, not the 5 available months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month=P({&amp;lt;Year={'$(=Max(Year))'}&amp;gt;} Month)&lt;/SPAN&gt;" and it seems to work, I'm just confused on what it really did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looked a bit on the forum, and found a quick tutorial on P() and E(): &lt;A href="https://community.qlik.com/thread/68931"&gt;P() &amp;amp;amp; E() and where do you use them?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for the tip, I learn something new every day &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662324#M241383</guid>
      <dc:creator />
      <dc:date>2014-06-26T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select only available value</title>
      <link>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662325#M241384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first expression would limit the months to less than or equal to the last month of the max year. Note the &amp;lt;= in the expression. But this way assumes that the months are numerical (or dual) values, 1-12. The function Month(date) returns a dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The P() -- possible values -- function will work with other month formats, such as month names (strings), which will not work for the first expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 07:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-only-available-value/m-p/662325#M241384</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-06-27T07:10:37Z</dc:date>
    </item>
  </channel>
</rss>

