<?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: Association based on a range of values possible ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875692#M653999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution by Jonathan most fitting in my scenario.&lt;/P&gt;&lt;P&gt;When I did a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;employee_Id &amp;amp; '-' &amp;amp; Date(Round([hiring date], 20)), there were still a couple of similar dates which fell in different 20' bucket and missed the join. Since I was using this in an applymap, in the null condition parameter I included one more similar join, this time with a range of 10.So the missed out joins in the first attempt made sure to join correctly in the second.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jul 2015 18:15:53 GMT</pubDate>
    <dc:creator>vishnus85</dc:creator>
    <dc:date>2015-07-19T18:15:53Z</dc:date>
    <item>
      <title>Association based on a range of values possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875688#M653995</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;We have a requirement to join the hiring information from two HR data sets. The only possible key would be a combination of employee_id and hiring date which I call %HiringKey. This approach works for 85% of the cases. But for 15%, the hiring date in both systems vary by 1-2 days since the source teams for these systems operate and report separately and there would sometimes be a delay in entering the information to the systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me take an example to explain such a scenario:&lt;/P&gt;&lt;P&gt;In data set A, we have employee_Id=1234 and hiring date as 07/01/2015. So the key generated would be 1234-07/01/2015&lt;/P&gt;&lt;P&gt;In date set B, we have the same transaction for employee id 1234 but the hiring date is slightly different as 07/02/2015. The key thus generated would be &lt;SPAN style="font-size: 13.3333330154419px;"&gt;1234-07/02/2015. And since these keys doesn't match, the required association is lost for this record between the systems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything that we can do at qlikview side so that an association is made if the dates at either side falls within a range plus or minus 10 days. Because, the scenario where same employee having hired twice within a 20 day period was ruled out by the business team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your thoughts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishnu S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 05:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875688#M653995</guid>
      <dc:creator>vishnus85</dc:creator>
      <dc:date>2015-07-15T05:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Association based on a range of values possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875689#M653996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create one mapping table using Emp_id and joining date from first set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now do applymap for the second data set, based so for the emp id joining date will be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general,I&amp;nbsp; think data should be correct at source level only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because joining date should be same, no matter from where the data was coming &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 05:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875689#M653996</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2015-07-15T05:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Association based on a range of values possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875690#M653997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could round the date to the nearest 20 of the date value. So the key would then be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; employee_Id &amp;amp; '-' &amp;amp; Date(Round([hiring date], 20))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 05:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875690#M653997</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-15T05:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Association based on a range of values possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875691#M653998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can join (full outer) the 2 tables and then check the hire date difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat='MM/DD/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&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gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DS1Final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident DS1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;where fabs(HireDate2-HireDate1)&amp;lt;=10;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table DS1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92887_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 06:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875691#M653998</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-15T06:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Association based on a range of values possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875692#M653999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution by Jonathan most fitting in my scenario.&lt;/P&gt;&lt;P&gt;When I did a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;employee_Id &amp;amp; '-' &amp;amp; Date(Round([hiring date], 20)), there were still a couple of similar dates which fell in different 20' bucket and missed the join. Since I was using this in an applymap, in the null condition parameter I included one more similar join, this time with a range of 10.So the missed out joins in the first attempt made sure to join correctly in the second.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 18:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Association-based-on-a-range-of-values-possible/m-p/875692#M653999</guid>
      <dc:creator>vishnus85</dc:creator>
      <dc:date>2015-07-19T18:15:53Z</dc:date>
    </item>
  </channel>
</rss>

