Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
akelleway
Contributor II
Contributor II

Display points on map within (x) km radius of selected point on another layer.

Hi,

I have map, as shown below, with one layer (yellow) to show various business locations, and a separate layer (blue) to show various airport locations.

akelleway_1-1733234761670.png

I am aiming to have this map set up so that when a user selects a business name from an adjacent table in the same sheet, it will zoom in to let's say a 50km radius of that point and only show the airports within that radius.

Currently the businesses are plotted using Coordinates (AgentLongitude_AgentLatitude), and the airports using IATA codes (AirportCode), but I do also have a coordinate field for these if required (AirportLongitude_AirportLatitude).

I had found a similar question from a few years ago here, but couldn't quite get it to work, so any help would be much appreciated.

Labels (5)
1 Reply
QFabian
MVP
MVP

Hi @akelleway one option is first in script create the distance between points, using for example : 

https://community.qlik.com/t5/New-to-Qlik-Analytics/Calculating-distance-between-points-using-longit...

then, with that new distance field, you can add a set analysis expression to specify the distance expected inside the map chart to include that points

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.