Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. ·...

21
Qlik GeoAnalytics Example: Drill-Down Map Qlik Sense ® November 2017 Copyright © 1993-2017 QlikTech International AB. All rights reserved.

Transcript of Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. ·...

Page 1: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

Qlik GeoAnalytics Example: Drill-DownMapQlik Sense®

November 2017Copyright © 1993-2017 QlikTech International AB. All rights reserved.

Page 2: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

Copyright © 1993-2017 QlikTech International AB. All rights reserved.

Qlik®, QlikTech®, Qlik Sense®, QlikView®, Sense® and the Qlik logo are trademarks which have beenregistered in multiple countries or otherwise used as trademarks byQlikTech International AB. Othertrademarks referenced herein are the trademarks of their respective owners.

Page 3: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 3

1 GeoAnalytics example: Drill-down map 41.1 Example 4Dataset 6

1.2 Instructions 161. Creating the drill-down dimensions 162. Adding themap layer 173. Adding the State area layer 174. Adding the County area layer 185. Adding the City bubble layer 196. Adding the Airport bubble layer 197. Add the Resource filter pane 20

1.3 Result 21

Contents

Page 4: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

1 GeoAnalytics example: Drill-down mapWhen creating a map that hasmultiple points of data located in a wide geographical area, you can use drill-down dimensions to display your layers in a hierarchy of selection. This enables you to use different layers atdifferent levels within your map, ensuring only the most relevant information is being displayed.

This example will show you how to build a GeoAnalytics map a top-level area layer that drills down intoanother area layer and two bubble layers.

1.1 ExampleWe have a list of all historical sites in the United States National Park Service's National Register of Historicplaces. When we add the cities that historical sites are located in to a map as a bubble layer, while we getaccurate locations for our bubbles, it could be made more understandable with better organization.

How then can we organize this information better, especially if we also want to add in another bubble layercontaining airports? 

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 4

Page 5: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

To solve this problem, we will create a map of the United States of America with a layer of states that drillsdown to the county level. Drilling down to the county level will also show as data bubbles the cities thatcontain the historical sites as well as all airports for that state and the surrounding states. We will also createcustom info bubbles to provide relevant information to our users.

Initial view of map

Drilled down view of map

This example creates a map of the United States of America with distinct areas for states. When a state isselected, the map drills down to the state counties that contain cities with historical landmarks as well as allairports for that state and surrounding states are made visible. This example adds custom labels so thatcounties display a count of howmany landmarks they have and cities display a count of their landmarks aswell as the name of landmarks (if there is room in the info bubble).

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 5

Page 6: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

DatasetThis example uses two sets of data:

l FED_LI_2015.xlsxThis data set is available from the National Park Service's National Register of Historic Places. Itcontains data about all registered history places, their location, and the federal agencies associated tothem.≤ FED_LI_2015.xlsx

When using this data set, it is recommended that you perform the following data cleanup beforeloading the data intoData manager:

1. Delete the first 5 rows of data.

2. Convert rows 6 and 7 into a single header row.

