<?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: expression/scripting problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955556#M979652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;given coordinates this should be reasonably straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want assistance you're going to have to share them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 14:51:25 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2015-08-19T14:51:25Z</dc:date>
    <item>
      <title>intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955553#M979649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some vizualisation description to the subject area. Hope this help me to explain )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="96447" alt="viz1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96447_viz1.png" style="height: 354px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a person who moves between different departments: Dep 1, Dep 2, Dep 3 etc&lt;/P&gt;&lt;P&gt;We don't know his coordinates (x,y), all than we know about him are the Distances between him and certain points A, B, C,D etc (for example every half minute fixations in meters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="102" style="border: 1px solid #000000; width: 625px; height: 104px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Person_id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Point&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Distance&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We actually don't know in which Department his was at certain time. But it is considered that person visited department 1 if the distance between him and A point is greater than 1 but less than 5, and the distance to B point is greater than 2 but less 7 and the distance to E point is greater than 1 but less than 6.&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="96449" alt="viz2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/96449_viz2.png" style="height: 335px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The department's paramentrs&amp;nbsp; table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; width: 627px; height: 99px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Department&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Point&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Distance_from&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Distance_to&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dep 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dep 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dep 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dep 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dep 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Dep 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing the person position relative to 3 points we can consider which department he visited at certain time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result report shoul look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 630px; height: 71px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Person_id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;time&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Department&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dep 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dep 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to solve this task by if statement in expression and also by intervalmatch function, but it seems that i am doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let me know if&amp;nbsp; anyone has idea or decision of this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ruslan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955553#M979649</guid>
      <dc:creator />
      <dc:date>2015-08-19T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: expression/scripting problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955554#M979650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this isn't as simple as a straightforward intervalmatch, although that may be useful when you have your data manipulated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off I think you'll need to work out some coordinates for where your people are. For this, you may need some additional data. Currently, you have data such as&lt;/P&gt;&lt;P&gt;Person, Point and Distance.&lt;/P&gt;&lt;P&gt;You'll also need x,y coordinates of your Points in order to calculate the person's coordinates using some basic trigonometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, do you have the coordinates for the walls of your departments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955554#M979650</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-08-19T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: expression/scripting problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955555#M979651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have department's corners coordinates, also point coordinates. &lt;/P&gt;&lt;P&gt;Points dont lie on the rectangles (departments) perimeters.&lt;/P&gt;&lt;P&gt;I thought about trilateration approach to determine coordinates, but it seems hardcore way using qlikview (&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955555#M979651</guid>
      <dc:creator />
      <dc:date>2015-08-19T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: expression/scripting problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955556#M979652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;given coordinates this should be reasonably straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want assistance you're going to have to share them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955556#M979652</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-08-19T14:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: expression/scripting problem</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955557#M979653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Marcus !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached two tables: point coordinates and departments coordinates.&lt;/P&gt;&lt;P&gt;Their structure can be modified to any convenient form for analysis simplification.&lt;/P&gt;&lt;P&gt;How it can help?&lt;/P&gt;&lt;P&gt;Ruslan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 13:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955557#M979653</guid>
      <dc:creator />
      <dc:date>2015-08-20T13:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955558#M979654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one share ideas of realising such logic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 09:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch/m-p/955558#M979654</guid>
      <dc:creator />
      <dc:date>2015-09-23T09:07:21Z</dc:date>
    </item>
  </channel>
</rss>

