<?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: Calculation within Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66134#M4369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that was a lot easier than I was making it! Thanks a bunch!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2018 19:59:57 GMT</pubDate>
    <dc:creator>acbishop2</dc:creator>
    <dc:date>2018-02-21T19:59:57Z</dc:date>
    <item>
      <title>Calculation within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66130#M4365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add all values in my [Total Leads] field that fall within the month of the last date given. The max([Date]) will change based on restrictions applied in the load script. I started with If() statements, but they are not as flexible and do not allow a max() aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need, then, is something similar to one of these functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Month([Date])={"$(=Month(Max([Date])))"}&amp;gt;}[Total Leads])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Date]={"$(&amp;gt;=MonthStart(Max([Date])))"}&amp;gt;*$&amp;lt;Date={"$(&amp;lt;=MonthEnd(Max([Date])))"}&amp;gt;}[Total Leads])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to restrict the dimension of a graph in a similar manner. The dimension would be [Date.autoCalendar.Date], but I only want it to show dates for the month of the last date available (max([Date])). Again, I started with If(), but this does not allow the max(). Any work-arounds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, thank you for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 19:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66130#M4365</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-02-21T19:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66131#M4366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this may be - &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;[Date]={"&amp;gt;=$(=MonthStart(Max([Date])))&amp;lt;=$(=MonthEnd(Max([Date])))"}&amp;gt;}[Total Leads])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 19:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66131#M4366</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-21T19:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66132#M4367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That solves the first problem. Any ideas on the second?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 19:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66132#M4367</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-02-21T19:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66133#M4368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think by deselecting zero values from Add-on check box or removing nulls from dimension properties it should only show values for filtered dates in measure. Can you check this out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 19:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66133#M4368</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-21T19:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66134#M4369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that was a lot easier than I was making it! Thanks a bunch!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 19:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-within-Set-Analysis/m-p/66134#M4369</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-02-21T19:59:57Z</dc:date>
    </item>
  </channel>
</rss>

