Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Latest commit

 

History

History
862 lines (443 loc) · 38.9 KB

File metadata and controls

862 lines (443 loc) · 38.9 KB

Section 9 - Geo Visualizations Deep Dive

ℹ️Objective: Use Geo Maps in SAP Analytics Cloud to interpret geo-enriched models and enhance your dashboard’s analytic capabilities. Develop an understanding of the various features available in geo visualizations to customize your insights.

Estimated Time: 20 mins

Exercise Description: You need to do a deeper analysis on BestRun’s regions and understand what drives geographical differences in the company’s performance. You need to leverage geo-spatial analytic capabilities of SAP Analytics Cloud to create new geo maps for your analysis.

Key Features:

  • Create your own geo-enriched models with acquired data
  • Employ heat maps to gather insights on geo data density
  • Understand the use of distance filters and the lasso tool in analyzing your hypotheses
  • Use tooltips, labels, and overlapping points to enhance the insights in your geo map
  • Change your basemap layer to view your geo enriched data in different contexts
  • Style your geo map for clear and informative visualizations

⚠️Disclaimer When completing exercises, some data values in the screenshots may not match what you see on your screen. This is because the dynamic time filters that were applied at the time the screenshots were taken is different from the current system date.


⚠️Excercise Check! Does your story look like this?

9-1

  1. Click Files

9-2

🚩If you are not in the TechEd 2021 folder, follow the path: Public/TechEd 2021

  1. Select Section 9.0 - Geo Visualizations(Start)

  2. Click Copy To

9-3

4. Click MyFiles

9-4

5. Save the file in MyFiles under the name "ANA260_Section 9_Your Initials"

6. Click OK

9-5

7. Click MyFiles

9-6

8. Open ANA260_Section 9_Your Initials file

9-7

9. Click Edit

9-8

10. Click Shipping Analysis Page

9-9

ℹ️Excercise Check! Does your dashboard look like this screenshot?

9-11

🚩In our Shipping Analysis page, we prepared a variety of visualizations that will be used conjunctly with our geo map in analysis. The first chart is a bar graph of sales revenue per region. This chart is linked to our geo map and will filter regions on the geo map based on chart selection.

9-12

🚩The second visualization is a table displaying the No of Delivered Orders and Avg Delivery Times for stores in our shipping model. This chart has linked analysis filtering applied from our geo map and will filter entries based on selections made on our geo map.

9-13

11. Scroll to the bottom

12. Select the Geo Map already created for you

9-14

13. Click Designer to open Builder Panel (in case not already open)

🚩We want to choose a layer that will help us visualize the distribution of our measure, Average Delivery Time, in our geo visualization. The Heat Map Layer is a good way to visualize the data density of a measure on our map. Let us create this layer in our geo map

14. Click Add Layer

9-15

15. Rename the layer to Order Delivery Time Density

Let us change the model for this layer to the shipping model which contains our desired measures. You can add layers sourcing measures and dimensions from multiple models on a single geo visualization, enhancing your ability to compare data.

16. Click Select Model

9-rr1

17. Click ANA260_SHIPPING_INFO

9-rr2

18. Click OK

9-18

ℹ️SAP Analytics Cloud offers a variety of layers for geographical visualizations. The most common used ones are
Bubble Layer, which shows each location as a bubble. Using color and size of the bubble allows us to see correlation between different measures Choropleth Layer shows the shape of a geo location and allows drilling from aggregated levels such as country into smaller areas such as regions Heat Map Layer, allows to show the concentration of geographical locations

For your next step you would like to view your data in a heat map.

19. Click Choose Layer Type

20. Click Heat Map Layer

9-19

ℹ️Let us add our geo enriched dimension to this geo map.

21. Click + Add Location Dimension

9-20

22. Click Store Location

9-21

🚩We want to look at Avg Delivery Time, a calculated measure in our model, to look at the density of delivery times in our heat map layer.

23. Click Add Measure

9-22

24. Scroll and click Avg Delivery Time

9-23

25. Click OK

9-24

⚠️Quality check! Does your geo map look like this screenshot after applying the heat map layer and zooming in?

🚩Our Heat Map layer looks great, but the scale may be too large for our desired purpose. We can change the gradient properties of our heatmap to improve our visualization and make it easier to discover clusters of outlier delivery times.

9-25

26. Click Edit Layer

