Geo… what?

One of the most significant changes Qlik has experienced so far is the substantial growth of their product family. What once was a one-man show, is now a robust portfolio that addresses several business needs. Do you want pixel-perfect reports? Hereā€™s NPrinting. You donā€™t like in-house deployments? Meet Qlik Sense Cloud. Do you need more data? Welcome to Qlik DataMarket. All these new modules help us work more efficiently, enrich our analyses, and ultimately, make better decisions.

One of the most interesting newcomers in this list is Qlik GeoAnalytics (formerly known as Idevio). Even though it isnā€™t exactly new, I think there are still some misconceptions around this product. Yes, it is a tool that allows you to create cool maps in Qlik, but thereā€™s much more to it. In this post, Iā€™ll show you some of my favorite features and how they can help you analyze geographic data. This might not be a comprehensive list, but hopefully it will give you an idea of the real potential behind GeoAnalytics.

34_01

Special thanks to Viktoria Lindback, Jonas Karlsson and Jonas LindĆ©n for helping me out with this post. I really appreciate it guys! By the way, all the examples I’ll use here are based on my last post about the public bike sharing system in my hometown.

Native Maps

Before going any further, letā€™s take a look at what you can achieve with native maps. In Qlik Sense we have two different options: bubbles and areas. If youā€™re lucky enough, the platform will recognize your fields as locations when you load them and it will automagically treat them as points or polygons. If not (in my experience, 90% of the times), youā€™ll have to use the GeoMakePoint function and tag your fields with $geoname, $geopoint or $geomultipolygon. After that, you can easily modify sizes and colors based on standard expressions.

34_02

In QlikView… well, there are no native maps (bummer ā˜¹). However, we usually rely on other tricks to create them.

More Options

GeoAnalytics is definitely not the only way to add this kind of functionality to your dashbaords. There are many other interesting tools such as GeoQlik, Articque, NPGeoMap and QlikMaps. If you’re looking for a simple visualization (maybe a heatmap of something like that), there are some cool extensions in Qlik Branch as well.

About GeoAnalytics

Simply put, GeoAnalytics has two parts: a set of extensions and a connector. While the extensions allow you to create maps, layers and animations, the connector brings new data to your model in many forms (times, distances, associations, areas, etc.).

In terms of deployment options, you can choose to keep everything in-house (a bit more expensive), or let the magic happen on Qlikā€™s side (if you donā€™t have ultra-strict security schemas in your company or maaaaaasive amounts of data, this will work perfectly fine).

Finally, this platform will work for both QlikView and Qlik Sense. I canā€™t really tell you why, but personally, I prefer the later. GeoAnalytics feels more ā€œsenseyā€ than ā€œviewieā€.

Maps & Layers

Letā€™s start with the visual stuff. All your geo-visualizations will be composed of a map object (background and general controls) and one or several layers (the actual points or areas that represent your data).

About the maps: Classic navigation schema. Panning, zooming and selecting points is done exactly as you would expect. Cool thing: you can use the default maps or add a geodata layer to use other services (this will change the background image).

34_03

About the layers: There are 5 types of layers:

  1. Bubbles: You can customize shapes, sizes and colors, adjust transparency and display or hide labels depending on the zoom level.
  2. Areas: Polygons colored by dimension, measure or a custom Qlik expressions.
  3. Heatmap: Be careful, 90% of your users will go nuts after seeing this.
  4. Lines: Connects two locations or draws a polygon. Can be used as arrows.
  5. Charts: Yep, it uses pie or bar charts instead of bubbles. Not exactly my favorite (it’s a bit hard to interpret).
34_04
* Pug layer not included in Qlik GeoAnalytics

Multilayered Maps

Need more context? Well, all those representations I mentioned before can be displayed at the same time (Just take it easy, no one can read a map with 14 layers!). But relax, thereā€™s another option. See those rectangles in the right side of the screen? With them, you can turn each layer on and off. Therefore, your users can mix and match bubbles, areas, heatmaps or lines as needed.

34_05
Thereā€™s a super-cool function called Spacial IndexĀ and classic drill-down functionality so you can display data differently depending on the zoom level. Imagine starting your analysis with an area map of your country. Thereā€™s a specific region that you want to analyze, so you zoom in and it automatically turns into heatmap, clearly displaying some red areas. After scrolling a bit more, it eventually turns into a bubble map, where you can visualize each of your stores. Cool, right?

Popups. Pop Ups? Pop-ups? (Meh, whatever.)

Iā€™ve always said that small details can make a huge difference in your dashboards and popups are definitely one of those. Each object has an Info Bubble section where you can easily customize your messages using different formats, colors and Qlik expressions.

34_06

These formulas are usually big, but very easy to build:

34_07

Animations

Yeah, thereā€™s an animator extension in this package. In fact, itā€™s a timed selection for a field, so you can use it with other charts as well. It only selects an element, waits a second, picks the next one, and so on.

34_08
Sorry about the quality of this GIF šŸ˜¦

