<?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: Replace static number in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263851#M25833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is probably not a good way to do this because what if you are in Month 2 of 2017, how do you imagine going to get 12 2016 in your expression? I suggest using Dates instead of Year and Month separate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2016 20:51:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-14T20:51:40Z</dc:date>
    <item>
      <title>Replace static number in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263849#M25831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to replace Year with max(year). However, the month is not showing anything except Month= {11}&amp;gt;}. And I need to add up 3-months value. Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have now (SUM ({$&amp;lt;Year={2016},Month={11}&amp;gt;}(Cash)))+(SUM ({$&amp;lt;Year={2016},Month={10}&amp;gt;}(Cash)))+(SUM ({$&amp;lt;Year={2016},Month={9}&amp;gt;}(Cash))). I want to change to a form of sum({$&amp;lt;Year = {$(=max(Year))}, Month= {$(=max(Month))}&amp;gt;} Cash)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 20:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263849#M25831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-14T20:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replace static number in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263850#M25832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try &lt;/P&gt;&lt;P&gt;=Sum( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;Year={2016},Month={"&amp;gt;=$(=Max(Month)-2)"}&amp;gt;} Cash)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But it would be easier if you could make the set analysis selection on a Year-Month or Date field, or a consecutive MonthID field, just to handle the year change correctly.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;See also&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;The Magic of Set Analysis - Point In Time Reporting • Blog • AfterSync&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 20:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263850#M25832</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-14T20:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace static number in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263851#M25833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is probably not a good way to do this because what if you are in Month 2 of 2017, how do you imagine going to get 12 2016 in your expression? I suggest using Dates instead of Year and Month separate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 20:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-static-number-in-Set-Analysis/m-p/1263851#M25833</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-14T20:51:40Z</dc:date>
    </item>
  </channel>
</rss>

