Skip to main content

How to create tiles map in Tableau

Are you looking for advancement in basic symbol maps and geographical maps? Then this blog is for you. Tilemaps are the best head away for basic maps because in the latter the shape and sizes of the location play a crucial role. The basic highlight feature of any tilemap is all the regions are represented by the same shape or size. Shapes can vary from circle to hexagon or squares. Such maps play a vital role when the size of the region is not so important for the visualization. 

This blog is inspired by one of the Tableau Zen Master. Matt Chamber's work is an inspiration for me and in today's blog, I will highlight the steps to draw tilemaps in Tableau Public. Kindly check out Matt's blog.

Our focus is solely on the different states in the US. Tilemaps are a great advantage in such scenarios because there are a lot of smaller states in the US that aren't easy to identify in a standard map. Tilemaps come to the rescue in such cases. Tilemaps cannot be used when we are taking exact locations into account because in tilemaps locations of different states can't be precise (due to the representations with a particular shape).

For today's blog, we will take two datasets into account. One is the financial consumer complaints and the other is the data used particularly for tilemaps. The first step is to found a common element to link both datasets. In this case, we are combining by state abbreviations. In financial consumer complaints rename the state with an abbreviation. 

After that go to the other data (hex map data) and take rows in rows and columns in columns. Then go to the analysis tab on the top pane and unselect the aggregate measures and you will get the basic outline of the map which has circles in it.


The shape of the tile is up to you. If you want to add the hex shape you need to add it in the Tableau Repository under the shapes. For now, I am creating the visualization with a diamond shape which is already available in default values. If you see the second image we need to edit the row axis to reverse it because in the current scenario it doesn't resemble the shape of a standard map. To do so you need to select the row axis and click on the edit axis tab.





It will open a new toggle where you need to select the reverse as shown in the above-mentioned figure. It will provide you the required tilemap. After reversing the axis take the abbreviation into text which will be highlighted on the map.


 

Now go into the shapes present under the marks and select the required shape. I have selected diamond shapes for it. Now the map is almost ready just a few formatting steps away. After that increase, the size of the shape is selected, and change the alignment of the text so that all the abbreviations come under the diamond shape. At last, we will take the count of financial consumer complaints in the color and you will get the desired tilemap.



Doesn't it look much better than the standard maps we used to draw? Do not use the tilemaps when you need geographical precision. Feel free to incorporate this visualization in your dashboards. 


Thanks for Reading  Let's connect on  LinkedIn.






Comments

Popular posts from this blog

Ultimate Beginners Guide to DAX Studio

There are zillions of external tools available with Power BI but DAX Studio is one of the most commonly used tools to work with DAX queries. It is a perfect tool to optimize the DAX and the data model. In this blog let's shed some light on the basic functionalities that can take your report to the next level. ARE YOU READY?  To start you will need the latest version of the DAX Studio. You can download it from their website . Don't worry you don't have to pay for the license. Fortunately, DAX Studio is a free tool As a BI Developer, I am using DAX Studio regularly. Based on my experience I use it for several purposes but in this blog, I will highlight the most common ones. Extracting a dump of all the measures used in your PBIX. Why do we need to do this? It can be used for documentation purposes also sometimes we try to reuse the DAX and such a dump comes in handy in this scenario. How to achieve it? Open the DAX Studio it is located under the external tools once you open t

Append v/s Merge in Power BI

Let's discuss another problem of the week. As a Power BI user, there are times when you want to combine queries. What are the ways to do so? In most cases, you can attain it by using either append or merge and both serve different purposes. Let's understand what do these terms mean in Power BI and how they are functionally different from each other.  It is quite common to get data from various sources and you need to combine those data depending on a particular column which is common in both tables so that you can add extra information or column to your big table. In such cases, we use merge queries. How to perform merge queries? For instance, I am considering Sample Superstore data and we will merge the returns table to the order table. You will find both merge and append in the home tab in extreme right in the power query editor. ProTip - You will find two options when you click on the drop-down in merge which are merge queries and merge queries as new. When you use merge que

Use Relationship in DAX

Data modeling is an essential part of creating perfect visuals. While creating complex data models there can be a case where you can find an inactive relationship represented by dotted lines and it occurs because you already have an active relationship between the two tables. But as a developer, you need to use both the relationship. How can it be done? You can use "Use Relationship" in such cases. Use relationship can be added to your DAX and act as a modifier or enhancer for calculation. It activates the inactive relation. But make sure you have an inactive relationship in place before using the use relationship function. Let's see how it works on Sample Superstore data. In my fact table I have two dates- Order date and Ship date. I am making the two relations between my date table and fact table. The relation between the sample superstore (date) to date table (date) is active while the relation between the sample superstore (ship date) to date table (date) is inactive