Tableau Map view Continent List - tableau-api

I have been trying to clean my data and have a column represent the various continents and ultimately have them represented on map view.
But it doesn't consider that column to be Geography and even when i forcefully make it, the same still does not show up in map view. Any suggestions?
Africa
Asia
Europe
North America
Oceania (Tried without this too)
South America

I don't think it is possible to have continent as geographic role in Tableau.
What you could do however is look for a list which maps countries to continents and then join with your original data source on continent.
This way all your data values get replicated for each country. When you then select the country column as geographic region you can get the effect you want.
List could be something like this.

Related

Post-Aggregation Join of two tables in Tableau

I´m new to tableau and need to do some kind of post-aggregation join, i think. My goal is, to match some data from google search console to some other regional data concerning hotels. This way, i hope to see if hotels for a certain region perform better or worse than their popularity in the google searches would suggest.
I have one table with the hotel-data which looks like this:
Table 1
Here we have three hierarchical region levels. Country, state and region (and some KPI that is aggregated according to the drill-down-level).
Table 2
Table 2 does not follow the hierarchical dimensionality as table 1, but has the same regions.
What i want tableau to do:
I want tableau, to join the regions on the lowest region level, but NOT to aggregate the KPI impressions. So, when i drill-up to the country level, i want the "random KPI" to be summed to 389, but the impressions should be 40.000 only. You might ask yourself why - it´s a different thing if somebody only searches for "country 1" or if he searches for a state or region of this country. For this analysis it is the goal, to not aggregate the impressions for each region.
I would be glad for any hints on how to do this. I thought about doing a blend - which i thought is a kind of post-aggregation join, but i found out, that if i join on the lowest region-level of table 1 with the region-variable of table 2, the impressions always get aggregated.
Thanks everyone!

Using Tableau Filters with Maps - Always Include a Value, but Exclude it from Filter

I've built a geographic report for a new system that has very little data in it so far. The report combines two maps into one image with dual axis.
The first map shows different regions identified by color. It's supposed to always be visible, no matter what values are selected in a filter.
The second map shows business-related data, e.g., geographical locations of offices and number of applicants per office.
The data set is a union of business-related data and geographic data containing nulls in business-related columns.
The problem is that the nulls are showing in the filters, and this is confusing for the users. Basically, the nulls always need to be selected in order for the general map to be visible. If a user deselects NULL from any of the filters, the map disappears.
How can I fix it? Ideally, the NULLs (or a value replacing the null) should always be included in the data and be always excluded from the filter.

create filter from multiple data sources

I have multiple data sources that have city, state and country information.
Example -
Source 1:
ID City State Country
12345 New York New York USA
12344 Cebu City PHL
12232 Bengaluru Karnataka IND
Source 2:
ID City State Country
12345 Dallas Texas USA
12344 London UK
I would like to create a filter to show drill down option into country, state and city using both the databases. I cannot combine the source due to few sourcing issues. Not sure if a set can be created like union of the columns from the data sources to be able to show a filter that will have values from all the data sources.
Like..
Country = USA, PHL, IND, UK and then filter state and city and so on. Can someone please advise how I can achieve this?
The city, state and country columns are dynamic in my data sources
Quote from Tableau's online help.
You can union your data to combine two or more tables by appending values (rows) from one table to another. To union your data in Tableau data source, the tables must come from the same connection.
If your data source supports union, the New Union option displays in the left pane of the data source page after you connect to your data.
It's pretty easy to do inside Tableau Desktop.
https://onlinehelp.tableau.com/current/pro/desktop/en-us/union.html

Displaying different sheets at user's demand in a single dashboard -- Tableau

I am new to Tableau. I am not sure if I can use Tableau to create the following type of interactive dashboard.
Say I have two almost irrelevant data sources. The first one contains daily revenue for some department stores.
Store Name Date Revenue
-----------------------------
Macy 6/29/16 50,000
Century 21 6/29/16 46,000
Macy 6/28/16 45,000
Century 21 6/28/16 48,000
...
I want to use line chart to study the Revenue. So I would use Date as the horizontal axis, and Revenue as the measure, while using Store Name as the color dimension. As a result, it will render several color lines to capture the revenue in terms of date.
For my other data source, it contains similar things. But instead of doing department stores, it contains information about fast food chain restaurants.
Restaurant Date Revenue
----------------------------
KFC 5/1/16 50,000
McDonald 5/1/16 46,000
KFC 5/2/16 45,000
McDonald 5/2/16 48,000
...
I use line chart to study the revenue again.
Now with the dashboard, is there any way I can have a control with menu Fast Food and Department Store, so that if the user clicks Fast Food, the line chart involving Fast Food appears and if the user clicks Department Store, the line chart involving Department Store appears?
So far, I've been able to use this helpful article http://kb.tableau.com/articles/knowledgebase/multiple-sources-one-worksheet to display Fast Food and Department Store at request. But if the user clicks Fast Food, he will get only one line, instead of multiple lines (one for each restaurant).
I hope I have described my problem clearly.
You can fairly easily do this using a parameter control and using it as a filter in your sheets.
First, create a parameter control "View Control":
Next, create a calculated field based on the parameter for each data source:
The calculation should match the data source ('Fast Food' for the fast food source, and so on)
Then place the calculated fields in the filter card and set to True. This should hide one of the sheets and show the other. They should never be shown or hidden at the same time.
Lastly, place both sheets and the parameter control onto a dashboard. It is best to place the two sheets within the same layout container. You should get the following result:
change parameter:

How do i embed a state map in tableau

How do i put a state map ?
I have a excel sheet with some city names in it with no geo dimensions present.
now i wanted to how do i design a Dashboard with these city names present on google map ?
Could somebody guide me in right direction !
region amt profit
Annakkonamer 21 56
madurrrai 20 87
chennrrai 32 89
arrrttani 34 54
enter code here
Edit: updated answer with data added from question (see screenshots below).
In tableau you can use the built in maps to create a dashboard, but note: this is not a google map, it is a tableau dashboard.
Here is a great tutorial on how to use the mapping function in tableau: Mapping Basics
Keep in mind: tableau will usually do a great job of mapping your data, but if your excel is simply a list of cities without any reference to state or zip code or anything like that it might be complicated (since there are 19 Georgetowns in the USA and even 9 places called 'Palmyra').
Here is a quick example (you can see the very simple excel data I used in the small data-view window):
Just saw the update to the question.
This can be done, (I am using an exact copy of your data) you just need to follow these steps:
Connect to the data. You will see that a dimension called region is added. You need to convert this dimension to Geographic -> City type:
Drag this dimension to the view and a map will appear. Go to Map -> Edit locations:
Very important: make sure that the country is set to the correct one. These look like Indian cities, so I set the country to India and most were recognised:
Now you can use the amt and profit measures to change the color or shape of the mapped points for the cities.