9-26

🚩Let us reduce the blur radius so it is clearerwhere our high and low average delivery times are present in Spain. The blur radius determines the size of each data point and how it overlaps with other values. We can improve the definition between pointsby reducing the blur radius.

27. Click Expand on Avg Delivery Time

28. Change the Blue Radius from 40% to 20%

29. Click OK

9-27

⚠️Quality check! Does your geo map look like this screenshot after changing the blur radius?

9-28

🚩Let us move our geo map back to look at delivery times in Spain

30. Click into our Geo Map, hold and drag to be looking at Spain

31. Zoom into the cluster in Spain by scrolling your mouse wheel up.

9-29

🚩You can change the appearance of the heat map layer as well by zooming in and out of the geo map and focusing on areas of interest. When we zoom into Spain, we notice there are some distinct clusters of higher average delivery times. Let us investigate this further.

9-30

🚩Let us create a new layer that looks at our delivery time measures at a store level. First, let us hide our heat map layer.

32. Click Hide on Order Delivery Time Density

33. Click + Add Layer

9-31

🚩We are going to create a layer that shows our delivery measures on a store by store basis to further our analysis

34. Rename the layer to Store Location Analysis

35. Select ANA260_SHIPPING_INFO if not already selected

9-32

🚩We want the ability to drill up and down in our layer from a store level to an aggregated country level (i.e.Spain). Let us choose to create a choropleth layer.

36. Click Choose Layer Type

37. Click Chloropleth/ Drill Layer

9-33

🚩We can choose to use bubble instead of choropleth in the style of our drill down layer. This will represent our hierarchy members in the form of bubbles on the geo map. Since we want to look at individual stores, this is preferred!

38. Click Choose Style

39. Click Bubble

9-34

40. Click + Add Location Dimension

9-35

41. Click StoreLocation

9-36

42. Click Add Measure/Dimension

9-37

🚩Let us add additional measures into our analysis. We can choose to color code our bubbles with the Average # of Delivered Orders to see if this measure is related to our delivery times.

43. Click Average # of Delivered Orders

9-38

44. Click + Add Measure

9-39

🚩We are choosing average delivery time as our bubble size, so it is easy to pinpoint which stores are outliers in our modeled data.

45. Scroll and Click Avg Delivery Time

9-40

⚠️Quality check! Does your geo map look like this screenshot after adding the new choropleth layer?

9-41

🚩Based on our current geo map, the sizing of our bubbles does not suit our analysis of delivery times. We can customize how our measure is translated into bubble size to improve our visualization

46. Click Expand on Avg Delivery Time

🚩Changing the range for our bubbles will help us identify outliers in our geo map based on our measure, Avg Delivery Time. Let us changes these ranges for the hierarchy levels we are interested in: Country, Region, and StoreLocation.

47. Expand Range for Country

48. Change upper range from 100% to 500

49. Click outside the pop-up.

9-42

50. Expand Range for Region

51. Change upper range from 100% to 500%

52. Click outside the pop-up.

9-43

53. Expand Range for StoreLocation

54. Change upper range from 100% to 500%

55. Click outside the pop-up.

56. Click OK

9-44

⚠️Quality check! Does our geo map look like this screenshot after Bubble Size changes? It is now much easier to differentiate the hierarchy level members on our geo map.

9-45

57. Click Spain

58. Click Drill Down

9-46

⚠️Quality check! Does your geo map look like this screenshot after drilling down?

🚩We can see that the La Rioja region in Spain seems to have high average delivery times (with its large bubble) and high numbers of delivered orders. On the other hand, Castilla Leon has very low average delivery times. This is very informative, and we should look at this layer on an individual store level.

9-47

🚩Before we drill down again, let us check to see how our hierarchy is defined.

59. Click Navigate up/down the hierarchy

🚩Let us choose the hierarchy for the current map layer we are looking at.

60. Click Store Location

9-48

🚩As we can see, there are 2 additional hierarchy layers, Sub-Region 1 and Sub-Region 2, before we reach our desired StoreLocation level. Let us simplify our hierarchy to two levels, Country and StoreLocation, for efficiency purposes

9-49

🚩We can customize which hierarchy levels are drillable in our choropleth layer. This is a performance best practice tip! Rendering additional hierarchy levels that we are not interested in is both time and resource intensive.

