on 10-17-2017 8:12 AM
Hello,
I would like to calculate the distance between 2 GPS coordinates. So, I would like create a new column containing a function. Can you help me please ?
Thanks
Have you tried looking at the tutorials? See YouTube list: https://www.youtube.com/results?search_query=SAP+analytics+cloud+%22calculation%22
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lucile,
Were you able to figure this out?
You could try having all the locations as a red Point of Interest (POI) layer, then the ones within 200km as a separate green bubble layer over the POI. Could resize the bubbles so that they cover/hide the POI icon. To get the ones that are 200km on the bubble layer, you can set a static map distance filter (no input control) on the geomap, it won’t filter out the POI so don’t have to worry about that.
Disadvantage here is that you won’t be able to put measures on a POI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Lucile,
I am not sure how you want to use the distance result but I would suggest you have 2 approaches. One is to pre calculate the distance from Agencie to the Cities, then add a property to that dimension which stores the difference, but is reportable as an attribute. The other approach involves adding Latitude and Longitude as accounts. Add an account called Distance to Agencie. Then using either model account calculation logic or story calculation logic to derive the distance as a measure/account. I don't know the formula to build the distance calculation, but assume it may be quite involved.
Hope this helps.
Petar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have a model that is acquiring data (stored in SAC) and the model has been built in SAC, then you may add a property to any dimension that is in the model. Click on the model to open, click the dimension, Add Column header name, then save the model. My though was to add a property called "DistanceToAgencie", then in the column, add the distance value that you have calculated outside of SAC. The properties may then be viewed in the Story. It will not be a value from a calculation or that may be used in a calculation, but it would be able to be viewed.
If you want to calculate a value, that will need to be done in the Account dimension, and is a different process.
Thank you for your answer. But I will explain to you my need.
I have an agency (which is my referency place) : Paris (with its GPS coordinates)
And I have others agencies in France : Lyon, Grenoble, Strasbourg, Marseille . These cities have also GPS coordinates.
I would like to put all these cities in a map, and to put the cities which have a maximal distance of 200 km with the agency of Paris (referency) in green, and the others in red.
Thanks
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.