<?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: Aggregation &amp; Indirect Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433832#M430971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a new field in the script like this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD AutoNumber(CallerId&amp;amp;MonthName(ContactDate)) as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CallerId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactOutcome,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactCounter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(ContactDate)) as MonthYear&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Hour = {"$(='&amp;gt;=' &amp;amp; MakeTime(1))"}, Key = e({&amp;lt;ContactOutcome = {'Answered'}&amp;gt;})&amp;gt;}ContactCounter)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give you a 1 against the month of August or Apr (Not sure if your date is MM/DD/YYYY or DD/MM/YYYY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2017 08:34:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-26T08:34:55Z</dc:date>
    <item>
      <title>Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433825#M430964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the number of calls in a month where the caller called for an hour and got unavailable messages and was never answered in that hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following as the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum({$&amp;lt;ContactOutcome={Unavailable}&lt;/P&gt;&lt;P&gt;,CallerId = e({$&amp;lt;ContactOutcome={Answered}&amp;gt;}&lt;/P&gt;&lt;P&gt;CallerId)&amp;gt;} ContactCounter)&lt;/P&gt;&lt;P&gt;,CallerId, Hour, ContactDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Year-Month as the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ContactCounter is a value of '1' for each record (each record is a separate call).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware this is not calculating correctly as the CallerId exclusion in the indirect set analysis appears to be performed on the whole set before the aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I change this expression so that the indirect set analysis is performed on the aggregation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to use a similar process to find the average number of calls &lt;SPAN style="font-size: 13.3333px;"&gt;over a month &lt;/SPAN&gt;which resulted in an unavailable outcome per caller made in a given hour where the caller &lt;STRONG&gt;had one or more&lt;/STRONG&gt; answered calls for that same hour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 15:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433825#M430964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433826#M430965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please send sample data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think element functions will work here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 15:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433826#M430965</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2017-10-25T15:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433827#M430966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the attachment illustrate enough, or do you require a larger set of data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433827#M430966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T16:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433828#M430967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this please:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Hour={"&amp;gt;1"},ContactOutcome={'Answered'}&amp;gt;}ContactCounter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 17:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433828#M430967</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2017-10-25T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433829#M430968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output from this dataset you have provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 23:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433829#M430968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-25T23:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433830#M430969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but that wouldn't work - Hour is hour of the day 0-23.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 08:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433830#M430969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T08:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433831#M430970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be 1 as CallerId "D" is the only caller to have an Unavailable call and no Answered call in the same hour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 08:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433831#M430970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T08:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation &amp; Indirect Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433832#M430971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a new field in the script like this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD AutoNumber(CallerId&amp;amp;MonthName(ContactDate)) as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CallerId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactOutcome,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactCounter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(ContactDate)) as MonthYear&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Hour = {"$(='&amp;gt;=' &amp;amp; MakeTime(1))"}, Key = e({&amp;lt;ContactOutcome = {'Answered'}&amp;gt;})&amp;gt;}ContactCounter)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give you a 1 against the month of August or Apr (Not sure if your date is MM/DD/YYYY or DD/MM/YYYY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 08:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Indirect-Set-Analysis/m-p/1433832#M430971</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-26T08:34:55Z</dc:date>
    </item>
  </channel>
</rss>

