Technology Blog Posts by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
paddyw
Participant
0 Kudos
3,171

GEO map remains a highly relevant and valuable presentation for reporting, particularly for comparing data across different regions. 

In this blog, I am going to show step by step about Geo modeling in Datasphere and how to present in Geo map in SAC

Disclaimer: All the data created are for demo purposes, the approach is used to demo the functionality of the DAC configuration and Geo map in SAC, not intended for production design or usage

Let's look into DataSphere modelling part first:

Step 1:

We create a local table Suburb_Infomation: Suburb dimension (GEO), which will used to store longitude and latitude

paddyw_0-1722930426687.png

 

Attribute for longitude and latitude:

 

paddyw_1-1722930779168.png

some example data of GEO information captured from Google map:

Note: the sign of the latitude is important to display the correct location on Geo map

paddyw_2-1722930901808.png

Step 2:

Create a Dimension view: ZD_SUBURB:

here the important part is to create a Geo-coordinated column

Capture.PNG

When setting up Geo column, depends on the spatial reference identifier type: choose 4326 or 3857 

Google map coordinates uses 4326 spatial reference identifier type

Capture.PNG

Step 3:

Create a local table to store the spend per Suburb, note, that the longitude and latitude are not necessary for the table, it's purely used for data reconciliation purposes

Capture.PNG

 

Step 4: 

Create a transaction data view: ZV_SUBURB_SPEND, you can see that we didn't expose longitude and latitude to the final output

Capture.PNG

In the association part, we need to associate with the Suburb dimension we created before:

paddyw_4-1722933188977.png

As you can see, we only need to join by the suburb:

Capture.PNG

Let's do a quick data preview of the final node, there are no GEO information included either

paddyw_5-1722933464488.png

Step 5:

Finally, we need to create an analytics model: ZAM_SUBURB_SPEND, there is no fancy logic there, the analytical model will automatically pickup the dimension Suburb and its attributes (GEO information)

Capture.PNG

 

 

Now everything is ready from Datashere, let's move to the SAC part, the modeling in SAC is pretty light 

Note: configuration needs to be done to enable SSO between Datasphere and SAC, it is not covered in this blog, please refer to SAP online help: 

https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/ad4281e2875949f0b4d45... 

 

Step 1:

We create a story using canvas type, insert a table, and choose the 'Existing Model' Option, make sure to select the correct SPACE and Folder in Datasphere,

Capture.PNG

Select Suburb, Currency as Row, and Amount as Measure

paddyw_0-1722871148588.png

Step 2:

Now let's add a Geo map to the canvas, choose layer type as Bubble, and select 'Suburb Location' as Location dimension, in here, I am choosing 'Amount' as Bubble color

paddyw_0-1722870111906.png

The final Geo map and table for illustration, as you can see all the Suburbs with Geo information are nicely spread along the coast of the sea, this concludes the final piece of the puzzle, hope you enjoy this blog. Feel free to post any questions you may have.

Capture.PNG

 

Some key takeaways:

1. The modeling in DataSphere is quite straightforward, the key point is to remember to create a Geo-coordinated Column

2. Rember to associate the GEO dimension to transaction data to enrich the dataset

3. Presentation layer in SAC to create a map layer to consume Geo dimensions

 

 

 

 

 

 

3 Comments
Labels in this area