<?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 Problem with dates: Solve in set analysis or the load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114804#M633797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next example I'd like to solve a problem with dates from 2 tables. (And it's giving me headaches since a week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table "Actuals" we have customers(Site_id) with actuals for different dates.&lt;/P&gt;&lt;P&gt;In table Interactions we have interactions (if there are any) of these customers.&lt;/P&gt;&lt;P&gt;Now I'd like to see the interactions on the dates which are relevant for the date of the actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126633_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The yellow marked are the ones I'd like to see combined.&lt;/P&gt;&lt;P&gt;So, for instance for Actual date 6-5-2016 it only makes sense that the interaction date 9-5-2016 is corresponding.&lt;/P&gt;&lt;P&gt;Because the interaction on the 11-5-2016 is for another actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126634_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Here it makes no sense that there is an Interaction_Date of 3-5-2016 linked to the actual date of 17-5-2016 (because that's not possible of course)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************&lt;/P&gt;&lt;P&gt;Attached the test data in Excel and the test App.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully somebody has an idea to either fix this in the load or with set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 10:35:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-02T10:35:49Z</dc:date>
    <item>
      <title>Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114804#M633797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next example I'd like to solve a problem with dates from 2 tables. (And it's giving me headaches since a week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table "Actuals" we have customers(Site_id) with actuals for different dates.&lt;/P&gt;&lt;P&gt;In table Interactions we have interactions (if there are any) of these customers.&lt;/P&gt;&lt;P&gt;Now I'd like to see the interactions on the dates which are relevant for the date of the actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126633_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The yellow marked are the ones I'd like to see combined.&lt;/P&gt;&lt;P&gt;So, for instance for Actual date 6-5-2016 it only makes sense that the interaction date 9-5-2016 is corresponding.&lt;/P&gt;&lt;P&gt;Because the interaction on the 11-5-2016 is for another actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126634_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Here it makes no sense that there is an Interaction_Date of 3-5-2016 linked to the actual date of 17-5-2016 (because that's not possible of course)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************&lt;/P&gt;&lt;P&gt;Attached the test data in Excel and the test App.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully somebody has an idea to either fix this in the load or with set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 10:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114804#M633797</guid>
      <dc:creator />
      <dc:date>2016-06-02T10:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114805#M633798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand, what is the expected output here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 13:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114805#M633798</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T13:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114806#M633799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Are you looking for the nearest actual date which is either less than or equal to the interaction date for each interaction? As in your example interaction 03.05.16 should be associated with the actual date of 03.05.16 but not with any actual date that is greater than the interaction date? Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 13:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114806#M633799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-02T13:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114807#M633800</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 should look like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126671_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the green combinations are valid / the red ones not.&lt;/P&gt;&lt;P&gt;Rules:&lt;/P&gt;&lt;P&gt;1. Interaction_Date &amp;gt;= Actual_Date (Cell C6 compared to Cell B6)&lt;/P&gt;&lt;P&gt;2. Interaction_Date NOT &amp;gt; &lt;STRONG style="text-decoration: underline;"&gt;Next&lt;/STRONG&gt; Actual date&amp;nbsp; (Cell C2/C3/C4 compared to Cell B6)&lt;/P&gt;&lt;P&gt;3. Show also Actual dates where there NO Interaction dates (yellow marked Cell I6...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's more clear now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 13:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114807#M633800</guid>
      <dc:creator />
      <dc:date>2016-06-02T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114808#M633801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was not able to get the last requirement done, but rest 2 are working for QV12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Interaction_Date &amp;gt;= Actual_Date and Interaction_Date &amp;lt; Aggr(NODISTINCT Below(Actual_Date), Site_Id, (Actual_Date,(Numeric))), Sum(Interaction))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126695_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 15:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114808#M633801</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T15:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114809#M633802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Okay...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution is the outcome, indeed without the last requirement.&lt;/P&gt;&lt;P&gt;Thanks for showing it's possible &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately we're using Q11.20.xxxx&lt;/P&gt;&lt;P&gt;So, the expression does not work...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126767_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************************************************************************&lt;/P&gt;&lt;P&gt;I think I'm going to try to load it with an FOR - NEXT statement.&lt;/P&gt;&lt;P&gt;But also here is something going wrong...&lt;/P&gt;&lt;P&gt;AND I'm not sure how the NOCONCATENATE .... WHERE NOT EXISTS works exactly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at my LOAD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can load all data but it also gives me back 30+ tables!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126784_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 09:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114809#M633802</guid>
      <dc:creator />
      <dc:date>2016-06-03T09:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dates: Solve in set analysis or the load</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114810#M633803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason it doesn't work in QV11.2 IS because I am using a new thing that is only available for QV12 and Qlik Sense&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;‌. You might be able to get this to work, if you can get the sort order right in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I won't have the time to troubleshoot your script, but I hope some else might be able to chip in &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 12:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-dates-Solve-in-set-analysis-or-the-load/m-p/1114810#M633803</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-03T12:00:59Z</dc:date>
    </item>
  </channel>
</rss>