61. Click the Hierarchy option for Store Location Analysis

9-50

62. Uncheck Show Region

63. Uncheck Show Sub-Region 1

64. Uncheck Show Sub-Region 2

65. Click Save

9-51

⚠️Quality check! Does your geo map look like this screenshot? Now, that we have changed the hierarchies, our geo map has reset to the country hierarchy level as the primary level.

9-52

🚩Let us try drilling into Spain and see if we reach our desired hierarchy level.

66. Click on Spain

67. Click Drill Down

9-53

⚠️Quality check! Does your geo map look like this screenshot after drilling down on Spain?

9-54

🚩Let us double check to see if our geo map only displays these two hierarchy levels

68. Click Navigate up/down the hierarchy

69. Click StoreLocation

9-55

🚩As we can see our hierarchy levels for this layer are properly defined. Let us look at the insights on our StoreLocation hierarchy. Definite Gains Gym seems to be an outlier in high delivery times from the La Rioja region and trainingapparel4sale.com is an outlier in low delivery times from the Castilla Leon region.

9-56

70. Right Click on the Geo Map to open Context Menu

9-57

71. Click Show/Hide

72. Hover over Store Location Analysis

73. Click Average Delivery Time (Size)

74. Click outside to collapse the context menu

9-58

⚠️Quality check! Does your geo map look like this screenshot? We can see from the labels that both stores, Definite Gains Gym and trainingapparel4sale.com, have outlier average delivery times.

9-59

ℹ️We can also display measure values in interactions with the geo map.

75. Click Edit Layer for Store Location Analysis

9-60

🚩Let us add a tooltip for our Average # of Delivered Orders measure.

76. Click Add Tooltip

77. Click Tooltip Information

9-61

78. Click + Add Measures/Dimensions under Tooltip Information

9-62

79. Click Average # of Delivered Orders

9-63

80. Click OK

9-64

⚠️Quality Check! Does your geo map look like this screenshot?

9-65

Let us see what the tooltip looks like when we hover over a bubble.

81. Hover over Definite Gains Gym

9-66

🚩We want to add a new layer for analysis which will require some data preparation

ℹ️In this next part of the Geo Visualization deep dive we will look at how to create a geo-enriched model. We want to add a geo-enriched model for Shipping Port locations that will be used as the next layer in our geo map analysis.

Please save your story by pressing Ctrl + S on your keyboard.

9-67

82. Click Menu

9-r

83. Click Modeler to create a new model

9-r2

🚩We want to start our model based on the Shipping Ports Excel file, which is located in GitHub.

To access the Shipping Ports file, please navigate to our ANA260 GitHubrepository. You can access this at https://github.com/SAP-samples/teched2021-ANA260

84. Click on the exercises folder

9-69

85. Open the Resources folder

9-70

86. Click Shipping Ports.xlsx

9-71

🚩Please download the Excel file onto your computer so you can import it into SAP Analytics Cloud as an acquired model.

  1. Click Download

9-72

🚩
Navigate back to SAP Analytics Cloud

  1. Click Import From a CSV or Excel File

9-73

  1. Click Select Source File

9-74

ℹ️Once the Shipping Ports.xlsx is downloaded, open the Downloads folder on your machineto select the file.

  1. Select the Shipping Ports.xlsx file

  2. Click Open

9-75

  1. Click Import

9-76

⚠️Quality Check! Does your imported file bring you to a model creation screen like this screenshot

🚩Welcome to Data Modeling in SAP Analytics Cloud!

In this screen, users can assign dimensions and measures, build hierarchies in their data, apply transformations on columns of data, check for and replace wrong data entries, and geo enrich their data. If you are importing a large data set, this screen will show a subset of your data, so it is easier to work with. SAP Analytics Cloud will apply all your requested changes to your entire data set when creating the model.

9-77

🚩Let us geo enrich our model so it can be used in our geo visualization. Model creators can choose to geo enrich their data by coordinates (latitude and longitude) or by location name (country and region name). Country data can be imported by ISO3 and ISO2 codes or by Englishnames.

  1. Click Geo Enrichment

  2. Click Coordinates

9-78

🚩Let us choose an Identifier for our geo enriched Location dimension. This will be the label used for each node in a geo map layer. Let us use the Shipping Port names as the description.

  1. Click Location Description

  2. Click Port

9-79

  1. Click Create

