<?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: Going back in time - need help in Set Analysis, expression building in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439187#M432014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to apply this to a sum where I'm looking at the previous period from what's being selected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put your expression in my sum,&amp;nbsp; trying to get this to work,&amp;nbsp; but it's still showing '0' 's in my straight table.&lt;/P&gt;&lt;P&gt;The date range is now looking the way I want it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {{&amp;lt; %DIM_DATE_KEY= P({1&amp;lt; %DIM_DATE_KEY={"&amp;gt;=$(=Date(AddMonths(Min(%DIM_DATE_KEY),-1),'MM/DD/YYYY'))&amp;lt;=$(=Date(AddMonths(Max(%DIM_DATE_KEY),-1),'MM/DD/YYYY'))"}&amp;nbsp; &amp;gt;} %DIM_DATE_KEY) &amp;gt;} CALL_COUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 21:22:40 GMT</pubDate>
    <dc:creator>gerrycastellino</dc:creator>
    <dc:date>2017-10-11T21:22:40Z</dc:date>
    <item>
      <title>Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439182#M432009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where I need to build an expression based on previous months or previous years data based on what the user has selected. For this example I need to go back 1 month. The date is not a dimension in the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {{&amp;lt; %DIM_DATE_KEY= P({1&amp;lt;%DIM_DATE_KEY={"$(=Date(AddMonths(max(%DIM_DATE_KEY),-1)),'MM/DD/YYYY')"} &amp;gt;} %DIM_DATE_KEY) &amp;gt;} CALL_COUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have this expression showing as follows in the straight table - notice the data for the previous period is blank when I select september 01, 2017:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data for August as seen in the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439182#M432009</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-10-11T19:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439183#M432010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the dollar sign expansion shows a syntax error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{'$(=Date(AddMonths(max(%DIM_DATE_KEY),-1),'MM/DD/YYYY'))'} &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 20:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439183#M432010</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-11T20:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439184#M432011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe to simplify it, if I can show in a list box , the prior months periods of what's been selected,&amp;nbsp; that's what I'm looking for.&lt;/P&gt;&lt;P&gt;As you can see here, it's taking the max &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="PPeriod_1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179316_PPeriod_1.PNG" style="height: auto;" /&gt; !&lt;/P&gt;&lt;P&gt;See attachments and image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 20:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439184#M432011</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-10-11T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439185#M432012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select a continuous range, you can use a numeric search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;DatePeriod=P({1&amp;lt; DatePeriod=&lt;STRONG&gt;{"&amp;gt;=$(=Date(AddMonths(Min(DatePeriod),-1),'MM/DD/YYYY'))&amp;lt;=$(=Date(AddMonths(Max(DatePeriod),-1),'MM/DD/YYYY'))"} &lt;/STRONG&gt; &amp;gt;} ) &amp;gt;} DatePeriod), DatePeriod)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 20:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439185#M432012</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-11T20:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439186#M432013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not 100% sure what you want to achieve, but I think you don't need the p() function here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;DatePeriod={"&amp;gt;=$(=Date(AddMonths(Min(DatePeriod),-1),'MM/DD/YYYY'))&amp;lt;=$(=Date(AddMonths(Max(DatePeriod),-1),'MM/DD/YYYY'))"}&amp;nbsp; &amp;gt;} DatePeriod), DatePeriod)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439186#M432013</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-11T21:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439187#M432014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to apply this to a sum where I'm looking at the previous period from what's being selected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put your expression in my sum,&amp;nbsp; trying to get this to work,&amp;nbsp; but it's still showing '0' 's in my straight table.&lt;/P&gt;&lt;P&gt;The date range is now looking the way I want it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {{&amp;lt; %DIM_DATE_KEY= P({1&amp;lt; %DIM_DATE_KEY={"&amp;gt;=$(=Date(AddMonths(Min(%DIM_DATE_KEY),-1),'MM/DD/YYYY'))&amp;lt;=$(=Date(AddMonths(Max(%DIM_DATE_KEY),-1),'MM/DD/YYYY'))"}&amp;nbsp; &amp;gt;} %DIM_DATE_KEY) &amp;gt;} CALL_COUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439187#M432014</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-10-11T21:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439188#M432015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guess you don't make your selections in the date key?&lt;/P&gt;&lt;P&gt;Then you may need to clear all user selections that may interfere with your set modifier in the set analysis (or use set identifier 1 in your main set expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="https://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;https://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439188#M432015</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-11T21:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439189#M432016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be making date selections in the datekey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439189#M432016</guid>
      <dc:creator>gerrycastellino</dc:creator>
      <dc:date>2017-10-11T21:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Going back in time - need help in Set Analysis, expression building</title>
      <link>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439190#M432017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then please update your sample application with the chart &amp;amp; expression in question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Going-back-in-time-need-help-in-Set-Analysis-expression-building/m-p/1439190#M432017</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-11T21:34:31Z</dc:date>
    </item>
  </channel>
</rss>

