<?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 Applying an alternate state in set analysis : Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406854#M459316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having some trouble with a formula that combines set analysis and alternate states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a container box, which is set to an alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The regular formula needs to show the #FTE valid for the current month/year.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={$(=Max(Year))}, [Calender.MonthNr]={$(=Max([Calender.MonthNr]))},&amp;nbsp; [KPI Code]={'FTE'}&amp;gt;}[KPI Actuals])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now; the problem is that I have a generic month &amp;amp; year in the report and I want the formula, which is part of of the alternate state, to respond to the proper max month selected.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Normally you can override the alternate state with Year= $::Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know how to properly apply this is the current situation though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={$(=Max(Year&lt;SPAN style="color: #3366ff;"&gt;##INDEFAULTSTATE##&lt;/SPAN&gt;))}, [Calender.MonthNr]={$(=Max([Calender.MonthNr&lt;SPAN style="color: #3366ff;"&gt;##INDEFAULTSTATE##&lt;/SPAN&gt;]))},&amp;nbsp; [KPI Code]={'FTE'}&amp;gt;}[KPI Actuals])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to properly get this chart to work from the container that is in an alternate state?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 09:45:25 GMT</pubDate>
    <dc:creator>markvandermeij7</dc:creator>
    <dc:date>2017-10-06T09:45:25Z</dc:date>
    <item>
      <title>Applying an alternate state in set analysis : Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406854#M459316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having some trouble with a formula that combines set analysis and alternate states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a container box, which is set to an alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The regular formula needs to show the #FTE valid for the current month/year.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={$(=Max(Year))}, [Calender.MonthNr]={$(=Max([Calender.MonthNr]))},&amp;nbsp; [KPI Code]={'FTE'}&amp;gt;}[KPI Actuals])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now; the problem is that I have a generic month &amp;amp; year in the report and I want the formula, which is part of of the alternate state, to respond to the proper max month selected.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Normally you can override the alternate state with Year= $::Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know how to properly apply this is the current situation though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Year={$(=Max(Year&lt;SPAN style="color: #3366ff;"&gt;##INDEFAULTSTATE##&lt;/SPAN&gt;))}, [Calender.MonthNr]={$(=Max([Calender.MonthNr&lt;SPAN style="color: #3366ff;"&gt;##INDEFAULTSTATE##&lt;/SPAN&gt;]))},&amp;nbsp; [KPI Code]={'FTE'}&amp;gt;}[KPI Actuals])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to properly get this chart to work from the container that is in an alternate state?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 09:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406854#M459316</guid>
      <dc:creator>markvandermeij7</dc:creator>
      <dc:date>2017-10-06T09:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Applying an alternate state in set analysis : Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406855#M459317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Year={$(=Max( &lt;SPAN style="color: #3366ff;"&gt;{$}&lt;/SPAN&gt; Year))}, [Calender.MonthNr]={$(=Max(&lt;SPAN style="color: #3366ff;"&gt;{$}&lt;/SPAN&gt;[Calender.MonthNr]))},&amp;nbsp; [KPI Code]={'FTE'}&amp;gt;}[KPI Actuals])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 09:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406855#M459317</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-10-06T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Applying an alternate state in set analysis : Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406856#M459318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is correct ! Thanks you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 09:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-an-alternate-state-in-set-analysis-Problem/m-p/1406856#M459318</guid>
      <dc:creator>markvandermeij7</dc:creator>
      <dc:date>2017-10-06T09:59:02Z</dc:date>
    </item>
  </channel>
</rss>