9-80

⚠️Quality check! Does your model creation screen have a new dimension like this Location column in the screenshot?

9-81

🚩Let us now create our model with the geo enriched dimension. You may notice that there area few invalid data points in our geo enriched dimension due to incorrect longitude and latitude data. SAP Analytics Cloud warns model creators about potential errors in the data. The model can still be created and the rows containing faulty data will be excluded from the model. You can choose to replace these invalid data cells directly in the model creation screen.

  1. Click Create Model

9-82

  1. Click Create

9-83

🚩Let us name our model ShippingPorts and save it in our MyFiles directory on the tenant.

  1. Click OK

9-84

⚠️Quality check! Your screen should now display this Model creation in prompt.

9-85

⚠️Quality check! Our model creation is successfully complete! Do you see a screen like this screenshot?

Note that some of the rows were rejected due to incorrect locations.

ℹ️After this stage, we can navigate back to our "ANA260_Section 9_Your Initials" story and continue our analysis with our new ShippingPorts model!

9-86

  1. Click Home

9-87

ℹ️Since we just used the Geo story before, we can open it via the recently used stories tiles on the homepage.

  1. Select the last story you worked on (ANA260_Section 9_Your Initials)

9-88

  1. Click Edit

9-89

  1. Click Shipping Analysis

9-90

  1. Select the Geo Map

  2. Click Designer

9-91

🚩Let us add a new layer with our new geo enriched model.

  1. Click + Add Layer

9-92

  1. Rename Layer to Shipping Port Location

  2. Click Change Model

9-93

🚩Since our model is new to this story, we will have to select it from our files first.

  1. Click Select other model...

9-94

🚩Navigate to where you saved the ShippingPorts model (My Files directory).

  1. Click ShippingPorts

9-95

ℹ️Let us add the geo enriched dimension we created with coordinates

  1. Click + Add Location Dimension

9-96

  1. Click Location

9-97

⚠️Quality check! Does your geo map now populate with shipping port bubbles like this screenshot?

9-98

🚩Let us change the shape of our shipping port bubbles so they are easily distinguished fromour stores.

  1. Click Expand

  2. Click Shapes

  3. Choose the Star shape

  4. Click OK

9-99

⚠️Quality check! Does your geo map look like this screenshot with the shipping port shape changes?

9-100

🚩We can now choose to add a filter between our two location dimensions, Store Location and Shipping Port Location, to generate additional analysis in our geo visualization

  1. Click + Add Filter

9-101

ℹ️We want to test a hypothesis if distance to shipping ports affect delivery times. We will create a distance filter based on the distance from a shipping port. If a store is further from a shipping port than our defined distance, it will be excluded from our geo map.

9-102

🚩Our Show parameter is the dimension that we would like to exclude members based on our distance filter.

  1. Expand Show Dimension

  2. Click StoreLocation as the Show Dimension

9-103

🚩Let us add an interactive input control slider to our page to dynamically change the distance in distance filter.

  1. Check Add as an input control slider to page

  2. Input 1 as Minimum Distance

  3. Input 6000 as Maximum Distance

9-104

🚩Let us choose the Shipping Port locations as our reference location to measure the distance from.

  1. Click Select a Reference Location

  2. Click Dimensions

9-105

  1. Choose Location dimension from ShippingPorts model.

9-106

  1. Click OK

9-107

⚠️Quality check! Does your geo map look like this screenshot? Since our distance filter has defaulted to 1km, there should be no stores displayed on our geo map as they areall excluded currently.

9-108

🚩Let us resize our input control so it is easier to read and dynamically change.

  1. Expand the Input Control by dragging on the bottom right corner

9-109

⚠️Quality check! Does your distance filter input control look like this after resizing?

9-110

🚩Let us start with a medium distance filter.

  1. Change the distance filter to 275

9-111

⚠️Quality check! Does your geo map look like this screenshot? Interestingly, our high average delivery time outlier, Definite Gains Gym, shows up but our other low average delivery time outlier, trainingapparel4sale.com, is missing.

9-112

🚩Let us increase the range of our distance filter.

  1. Change the distance filter to 500

9-113

⚠️Quality check! Does your geo map look like this screenshot?Now most of our stores in Spain have appeared from the filter.

9-114

🚩Let's add Linked Analysis on our Geo Map

  1. Click More icon

  2. Click Linked Analysis

