<?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 Nested set analysis with max fuction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073013#M358233</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 need to get max date for specific type of data, but I'm having a bit difficulties to get it work when the max function is inside set analysis. I'm trying to get max date only for TYPE Invoice, since type budget is messing up actual max dates. Can someone help me find what the issue with my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14549419610413481" jivemacro_uid="_14549419610413481" modifiedtitle="true"&gt;
&lt;P&gt;Sum({&amp;lt; YearMonth = {'&amp;gt;=$($(vCompare2))&amp;lt;=$(=Max({$&amp;lt;TYPE={'Invoice'}&amp;gt;}YearMonth))'}, Year=, MonthName=, Month=, Quarter=, Week= &amp;gt;} $(vGrossSales))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part {$&amp;lt;TYPE={"Invoice"}&amp;gt;} is what I'm trying to add, but it seems to ignore type of the date, so there must be something wrong with my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 14:56:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-08T14:56:52Z</dc:date>
    <item>
      <title>Nested set analysis with max fuction</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073013#M358233</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 need to get max date for specific type of data, but I'm having a bit difficulties to get it work when the max function is inside set analysis. I'm trying to get max date only for TYPE Invoice, since type budget is messing up actual max dates. Can someone help me find what the issue with my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14549419610413481" jivemacro_uid="_14549419610413481" modifiedtitle="true"&gt;
&lt;P&gt;Sum({&amp;lt; YearMonth = {'&amp;gt;=$($(vCompare2))&amp;lt;=$(=Max({$&amp;lt;TYPE={'Invoice'}&amp;gt;}YearMonth))'}, Year=, MonthName=, Month=, Quarter=, Week= &amp;gt;} $(vGrossSales))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The part {$&amp;lt;TYPE={"Invoice"}&amp;gt;} is what I'm trying to add, but it seems to ignore type of the date, so there must be something wrong with my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 14:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073013#M358233</guid>
      <dc:creator />
      <dc:date>2016-02-08T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nested set analysis with max fuction</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073014#M358234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Try with doube quotes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum({&amp;lt; YearMonth = {&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;&amp;gt;=$($(vCompare2))&amp;lt;=$(=Max({$&amp;lt;TYPE {'Invoice'}&amp;gt;}YearMonth))&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;}, Year=, MonthName=, Month=, Quarter=, Week= &amp;gt;} $(vGrossSales)) &lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073014#M358234</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-08T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nested set analysis with max fuction</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073015#M358235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that doesn't work !either, it now looks following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14549502523724615 jive_text_macro" jivemacro_uid="_14549502523724615" modifiedtitle="true"&gt;
&lt;P&gt;Sum({&amp;lt;YearMonth = {"&amp;gt;=$($(vCompare2))&amp;lt;=$(=Max({$&amp;lt;TYPE={'Invoice'}&amp;gt;}YearMonth))"},&lt;/P&gt;
&lt;P&gt;Year=, MonthName=, Month=, Quarter=, Week= &amp;gt;} $(vGrossSales))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me correct YearMonth, so the problem must be with set analysis:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14549502693692018 jive_text_macro" jivemacro_uid="_14549502693692018"&gt;
&lt;P&gt;=Max({&amp;lt;TYPE={'Invoice'}&amp;gt;}YearMonth)&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073015#M358235</guid>
      <dc:creator />
      <dc:date>2016-02-08T16:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nested set analysis with max fuction</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073016#M358236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am thinking its this part of the set analysis which might not be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;YearMonth = {"&amp;gt;=$($(vCompare2))"}&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&lt;STRONG&gt;Year=, MonthName=, Month=, Quarter=, Week= &amp;gt;} $(vGrossSales))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check if this is working or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 17:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073016#M358236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-08T17:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nested set analysis with max fuction</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073017#M358237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that was it, taking budgets into account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 18:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-set-analysis-with-max-fuction/m-p/1073017#M358237</guid>
      <dc:creator />
      <dc:date>2016-02-08T18:41:58Z</dc:date>
    </item>
  </channel>
</rss>

