Tableau Stacking latitude and longitude from different source - tableau-desktop

I wanted to stack two geographical visualization into one.
Chleropeth map
Latitude and Longitude information
Note that both data for Cheropeth map and Latitude and Longtitude information are from different source/file.
Problem
This is my current situation, where Top is the cheropeth map, and bottom is suppose to be the latitude and Longitude information, where i followed the tutorial from.
The bottom information is not showing up.
https://help.tableau.com/current/pro/desktop/en-us/maps_dualaxis.htm
This is how I input the second lat long information into the bottom axis.
This is the second map where I have created in a separate sheet but my intend is to combine both into one.

Related

Split One Cell With Linebreaks But grab 2 Rows At A Time Google Sheets

I have a list of places in one cell, and a list of coordinates in the other, so one line of my places corresponds to 2 lines of my coordinates, so there is a mismatch. I need to:
Put the locations into one cell and use a pipe "|" to separate them so they can be imported, for that I have used this:
=SUBSTITUTE(A1,CHAR(10),"|")
I need to grab TWO rows of my coordinates (latitude and longitude) so this then corresponds to my location. I cannot figure out how to do this bit as need two rows, rather than one.
Some locations have empty coordinates also.
Not 100% sure what you need? Try this:
={SUBSTITUTE($A$1,CHAR(10),"|");regexreplace(clean(trim(REGEXREPLACE($B$1,"new_long.*;",""))),";\ ",";\|");regexreplace(clean(trim(REGEXREPLACE($B$1,"new_lat.*;",""))),";\ ",";\|")}
or this:
={SUBSTITUTE($A$1,CHAR(10),"|"),regexreplace(clean(trim(REGEXREPLACE($B$1,"new_long.*;",""))),";\ ",";\|"),regexreplace(clean(trim(REGEXREPLACE($B$1,"new_lat.*;",""))),";\ ",";\|")}

Tableau map tooltip not displaying average reference line

I created a chart visualising the cost of living in different cities and entered a line indicating the average. When integrating this sheet into the tooltip of my map, the line is not representing the average anymore but the actual cost of living for each city. I have been trying a lot but can't seem to figure it out. Thankful for any tip!
That's because the tooltip, triggered by the click/hover, is taking into consideration just a city at once, and so the average value is equal to the sum of that specific city: you're running average on just one city.
In order to compute the correct reference value you should create a calculated field like this using LOD:
{ FIXED : SUM([Cost Of Living])} / { FIXED : COUNTD([City])}
Then you could use that calculated field in a dual axis chart.
Doing so, since EXCLUDE acts before dimension filters, you will be able to preserve your average across City even though tooltip will trigger a filter.
Take a look at this simple example made with superstore and keep and eye on the red line (LOD v2) which relates to the calulated field above.
As you can see there's also a blue line which relates to the previous calculated field I wrote (LOD v1):
{ EXCLUDE [State] : AVG( { FIXED [State] : SUM([Sales])})}
Once we move to our main worksheet triggering the viz in tooltip, you'll see that the red value still keep the correct value calculated on all data, while the blue value is taking into consideration just data according to filter.
In fact FIXED is the only LOD calculus which act before the dimension filters and it's able to bypass the filtering triggered by the tooltip.

Google Map in iOS to have filters

I have used Google map in my iOS application. I have placed markers on the map. I want based on filter selected the marker should be placed.For example mumbai has three location and pune has 2 location. Based on the filter marker marker should be shown
you need to add your markers on a dictionary with key of your desired city and value an array of markers, Then when you want to show one city, you need make a cycle over your markers and set .map = yourViewMap, and if you want to remove all markers from one city (is the same but setting .map = nil)
I hope this helps you

How to add custom places to the Google maps API in the search box in ios?

how can we add custom-places-to-the-Google-maps-API-in-the-search-box in Google map
i want to show the search hospitals, clinics, related shops, pharmacies, health and fitness centers and see how far are they from the km. All these places locations are going to be shown in my Google map along with Marker.

(SPSS) I Need to split a large table containing (20,000 opiniton) into Longitude AND Latitude

I am having trouble with SPSS 20
I need to split a table into longitude and latitude
I have tried the method below but get no where
NUMBER(CHAR.SUBSTR(geographicalCoords,1),CHAR.INDEX(geographicalCoords,',')-1),F10.6)
Have a closer look at your line of code. You misplaced a bracket. If you remove it, your code should run perfectly fine.
(I assume that you line actually begins with a COMPUTE command.)

Resources