3. Delete row 4926 (STATE DEPARTMENT 81000703 American Legation 8 Zankat America(Rue d'Amerique) MOROCCOMorocco Tangier 19810108). This row contains a locationoutside of the United States, which will introduce an error into the visualizations.

l Airport dataThis table contains data for airports in the United States. It consists of each airport's International AirTransport Association (IATA) code, city, and state or territory.You must import this data into Qlik Sense by adding to a spreadsheet that you then import into QlikSense.Airport data

Airport AirportCity AirportState

ABE Allentown/Bethlehem/Easton, PA PA

ABI Abilene, TX TX

ABQ Albuquerque, NM NM

ABR Aberdeen, SD SD

ABY Albany, GA GA

ACT Waco, TX TX

ACV Arcata/Eureka, CA CA

ADK Adak Island, AK AK

ADQ Kodiak, AK AK

AEX Alexandria, LA LA

AGS Augusta, GA GA

ALB Albany, NY NY

ALO Waterloo, IA IA

AMA Amarillo, TX TX

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 6

Page 7: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

ANC Anchorage, AK AK

APN Alpena, MI MI

ART Watertown, NY NY

ASE Aspen, CO CO

ATL Atlanta, GA GA

ATW Appleton, WI WI

AUS Austin, TX TX

AVL Asheville, NC NC

AVP Scranton/Wilkes-Barre, PA PA

AZO Kalamazoo, MI MI

BDL Hartford, CT CT

BET Bethel, AK AK

BFL Bakersfield, CA CA

BGR Bangor, ME ME

BHM Birmingham, AL AL

BIL Billings, MT MT

BIS Bismarck/Mandan, ND ND

BJI Bemidji, MN MN

BKG Branson, MO MO

BLI Bellingham, WA WA

BMI Bloomington/Normal, IL IL

BNA Nashville, TN TN

BOI Boise, ID ID

BOS Boston, MA MA

BPT Beaumont/Port Arthur, TX TX

BQK Brunswick, GA GA

BQN Aguadilla, PR PR

BRD Brainerd, MN MN

BRO Brownsville, TX TX

BRW Barrow, AK AK

BTM Butte, MT MT

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 7

Page 8: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

BTR Baton Rouge, LA LA

BTV Burlington, VT VT

BUF Buffalo, NY NY

BUR Burbank, CA CA

BWI Baltimore, MD MD

BZN Bozeman, MT MT

CAE Columbia, SC SC

CAK Akron, OH OH

CDC Cedar City, UT UT

CDV Cordova, AK AK

CEC Crescent City, CA CA

CHA Chattanooga, TN TN

CHO Charlottesville, VA VA

CHS Charleston, SC SC

CIC Chico, CA CA

CID Cedar Rapids/Iowa City, IA IA

CLD Carlsbad, CA CA

CLE Cleveland, OH OH

CLL College Station/Bryan, TX TX

CLT Charlotte, NC NC

CMH Columbus, OH OH

CMI Champaign/Urbana, IL IL

CMX Hancock/Houghton, MI MI

COD Cody, WY WY

COS Colorado Springs, CO CO

COU Columbia, MO MO

CPR Casper, WY WY

CRP Corpus Christi, TX TX

CRW Charleston/Dunbar, WV WV

CSG Columbus, GA GA

CWA Mosinee, WI WI

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 8

Page 9: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

CVG Cincinnati, OH KY

DAB Daytona Beach, FL FL

DAL Dallas, TX TX

DAY Dayton, OH OH

DBQ Dubuque, IA IA

DCA Washington, DC VA

DEN Denver, CO CO

DFW Dallas/Fort Worth, TX TX

DHN Dothan, AL AL

DIK Dickinson, ND ND

DLH Duluth, MN MN

DRO Durango, CO CO

DSM DesMoines, IA IA

DTW Detroit, MI MI

EAU Eau Claire, WI WI

ECP Panama City, FL FL

EGE Eagle, CO CO

EKO Elko, NV NV

ELM Elmira/Corning, NY NY

ELP El Paso, TX TX

EUG Eugene, OR OR

EWN NewBern/Morehead/Beaufort, NC NC

EWR Newark, NJ NJ

EVV Evansville, IN IN

EYW KeyWest, FL FL

FAI Fairbanks, AK AK

FAR Fargo, ND ND

FAT Fresno, CA CA

FAY Fayetteville, NC NC

FCA Kalispell, MT MT

FLG Flagstaff, AZ AZ

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 9

Page 10: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

FLL Fort Lauderdale, FL FL

FNT Flint, MI MI

FOE Topeka, KS KS

FSD Sioux Falls, SD SD

FSM Fort Smith, AR AR

FWA Fort Wayne, IN IN

GCC Gillette, WY WY

GCK Garden City, KS KS

GEG Spokane, WA WA

GFK Grand Forks, ND ND

GGG Longview, TX TX

GJT Grand Junction, CO CO

GNV Gainesville, FL FL

GPT Gulfport/Biloxi, MS MS

GRB Green Bay, WI WI

GRI Grand Island, NE NE

GRK Killeen, TX TX

GRR Grand Rapids, MI MI

GSO Greensboro/High Point, NC NC

GSP Greer, SC SC

GTF Great Falls, MT MT

GTR Columbus, MS MS

GUC Gunnison, CO CO

GUM Guam, TT TT

HDN Hayden, CO CO

HIB Hibbing, MN MN

HLN Helena, MT MT

HNL Honolulu, HI HI

HOB Hobbs, NM NM

HOU Houston, TX TX

HPN White Plains, NY NY

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 10

Page 11: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

HRL Harlingen/San Benito, TX TX

HSV Huntsville, AL AL

IAD Washington, DC VA

IAH Houston, TX TX

ICT Wichita, KS KS

IDA Idaho Falls, ID ID

ILG Wilmington, DE DE

ILM Wilmington, NC NC

IMT Iron Mountain/Kingsfd, MI MI

IND Indianapolis, IN IN

INL International Falls, MN MN

ISN Williston, ND ND

ISP Islip, NY NY

ITO Hilo, HI HI

JAC Jackson, WY WY

JAN Jackson/Vicksburg, MS MS

JAX Jacksonville, FL FL

JFK New York, NY NY

JLN Joplin, MO MO

JNU Juneau, AK AK

KOA Kona, HI HI

KTN Ketchikan, AK AK

LAN Lansing, MI MI

LAR Laramie, WY WY

LAS Las Vegas, NV NV

LAW Lawton/Fort Sill, OK OK

LAX Los Angeles, CA CA

LBB Lubbock, TX TX

LCH Lake Charles, LA LA

LEX Lexington, KY KY

LFT Lafayette, LA LA

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 11

Page 12: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

LGA New York, NY NY

LGB Long Beach, CA CA

LIH Lihue, HI HI

LIT Little Rock, AR AR

LMT Klamath Falls, OR OR

LNK Lincoln, NE NE

LRD Laredo, TX TX

LSE La Crosse, WI WI

LWS Lewiston, ID ID

MAF Midland/Odessa, TX TX

MBS Saginaw/Bay City/Midland, MI MI

MCI Kansas City, MO MO

MCO Orlando, FL FL

MDT Harrisburg, PA PA

MDW Chicago, IL IL

MEM Memphis, TN TN

MFE Mission/McAllen/Edinburg, TX TX

MFR Medford, OR OR

MGM Montgomery, AL AL

MHK Manhattan/Ft. Riley, KS KS

MHT Manchester, NH NH

MIA Miami, FL FL

MKE Milwaukee, WI WI

MKG Muskegon, MI MI

MLB Melbourne, FL FL

MLI Moline, IL IL

MLU Monroe, LA LA

MMH Mammoth Lakes, CA CA

MOB Mobile, AL AL

MOD Modesto, CA CA

MOT Minot, ND ND

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 12

Page 13: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

MQT Marquette, MI MI

MRY Monterey, CA CA

MSN Madison, WI WI

MSO Missoula, MT MT

MSP Minneapolis, MN MN

MSY NewOrleans, LA LA

MTJ Montrose/Delta, CO CO

MYR Myrtle Beach, SC SC

OAJ Jacksonville/Camp Lejeune, NC NC

OAK Oakland, CA CA

OGG Kahului, HI HI

OKC Oklahoma City, OK OK

OMA Omaha, NE NE

OME Nome, AK AK

ONT Ontario, CA CA

ORD Chicago, IL IL

ORF Norfolk, VA VA

ORH Worcester, MA MA

OTH North Bend/Coos Bay, OR OR

OTZ Kotzebue, AK AK

PAH Paducah, KY KY

PBI West Palm Beach/Palm Beach, FL FL

PDX Portland, OR OR

PHF Newport News/Williamsburg, VA VA

PHL Philadelphia, PA PA

PHX Phoenix, AZ AZ

PIA Peoria, IL IL

PIH Pocatello, ID ID

PIT Pittsburgh, PA PA

PNS Pensacola, FL FL

PPG Pago Pago, TT TT

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 13

Page 14: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

PSC Pasco/Kennewick/Richland, WA WA

PSE Ponce, PR PR

PSG Petersburg, AK AK

PSP Palm Springs, CA CA

PVD Providence, RI RI

PWM Portland, ME ME

RAP Rapid City, SD SD

RDD Redding, CA CA

RDM Bend/Redmond, OR OR

RDU Raleigh/Durham, NC NC

RHI Rhinelander, WI WI

RIC Richmond, VA VA

RKS Rock Springs, WY WY

RNO Reno, NV NV

ROA Roanoke, VA VA

ROC Rochester, NY NY

ROW Roswell, NM NM

RST Rochester, MN MN

RSW Fort Myers, FL FL

SAF Santa Fe, NM NM

SAN San Diego, CA CA

SAT San Antonio, TX TX

SAV Savannah, GA GA

SBA Santa Barbara, CA CA

SBN South Bend, IN IN

SBP San Luis Obispo, CA CA

SCC Deadhorse, AK AK

SCE State College, PA PA

SDF Louisville, KY KY

SEA Seattle, WA WA

SFO San Francisco, CA CA

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 14

Page 15: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

SGF Springfield, MO MO

SGU St. George, UT UT

SHV Shreveport, LA LA

SIT Sitka, AK AK

SJC San Jose, CA CA

SJT San Angelo, TX TX

SJU San Juan, PR PR

SLC Salt Lake City, UT UT

SMF Sacramento, CA CA

SMX Santa Maria, CA CA

SNA Santa Ana, CA CA

SPI Springfield, IL IL

SPS Wichita Falls, TX TX

SRQ Sarasota/Bradenton, FL FL

STL St. Louis, MO MO

STT Charlotte Amalie, VI VI

STX Christiansted, VI VI

SUN Sun Valley/Hailey/Ketchum, ID ID

SUX Sioux City, IA IA

SWF Newburgh/Poughkeepsie, NY NY

SYR Syracuse, NY NY

TLH Tallahassee, FL FL

TOL Toledo, OH OH

TPA Tampa, FL FL

TRI Bristol/Johnson City/Kingsport, TN TN

TTN Trenton, NJ NJ

TUL Tulsa, OK OK

TUS Tucson, AZ AZ

TVC Traverse City, MI MI

TWF Twin Falls, ID ID

TXK Texarkana, AR AR

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 15

Page 16: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

Airport AirportCity AirportState

TYR Tyler, TX TX

TYS Knoxville, TN TN

VLD Valdosta, GA GA

VPS Valparaiso, FL FL

WRG Wrangell, AK AK

XNA Fayetteville, AR AR

YAK Yakutat, AK AK

YUM Yuma, AZ AZ

1.2 InstructionsOnce you have loaded the datasets into a new app in Qlik Sense, you can begin building your map. To makethe example map, you must complete the following tasks: 

1. Create the drill-down dimensions.

2. Add the map layer to our sheet.

3. Add the State area layer.

4. Add theCounty area layer.

5. Add theCity bubble layer.

6. Add the Airport bubble layer.

7. Add theResource filter pane.

1. Creating the drill-down dimensionsFirst, you need to create three drill-down dimensions. This will create the relationships between State and thefieldsCounty, City, and Airport, enabling theCounty, City, and Airport layers to become visible after a statefrom the State layer has been selected.

Do the following:

1. In sheet view, click@ Edit in the toolbar.

2. Clické to display the master items.

3. ClickDimensions.4. ClickCreate new.5. Select Drill-down.6. Add the field State to the dimension.

7. Add the fieldCounty to the dimension.

8. AfterName, type State-County.9. ClickAdd dimension.

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 16

Page 17: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

10. Add the field State to the dimension.

11. Add the fieldCity to the dimension.

12. AfterName, type State-City.13. ClickAdd dimension.14. Add the field State to the dimension.

15. Add the field Airport to the dimension.

16. AfterName, type State-Airport.17. ClickAdd dimension.18. ClickDone.

2. Adding themap layerThe next step is to add a GeoAnalytics map to your sheet..

Do the following:

1. In sheet view, click@ Edit in the toolbar.

2. Clickg to open extensions.

3. Drag and dropGeoAnalytics Map into your sheet.

3. Adding theState area layerThe first layer you add is the State area layer to which you add the dimension State-County to this layer. Youthen configure it so that the states are only visible at the first level of drill-down. In addition, you set thecountry as the United States to ensure we map to the state of Georgia rather than the nation of Georgia.

Do the following:

1. In sheet view, click@ Edit in the toolbar.

2. Clickg to open extensions.

3. Drag and dropGeoAnalytics Area Layer into your sheet.4. Select the GeoAnalytics Area Layer.

5. Click ID.6. ClickAdd Dimension and select State-County.7. Click Layer Options.8. Set theRestric Drill Down slider to 0.9. Click Location Options.10. In the Location Source drop-down, select Dimension.11. In theCountry drop-down, select United States.12. ClickAppearance.13. Click Legend.14. Set Color Legend toCustom.

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 17

Page 18: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

15. Clear Show Colors.16. ClickColors.17. Set Colors toCustom, select By dimension, and select 100 colors.18. Adjust the Transparency slider to half transparency.

19. Click@ Done.

4. Adding theCounty area layerNext, you add theCounty area layer. In addition to giving the layer the dimension State-County, you add alocation measure to the layer that will qualify each county to its state asmany county names are sharedacross states. You also specify in the location settings that theCounty field is anAdm 2 Area, as thiscorresponds to counties in the United States.

You also restrict the layer to be visible on all layers save for the top layer, as you only want State visible at thetop layer.

Finally, customize the info bubble using an expression to display the county name, a count of the sites in thecounty, and if there is only one site there, the name of the site.

Do the following:

1. In sheet view, click@ Edit in the toolbar.

2. Clickg to open extensions.

3. Drag and dropGeoAnalytics Area Layer into your sheet.4. Select the GeoAnalytics Area Layer.

5. Click ID.6. ClickAdd Dimension and select State-County.7. Click Location ID.8. ClickAdd measure and type the following expression: County&','&State&',US'.9. Click Layer Options.10. Set theRestric Drill Down slider to 1-16.11. Click Location Options.12. In the Location Source drop-down, select Measure.13. In the Type drop-down, select Adm 2 Area.14. ClickAppearance.15. Click Legend.16. Set Color Legend toCustom.

17. Clear Show Colors.18. ClickColors.19. Set Colors toCustom, select By dimension, and select 100 colors.20. Adjust the Transparency slider to half transparency.21. Click Info Bubble and set Info Bubble toCustom.

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 18

Page 19: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

22. Type the following expression: '<strong>'&County&'</br>'&'Sites: </strong>'&Count(Resource)&'</br>'&Resource.

23. Click@ Done.

5. Adding theCity bubble layerThe next layer you add is theCity bubble layer. You add State-City as the dimension and then add ameasure to qualify the cities, as some cities in different states have the same name.

You also restrict the layer to be visible on all layers save for the top layer, as you only want State visible at thetop layer.

In addition, we you add an expression so that this layer's info bubbles display the city name, a count of thesites in the city, and, if there is only one site there, the name of the site.

Do the following:

1. In sheet view, click@ Edit in the toolbar.

2. Clickg to open extensions.

3. Drag and dropGeoAnalytics Bubble Layer into your sheet.4. Select the GeoAnalytics Bubble Layer.

5. Click ID.6. ClickAdd Dimension and select State-City.7. Click Location, Size.8. ClickAdd measure and type the following expression: City&','&State.9. Click Layer Options.10. Set theRestric Drill Down slider to 1-16.11. In theCountry drop-down, select United States.12. ClickAppearance.13. ClickShape and Size.14. Adjust theRadius slider toMin 11 - Max 11.15. ClickColors.16. Set Colors toCustom, select Single color, and select a color.17. Click Info Bubble and set Info Bubble toCustom.

18. Type the following expression: '<strong>'&City&'</br>'&'Sites: </strong>'&Count(Resource)&'</br>'&Resource.

19. Click@ Done.

6. Adding theAirport bubble layerThe final layer you add to the map is the Airport bubble layer. You add the Airport field as the dimension, asGeoAnalytics recognizes IATA codes for placement, ensuring the airports are located in their actual positionrather than just in their city.

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 19

Page 20: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

You configure this layer so that it is not included in the auto zoom, this would prevent the map from zoomingin on state counties when a state is selected.

You also make a custom info bubble with an expression that displays the airport city's name and the airportcode. To do this, you must add the field AirportCity to the bubble layer as a measure so it can be used in theinfo bubble.

Do the following:

1. In sheet view, click@ Edit in the toolbar.

2. Clickg to open extensions.

3. Drag and dropGeoAnalytics Bubble Layer into your sheet.4. Select the GeoAnalytics Bubble Layer.

5. Click ID.6. ClickAdd Dimension and select State-Airport.7. Click Location, Size.8. ClickAdd measure and type the following expression: AirportCity.9. Click Layer Options.10. Set theRestric Drill Down slider to 1-16.11. Clear the Include in Auto Zoom check box.

12. Click Location Options.13. In the Location Source drop-down, select Dimension.14. In theCountry drop-down, select United States.15. ClickAppearance.16. ClickShape and Size.17. In the Shape drop-down, select Triangles.18. Adjust theRadius slider toMin 11 - Max 11.19. ClickColors.20. Set Colors toCustom, select Single color, and select a color.21. Click Info Bubble and set Info Bubble toCustom.

22. Type the following expression: '<strong>'&AirportCity&'</strong>'&'</br>'&Airport.

23. Click@ Done.

7. Add theResource filter paneFinally, you can optionally a filter pane containing the fieldResource. This provides you with a list of theavailable historical sites as you make selections within your map.

Do the following:

1. In the assets panel, drag and drop a filter pane into the sheet.

2. ClickAdd dimension.

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 20

Page 21: Qlik GeoAnalytics Example: Drill-Down Map · 2017. 11. 7. · QlikGeoAnalyticsExample:Drill-DownMap-QlikSense,November2017 3 1GeoAnalyticsexample: Drill-downmap 4 1.1Example 4 Dataset

1   GeoAnalytics example: Drill-downmap

3. Add a filter pane containing the fieldResource.

1.3 ResultYou now have a completed GeoAnalytics map that contains two area layers and two bubble layers. When youselect a state in your GeoAnalytics map, it should now zoom into the state's counties, where you can see thecities and airports. If you hover your cursor over the county, you should see the county name, a count of howmany historical sites are in the county, and if there is a single site, that site's name. If you hover your cursorover a city, you should see the city name, a count of howmany historical sites are in the city, and if there is asingle site, that site's name. If you hover your cursor over an airport, you should see the city name and theairport code.

Qlik GeoAnalytics Example: Drill-DownMap - Qlik Sense, November 2017 21