Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

intervalmatch

Hello!

I made some vizualisation description to the subject area. Hope this help me to explain )

viz1.png

There is a person who moves between different departments: Dep 1, Dep 2, Dep 3 etc

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)

The table looks like this

Person_idtimePointDistance
11:00:00A4
11:00:00B3
11:00:00E2
12:00:00B2

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.

!

viz2.png

The department's paramentrs  table looks like this:

DepartmentPointDistance_fromDistance_to
Dep 1A15
Dep 1B27
Dep 1E16
Dep 2B15
Dep 2C49
Dep 2G16

Knowing the person position relative to 3 points we can consider which department he visited at certain time.

The result report shoul look like this:

Person_idtimeDepartment
11:00:00Dep 1
12:00:00Dep 2

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.

Let me know if  anyone has idea or decision of this.


Thank you in advance

Ruslan

5 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Hi Ruslan,

this isn't as simple as a straightforward intervalmatch, although that may be useful when you have your data manipulated.

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

Person, Point and Distance.

You'll also need x,y coordinates of your Points in order to calculate the person's coordinates using some basic trigonometry.

Also, do you have the coordinates for the walls of your departments?

Marcus

Not applicable
Author

Hi Marcus !

Thanks for reply

Yes, I have department's corners coordinates, also point coordinates.

Points dont lie on the rectangles (departments) perimeters.

I thought about trilateration approach to determine coordinates, but it seems hardcore way using qlikview (

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Hi Ruslan,

given coordinates this should be reasonably straightforward.

However, if you want assistance you're going to have to share them!

Marcus

Not applicable
Author

hi Marcus !

I attached two tables: point coordinates and departments coordinates.

Their structure can be modified to any convenient form for analysis simplification.

How it can help?

Ruslan

Not applicable
Author

Can any one share ideas of realising such logic?