<?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: dollar expansion set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508318#M600513</link>
    <description>Try this:&lt;BR /&gt;&lt;BR /&gt;=Sum(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;[DateType]={"Budget 2018"},&lt;BR /&gt;[Measure]={"PF Units"},&lt;BR /&gt;Year={2018},&lt;BR /&gt;MonthNum={"&amp;lt;=$(=Month(Max([Transfers.Transfer Date])))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;[Budget 2018]&lt;BR /&gt;)</description>
    <pubDate>Fri, 16 Nov 2018 17:42:53 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2018-11-16T17:42:53Z</dc:date>
    <item>
      <title>dollar expansion set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508316#M600512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm struggling with the syntax for a dollar expansion within set analysis.&amp;nbsp; My code is as follows;&lt;/P&gt;&lt;P&gt;=Sum(&lt;BR /&gt;&amp;nbsp;{&amp;lt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[DateType]={"Budget 2018"},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[Measure]={"PF Units"},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Year={2018},&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MonthNum={"&amp;lt;=$(=Month(=Max([Transfers.Transfer Date])))"}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Budget 2018]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am trying to calculate the month of the maximum date in the field "Transfers.Transfer Date", and use the result as part of the set analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is my syntax correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grateful for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508316#M600512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: dollar expansion set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508318#M600513</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;=Sum(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;[DateType]={"Budget 2018"},&lt;BR /&gt;[Measure]={"PF Units"},&lt;BR /&gt;Year={2018},&lt;BR /&gt;MonthNum={"&amp;lt;=$(=Month(Max([Transfers.Transfer Date])))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;[Budget 2018]&lt;BR /&gt;)</description>
      <pubDate>Fri, 16 Nov 2018 17:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508318#M600513</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-11-16T17:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: dollar expansion set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508328#M600514</link>
      <description>&lt;P&gt;Or this&lt;/P&gt;&lt;PRE&gt;=Sum(
 {&amp;lt;
     [DateType] = {"Budget 2018"},
     [Measure] = {"PF Units"},
     Year = {2018},
     MonthNum = {"&amp;lt;=$(=&lt;FONT color="#FF0000"&gt;Num&lt;/FONT&gt;(Month(Max([Transfers.Transfer Date]))))"}       
    &amp;gt;}
    [Budget 2018]
    )&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508328#M600514</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-16T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: dollar expansion set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508350#M600515</link>
      <description>=Sum(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;[DateType]={"Budget 2018"},&lt;BR /&gt;[Measure]={"PF Units"},&lt;BR /&gt;Year={2018},&lt;BR /&gt;MonthNum={"&amp;lt;=$(=Month(Max([Transfers.Transfer Date])))"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;[Budget 2018]&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Try this</description>
      <pubDate>Fri, 16 Nov 2018 19:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508350#M600515</guid>
      <dc:creator>Rojarao</dc:creator>
      <dc:date>2018-11-16T19:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: dollar expansion set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508389#M600516</link>
      <description>Thanks for the responses so far. I've tried them out but still no luck. It seems as though the code I have around the formula is correct, i.e. the {"&amp;lt;=$(=Month at the start, and the "} at the end.&lt;BR /&gt;&lt;BR /&gt;Interestingly I get the right result when I replace it with MonthNum={10} or even MonthNum={"10"}&lt;BR /&gt;&lt;BR /&gt;I also know that the formula Month(Max([Transfers.Transfer Date]) returns the number 10 as I have tested that in a separate text box.&lt;BR /&gt;&lt;BR /&gt;So I really don't understand why this isn't working.&lt;BR /&gt;&lt;BR /&gt;Any other ideas please?</description>
      <pubDate>Fri, 16 Nov 2018 21:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508389#M600516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T21:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: dollar expansion set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508395#M600517</link>
      <description>Wait, I was being daft, the solution from Stalwar1 above worked. Thank you all for your help!!</description>
      <pubDate>Fri, 16 Nov 2018 21:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dollar-expansion-set-analysis/m-p/1508395#M600517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T21:49:10Z</dc:date>
    </item>
  </channel>
</rss>