Unless youā€™re Hans Rosling, youā€™d better think twice before using animations in your apps. Remember that each step in your animation (i.e. a selection) will recalculate ALL the objects in the sheet (and maybe that will take more than just a millisecond).

Stuff you can work with

  • GeoAnalytics stuff: These guys have a cool location database! Depending on which country youā€™re trying to visualize, they may already have dots and polygons for states, cities, counties, postal codes, airports, lakes on lots of other places. Luckily you wonā€™t need to lift a finger to get those coordinates šŸ˜›
  • Your stuff: Cities and postal codes are useful, but surely youā€™ll need to visualize your own data too! Time to look for your catalogs and map those customers, stores or warehouses.
  • Other stuff: Lastly, you can work with not-so-common formats like GeoJSON, GML/WFS, ESRI Shape, ESRI JSON (You probably wonā€™t use these every day but itā€™s good to know you could).

About the connector

Besides the mapping capabilities I mentioned earlier, GeoAnalytics can bring new data to your model. In the script, you’ll have to create a connection and call a wizard to specify certain parameters. Most of the time, youā€™ll only have to tell GeoAnalytics which operation you want (there are 17 so far), which fields / points / areas you want to work with and maybe some specific things like the shape of the bins or the radius to cover.

34_09

The secret here is to understand what GeoAnalytics expects you to type in. Youā€™ll find some dropdown lists, but many fields are just input boxes and to be honest, they are not always easy to decipher. But donā€™t worry, this guide has everything you need to know, operation by operation, parameter by parameter. Oh, and donā€™t forget the Guides & Examples page, where you can download QVFs to do some reverse engineering.

Extra code

Yep, youā€™ll get new code in your script and it will be ultra-hard to understand. Luckily, you wonā€™t need to. Just reload the app and analyze the new tables that appear. I always rename the fields and join / map them to my catalogs so the model stays nice and tidy.

Cluster

Letā€™s start with the good stuff! If you need to group nearby locations for some reason, the Cluster operation will become your best friend. Just specify a dataset and youā€™ll get a new table with all the associations (Cluster ID, coordinates and the number of points related to it).

34_10

Binning

Bad idea: Map thousands of points in a small area, ending up with an unreadable blob over the map. Good idea: Use the Binning operation to group them in rectangles or hexagons and represent point density with colors.

34_11

Within

Totally fake scenario: youā€™re the mayor of a big city and your team has gathered the coordinates of each and every crime registered during the last year. You need a chart that displays the number of incidents by district but they forgot to add that field to their database. What do you do? Exactly, use the Within function to associate all the points to their respective areas.

34_16

Closest

Remember the bike stations from my last post? Well, I added some attractions to the data model (you know, museums, parks and stuff like that). Now, using the Closest operation, I can tell you the 10 nearest stations for each attraction (yeah, distance included!).

34_12

Dissolve

Letā€™s say your boss defined some arbitrary areas and assigned a sales rep to each one of them. Now, you want to merge them together in order to create broader regions for your supervisors. The answer: the Dissolve operation.

34_13

Simplify

Talking about areas, if your polygons are way too complex (like the roundabouts shown in the image), you can cut some edges with the Simplify operation.

34_14

Routes

Let me read your mind and answer all your questions:

  • Oh my God, can it really calculate routes? Yes, it can.
  • Will it give me the distance and estimated times as well? Yes, it will.
  • Does it consider traffic and accidents like Waze or Google Maps? No, it doesnā€™t.

34_15

Oh, I almost forget! You can also use images instead of bubbles, but you already saw that, right? By the way, whenever youā€™re dealing with distances, GeoAnalytics will give you 5 options: bird, pedestrian, bike, car and truck. Each one has average speeds and road restrictions.

Travel Areas & Intersect

Imagine you work at a restaurant chain and got your hands around a dataset with the coordinates of all the restaurants in town (not only yours, but also your competitorsā€™). By using the Travel Area operation, you generate polygons representing a 10-minute walk around each one of them. Then, you invoke the Intersects function to calculate the relative area overlap between your restaurants and Fancy Noodles Inc, your most hated rival. Finally, you focus your marketing efforts (flyers or something) in those areas, save thousands and increase your sales. Yep, you saved the day (once again, not at all one of my current projects!).

34_17

Final Thoughts

As you can see, creating cool maps is not the only thing you can do with this platform. Some of the operations available in the GeoAnalytics connector can definitely give you a new perspective of the data and make your decisions much simpler. If you want to see more features and demos, be sure to visit their website or check these videos.

Well, thatā€™s all for todayā€™s post. I hope you liked it! If you have any questions, comments or suggestions, donā€™t hesitate to use the section below.

Thanks for reading. Until next time! šŸ˜‰

 

3 thoughts on “Geo… what?

  1. Excellent weblog right here! Also your website quite a bit up fast! What web host are you using? Can I am getting your associate hyperlink to your host? I want my website loaded up as quickly as yours lol

Leave a comment