<?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: Set analysis not working across time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270759#M399755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt that you can use the p() function within the dollar sign expansion. I assume both expansions will just be empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you are not comparing field values on a per record base using above syntax, if that's what you have intended, e.g.&lt;/P&gt;&lt;P&gt;{&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Entered Status Date]={&lt;EM&gt;SomeValues&lt;/EM&gt;} &amp;gt;} is just assigning SomeValues as selections to field [Entered Status Date], in the context of the aggregation it is used in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to prove that I am wrong, you can set up a sample QVW...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Sunny was trying to say above is, that Set Analysis as well as Dollar sign expansions will be evaluated only once per chart, i.e. that the chart dimensions can't influence the record set used in the aggregation (i.e. like you are applying a manual selection of field values for the aggregation, but you can't do this per dimension line).&lt;/P&gt;&lt;P&gt;So if your dimension is a time dimension and you want your aggregation use a different record set per dimensional value, set analysis alone is not the way to go.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1335"&gt;Evaluating "sets" in the context of a dimension&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look into creating a reference date table, like shown in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also tons of examples for open issue / ticket count here in the forum, which you may use as starting point for your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 17:37:59 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-01-18T17:37:59Z</dc:date>
    <item>
      <title>Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270755#M399751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application that measures open and resolved help ticket incidents (cases).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a MasterCalendar dimension with many fields, 2 of which are:&amp;nbsp; Date and MonthYear.&amp;nbsp; Ex, 01/17/2017 and Jan2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression below, &lt;STRONG&gt;which calculates correctly when a MonthYear is &lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;selected&lt;/STRONG&gt;&lt;/EM&gt;, but does not work (greatly reduces the sum calculated), when not selected and data is summed &lt;EM&gt;across&lt;/EM&gt; MonthYear in chart showing the measure across time.&amp;nbsp; All chart types show the same result, so think of a straight table here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns &lt;SPAN style="font-size: 13.3333px;"&gt;[Entered Status Date]&lt;/SPAN&gt; and %R&lt;SPAN style="font-size: 13.3333px;"&gt;esolvedDateNotNull&lt;/SPAN&gt;, are dates, always populated, and are stored in the fact table.&amp;nbsp; [Case Count] is stored as a 1, and is also in the fact,&amp;nbsp; Facts are linked to the MasterCalendar &lt;EM&gt;through&lt;/EM&gt; a MasterCalendarLink table, on a field named %MasterCalendarLink.&amp;nbsp; MasterCalendarLink has the &lt;SPAN style="font-size: 13.3333px;"&gt;%EntryDateFlag&lt;/SPAN&gt;.&amp;nbsp; That linkage works fine, and I have used this date design in many applications in which there are multiple date "roles" across the same facts.&amp;nbsp; In this case, &lt;SPAN style="font-size: 13.3333px;"&gt;%EntryDateFlag&lt;/SPAN&gt; is the "role" used for [Entered Status Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this below does it to show open incidents (not resolved during the MonthYear in the chart) across time.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;%EntryDateFlag={1}, [Entered Status Date]={"&amp;lt;=$(=max(Date))"}, %ResolvedDateNotNull={"&amp;gt;$(=max(Date))"}&amp;gt;} [Case Count] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270755#M399751</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-18T13:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270756#M399752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis is evaluated once per chart not per dimension. May be you need to use Aggr() instead of set analysis here? May be a sample might be able to help us understand what you want and will aid in faster help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270756#M399752</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270757#M399753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean by evaluated "once per chart". Set Analysis is evaluated for all rows that it's measure applies to.&amp;nbsp; I will get a sample together, as you suggest.&amp;nbsp; thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270757#M399753</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-18T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270758#M399754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured this out.&amp;nbsp; Since this is a &lt;EM&gt;comparision&lt;/EM&gt; of 2 fields, the p() possible needs to be used for the compare.&amp;nbsp; Works great now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Entered Status Date]={"&amp;lt;=$(=p(Date))"}, %ResolvedDateNotNull={"&amp;gt;$(=p(Date))"}&amp;gt;} [Case Count] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270758#M399754</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-18T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270759#M399755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt that you can use the p() function within the dollar sign expansion. I assume both expansions will just be empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you are not comparing field values on a per record base using above syntax, if that's what you have intended, e.g.&lt;/P&gt;&lt;P&gt;{&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Entered Status Date]={&lt;EM&gt;SomeValues&lt;/EM&gt;} &amp;gt;} is just assigning SomeValues as selections to field [Entered Status Date], in the context of the aggregation it is used in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to prove that I am wrong, you can set up a sample QVW...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Sunny was trying to say above is, that Set Analysis as well as Dollar sign expansions will be evaluated only once per chart, i.e. that the chart dimensions can't influence the record set used in the aggregation (i.e. like you are applying a manual selection of field values for the aggregation, but you can't do this per dimension line).&lt;/P&gt;&lt;P&gt;So if your dimension is a time dimension and you want your aggregation use a different record set per dimensional value, set analysis alone is not the way to go.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1335"&gt;Evaluating "sets" in the context of a dimension&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look into creating a reference date table, like shown in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also tons of examples for open issue / ticket count here in the forum, which you may use as starting point for your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270759#M399755</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T17:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270760#M399756</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;Thanks for weighing in, and the links you provided,&amp;nbsp; Dollar Sign Expansions can absolutely be used inside ""&amp;nbsp; search strings within set analysis.&amp;nbsp; I have created hundreds of set analysis expressions this way, across many projects. In the book QlikView 11 for Developers [aka "the Bible" ], you will see many &lt;SPAN style="font-size: 13.3333px;"&gt;Dollar Sign Expansions&lt;/SPAN&gt; used in search strings within set analysis, invaluable for period date reporting.&amp;nbsp; I have never used them with p(), however, so yes, new territory here on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding :&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;&lt;EM&gt;{&amp;lt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Entered Status Date]={SomeValues&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;} &amp;gt;} is just assigning SomeValues as selections to field [Entered Status Date], in the context of the aggregation it is used in.&lt;/EM&gt;&lt;/SPAN&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;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&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;That sounds like exactly what I am trying to accomplish.&amp;nbsp; I.E. The Date dimension will sum [Case Count], based on &lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Entered Status Date]&lt;/EM&gt; across MonthYear in the chart.&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&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;When I have some time, I will put together a sample, but so&amp;nbsp; far, it seems to be working.&amp;nbsp; Oops - that sounds dangerous &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&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;Dave&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270760#M399756</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-18T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270761#M399757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be interested to see this sample &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no worries, good to hear that it works for you (though my assumption is that it could probably work also without the set expression then).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify:&lt;/P&gt;&lt;P&gt;I haven't doubted that dollar sign expansion in general is not working, but that the p() function can't be used that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270761#M399757</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T22:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270762#M399758</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;Indeed, as you say, this does &lt;STRONG&gt;not&lt;/STRONG&gt; work.&amp;nbsp; p() cannot be used in this way.&amp;nbsp; I have attached a sample, proving this with a small control sample data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking I need an intersection table, which, via a loop (from your link example) , which adds MonthYear rows for which a Case is &lt;EM&gt;still&lt;/EM&gt; open, up until it is resolved.&amp;nbsp; I can then sum up &lt;EM&gt;those&lt;/EM&gt; rows by MonthYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It bothers me that I would have to do this, as it will bloat the application data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your wisdom on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 01:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270762#M399758</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-19T01:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270763#M399759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either use a IntervalMatch() in the script to do this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use a front end Aggr() function (which I did mention to you in my earlier response also &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;). Not entirely sure what the expected output is, but see if this is what you want in your sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149971_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(EnteredDate &amp;lt;= DateKey and ResolvedDate &amp;gt; DateKey, CaseCount), CaseNumber, DateKey))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably not a great idea to do this and would recommend looking into IntervalMatch to connect your calendar to the date range of Entered and Resolved date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 02:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270763#M399759</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-19T02:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270764#M399760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny!&amp;nbsp; The ResolvedDate would have to be greater than the max(DateKey) for the Month, and &lt;SPAN style="font-size: 13.3333px;"&gt;the&amp;nbsp; Entered Date would have to be less than or equal than the min(DateKey) for the Month&lt;/SPAN&gt;.&amp;nbsp; I should have built the calendar in my example with all the dates within each month.&amp;nbsp; The goal is to show a historical account of open cases period by period.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I will load a better calendar and then try to tweak your sum(aggr(if))) statement, but I agree as you say that would not be great for performance.&amp;nbsp; I have not used IntervalMatch - I thought it was just there to build slowly changing dimensions, which I do in my ETL processing.&amp;nbsp; Should have listened to you and looked at that.&amp;nbsp; I will check out you ink and read up on it.&amp;nbsp; Thanks again for getting back.&amp;nbsp; I will post a better example later...&amp;nbsp; I am really trying to avoid creating an intersection table as I mentioned in my previous reply, so this is all good stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270764#M399760</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-19T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270765#M399761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correction to the just previous reply:&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: 13.3333px;"&gt;The&amp;nbsp; Entered Date would have to be less than or equal than the max(DateKey) for the Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Dave&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270765#M399761</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-19T12:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270766#M399762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;To more accurately reflect the data model, I added the MasterCalendarLink table, and added more dates to the calendar.&amp;nbsp; Adding a DateType broke your expression, but DateType is necessary in the data model.&amp;nbsp; Your expression still calculates, but is not correct.&amp;nbsp; I put notes, and added another chart for clarity on why DateType was added&lt;IMG alt="samplesetanal.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150089_samplesetanal.PNG" style="height: 236px; width: 620px;" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270766#M399762</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-19T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270767#M399763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A solution with IntervalMatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="150095" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150095_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fct_Main:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CaseNumber,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(EnteredDate) as EnteredDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(ResolvedDate) as ResolvedDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(&lt;SPAN style="color: #ff0000;"&gt;AddMonths(&lt;/SPAN&gt;ResolvedDateNotNull&lt;SPAN style="color: #ff0000;"&gt;, -1)&lt;/SPAN&gt;) as ResolvedDateNotNull,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumberHash128(EnteredDate,ResolvedDateNotNull) as MasterCalendarLink&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CaseNumber,EnteredDate,ResolvedDate,ResolvedDateNotNull&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,1/1/2016,1/1/2016,1/1/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,2/1/2016,3/1/2016,3/1/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3,3/1/2016,4/1/2016,4/1/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4,2/1/2016,,1/1/3000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5,1/1/2016,3/1/2016,3/1/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//MasterCalendarLink:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Load DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//AutoNumberHash128(EnteredDate,ResolvedDateNotNull) as MasterCalendarLink,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//EnteredDate as DateKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//'Entered' as DateType&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Resident Fct_Main&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Concatenate (MasterCalendarLink)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Load DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//AutoNumberHash128(EnteredDate,ResolvedDateNotNull) as MasterCalendarLink,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//ResolvedDateNotNull as DateKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//'Resolved' as DateType&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Resident Fct_Main&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendarLink:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(DateKey)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD EnteredDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ResolvedDateNotNull&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Fct_Main;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270767#M399763</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-19T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270768#M399764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I personally would prefer the while loop here, if you need to create a reference date per date in your interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result would be the same, but I think a while loop could perform better (you don't need to match against any master calendar dates that are outside the interval) and you can also easily create flags for e.g. closing and entry date in the link table itself (thus allowing also counting only new / closed tickets in the same chart using Reference date as dimension).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270768#M399764</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-19T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270769#M399765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, why are you trying to avoid the date link table with the reference dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, it will create another table, but even with some thousand cases lasting some years, it will still be only some million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use a date island to use as dimension and use advanced aggregation and a condition to check against your interval, but I think this will essentially just blow up the chart memory instead of your data model. And run time performance will be worse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270769#M399765</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-19T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270770#M399766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I noticed that Sunny's solution did not factor in the DateType and my MasterCalendarLink table, as you suggest in your comment:&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;&lt;EM&gt;closing and entry date in the link table itself (thus allowing also counting only new / closed tickets in the same chart using Reference date as dimension).&lt;/EM&gt;&lt;/SPAN&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;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&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;However, I am amazed at how fast he was able to meet the requirement I needed! I also learned a bit about intervalmatch.&amp;nbsp; If intervalMatch can work, somehow, it allows for a much leaner data model.&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&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;The issue with the while loop is that, there are millions of cases, and if the average case closes in 3 days for example, that adds a 3X factor on those rows in the bridge table.&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&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;I may just rethink this, and calculate a "Case age in days", and then report by MonthYear with &amp;lt;DateType={'Entered'}&amp;gt;.&amp;nbsp; I think Users will get the picture.&amp;nbsp;&amp;nbsp; I can still show CaseCount along with that.&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&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;Dave&lt;BR /&gt;&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270770#M399766</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-19T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270771#M399767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;I just added a reply to Stefan.&amp;nbsp; Please see that.&amp;nbsp; I have not given up on IntervalMatch, however.&amp;nbsp; I just need it to also take in consideration multiple date types (Entered, Resolved, Responded,etc) to be able to accomodate other charts where I sum case counts by those.&amp;nbsp; I am very impressed by how fast you have created these solutions!&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270771#M399767</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-19T19:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270772#M399768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creation of flags using While Loop or IntervalMatch is going to require a lot of resources.... I have done that within the sample as it was simple to do it from less records, but you can take a look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150120_Capture.PNG" style="height: 154px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was not sure how to check for Responded as there was not Responded date I think.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 19:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270772#M399768</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-19T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270773#M399769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Date link table I use when I have multiple date "roles" within the same fact.&amp;nbsp; I do need that, as in this example, I have roles of Resolved and Entered, and need separate measure for that under a single master calendar.&amp;nbsp; I am trying to avoid an additional CaseOpenIntersection table which would have a row for each MonthYear (period) that case is open.&amp;nbsp; That is what would add millions of rows.&amp;nbsp; I am hoping to avoid that by using CaseAge accoss period entered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270773#M399769</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-20T13:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working across time</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270774#M399770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late response.&amp;nbsp; I looked at your intervalmatch table, and it looks like it might parallel the separate table that I think might be best to implement if I need it.&amp;nbsp; That table would just loop tickets, and create a separate row for each period that a ticket is still open (between entered date and resolved date).&amp;nbsp; I am hoping my idea to use a [Ticket Age] metric, and just show # tickets by age over time (based on Entered Date), will suffice.&amp;nbsp; If it does, I do not need to build a separate "Ticket Period Open" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-across-time/m-p/1270774#M399770</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2017-01-25T19:58:06Z</dc:date>
    </item>
  </channel>
</rss>

