<?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 Set Analysis adding records to dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319183#M460106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a app that uses set analysis to tell me how many times a telephone number called on each previous selected day.&amp;nbsp; I thought that it would only look for records in the dimension, but if a telephone called on the day before, it adds that record in the dimension.&amp;nbsp; I need to get the set analysis to look back to the base day (dimension), but now I'm thinking aggr might be needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my expression.&amp;nbsp; I have 30 of them.&amp;nbsp; -1, -2, -3, and the further I go back, the more telephone numbers are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; I've searched and can't find a way to implement it.&amp;nbsp; Can anyone tell me what I'm doing wrong or if I'm taking the wrong approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fcrv2a.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168916_fcrv2a.PNG" style="height: 381px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fcrv2b.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168935_fcrv2b.PNG" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jul 2017 17:29:22 GMT</pubDate>
    <dc:creator>jcampbell474</dc:creator>
    <dc:date>2017-07-03T17:29:22Z</dc:date>
    <item>
      <title>Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319183#M460106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a app that uses set analysis to tell me how many times a telephone number called on each previous selected day.&amp;nbsp; I thought that it would only look for records in the dimension, but if a telephone called on the day before, it adds that record in the dimension.&amp;nbsp; I need to get the set analysis to look back to the base day (dimension), but now I'm thinking aggr might be needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my expression.&amp;nbsp; I have 30 of them.&amp;nbsp; -1, -2, -3, and the further I go back, the more telephone numbers are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; I've searched and can't find a way to implement it.&amp;nbsp; Can anyone tell me what I'm doing wrong or if I'm taking the wrong approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fcrv2a.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168916_fcrv2a.PNG" style="height: 381px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fcrv2b.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168935_fcrv2b.PNG" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319183#M460106</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-03T17:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319184#M460107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not looking your screenshot currently due to phone app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, you can show the variable how you are declare and first part can you move to single quote from double quotes in Set analysis. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319184#M460107</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-03T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319185#M460108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable is a date.&amp;nbsp; It works - get's the right date.&amp;nbsp; I changed the double quotes to single and it didn't change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319185#M460108</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-03T17:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319186#M460109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will you able to share the variable expression? I am sorry, if I miss read the question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319186#M460109</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-03T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319187#M460110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a trigger in a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetFieldSelections(islandDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user selects a date (that is not tied to the data), which populates vdatekey.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319187#M460110</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-03T17:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319188#M460111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be give it a shot&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;sum({&amp;lt;islandDate={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319188#M460111</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-03T17:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319189#M460112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field islanddate isn't tied to the data.&amp;nbsp; It can't be used.&amp;nbsp; It is just an orphaned table.&amp;nbsp; Datekey is tied to the data.&amp;nbsp; It's intersecting on telephone numbers, and I need it to take the base date into consideration, too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319189#M460112</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-03T17:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319190#M460113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a few expressions that I've tried.&amp;nbsp; I need the set to filter to only the telephone numbers on datekey or vdatekey (they are both the same date).&amp;nbsp; Telephone number is the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//sum(aggr(sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct),TelephoneNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//if(sum({&amp;lt;datekey={'$(vdatekey)'}&amp;gt;}Ct)=0,'',sum(aggr(sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct),TelephoneNum)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//if(sum(aggr(sum({&amp;lt;datekey={"$(=Date(vdatekey))"}&amp;gt;}Ct),TelephoneNum))=0,'',sum(aggr(sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct),TelephoneNum)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 19:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319190#M460113</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-03T19:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319191#M460114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out.&amp;nbsp; Fyi, here is the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(aggr(max({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}TelephoneNum),TelephoneNum) = aggr(max({&amp;lt;datekey={"$(=Date(vdatekey))"}&amp;gt;}TelephoneNum),TelephoneNum),sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 20:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319191#M460114</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-03T20:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319192#M460115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good and thanks for update. You can flag your response as correct answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 00:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319192#M460115</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-04T00:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis adding records to dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319193#M460116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; Tweaked it a little more.&amp;nbsp; Here's the final result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(aggr(only({&amp;lt;datekey={"$(=Date(vdatekey))"}&amp;gt;}TelephoneNum),TelephoneNum) = &lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(only({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}TelephoneNum),TelephoneNum) or&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(only({&amp;lt;datekey={"$(=Date(vdatekey))"}&amp;gt;}TelephoneNum),cName) = &lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(only({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}TelephoneNum),cName),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;datekey={"$(=Date(vdatekey - 1))"}&amp;gt;}Ct),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-adding-records-to-dimension/m-p/1319193#M460116</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2017-07-05T11:37:58Z</dc:date>
    </item>
  </channel>
</rss>