9-115

  1. Click Only Selected Widgets

9-116

  1. Select Filter on Data Point Selection

9-117

  1. Scroll and Select Store Region wise Delivery Time and # of Delivered Orders..

  2. Click Apply

9-118

ℹ️Let us filter directly on our two outlier stores for Avg Delivery Time.

  1. Mouse wheel up in the geo map to zoom in on Spain

9-119

ℹ️We want the ability to be able to select many data points on our geo map directly and easily filter on a selected area. Let us use the lasso functionality in geo maps.

  1. Click the Lasso Tool

9-120

  1. Draw a lasso around Definite Gains Gym and trainingapparel4sale.com

9-121

🚩We can now choose to apply a filter on the bubbles selected by our lasso tool.

  1. Click the Filter Icon

9-122

⚠️Quality check! Does your geo map look like this screenshot after filtering on lasso tool?

9-123

🚩We can also look at our table that is connected to our geo map by linked analysis applied on data point selection. We can see the measures in this table for our two filtered entries.

9-124

🚩Since we did not verify our hypothesis that distance to shipping ports is the cause for a higher average delivery time, let us dive into another tool we can use for analysis in our geo map.

  1. Select our Geo Map and click on Designer

9-125

ℹ️We can change the basemap layer in our visualization to better fit the purposes of our analysis. Let us see if there is a geographical reason forthe outliers in delivery time. For now, we want to see if there are any insights that we can gather from the street map view in our geo map

  1. Click Choose Basemap

  2. Click OpenStreetMap

9-126

⚠️Quality check! Does your geo map look like this screenshot after changing the base map? Let us change the formatting to make analyzing this visualization easier

9-127

🚩First, let us change the font color so it stands out on our base map.

  1. Click Styling Panel

9-128

ℹ️We can change formatting options for all text in the geo map or based on individual layers. We want to select the Store layer to change the color on Store name labels.

  1. Scroll to Font Options and click Text Selection

  2. Click Store Location Analysis

9-129

  1. Click Color

  2. Select Black Palette

9-130

🚩Let us now change the Basemap properties to complement our styling change

  1. Click Builder Panel

9-131

🚩We can change the Basemap Opacity,so our layers stand out in our geo map

  1. Click Expand

  2. Change Basemap Opacity from 100% to 50%

9-132

⚠️Quality check! Does your geo map look like this screenshot after applying styling changes?

🚩If we lookat the geo map, a new hypothesis for delivery times can be formed. trainingapparel4sale.comis located directly on a major highway connected to Madrid whereas Definite Gains Gym is secluded and much further from major transit routes. This potentially explains our outliers for average delivery times.

9-133

🚩Let us move forward and change our Basemap back to a standard template to try out other geo visualization features.

  1. Click Choose Basemap

  2. Click Light Gray

9-134

⚠️Quality check! Does your geo map look like this screenshot after basemap changes?

9-135

🚩We want to look at a different area in the geo map. Let us move backto general view by removing all our applied filters.

  1. Click Remove Filters

9-136

🚩Let us also drill up to the country hierarchy level.

  1. Click on a Store Bubble

  2. Click Drill Up

9-137

⚠️Quality check! Does your geo map look like this screenshot?

9-138

🚩We can also choose to change our layer options in the Legends tab of the geo map. This enables us to change our geo map display in View Mode without accessing the Designer Panel.

  1. Click Expand Legends

9-139

🚩Let us show the original choropleth layer for sales revenue and hide the other layers we have created. We want to go back to our chart analysis of sales revenue across all regions in our geo map.

  1. Click Hide Layer for Shipping Port Layer.

  2. Click to Collapse Legends

9-140

⚠️Quality check! Does your geo map look like this visualization?

🚩Please save your story by pressing Ctrl + S on your keyboard!

9-141

ℹ️You have now completed the Geo Visualizations Deep Dive section! 9-142



Summary

You have completed the entire Geo Visualizations section!

You are now able to:

  • Create your own geo-enriched models with acquired data
  • Employ heat maps to gather insights on geo data density
  • Understand the use of distance filters and the lasso tool in analyzing your hypotheses
  • Use tooltips, labels, and overlapping points to enhance the insights in your geo map
  • Change your basemap layer to view your geo enriched data in different contexts
  • Style your geo map for clear and informative visualizations